Views: 707
Last Modified: 15.12.2023
Getting popular GIF images. Returns 15 GIF images
Parameters
No
Associated P&P events
No
Calling method and response
JavaScript
BX.rest.callMethod('imbot.Giphy.listPopular', {})
.then(result => console.log(result.data()))
.catch(result => console.error(result))
;
Response example
[
{
"preview": "https://media0.giphy.com/media/KT38VKe0p2aM35i7HS/200w_d.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200w_d.webp&ct=g",
"original": "https://media0.giphy.com/media/KT38VKe0p2aM35i7HS/200.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200.webp&ct=g"
},
{
"preview": "https://media3.giphy.com/media/uUP7F5A1rQR9uKls9P/200w_d.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200w_d.webp&ct=g",
"original": "https://media3.giphy.com/media/uUP7F5A1rQR9uKls9P/200.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200.webp&ct=g"
},
{
"preview": "https://media3.giphy.com/media/r7I5UK3W25OIyAlsrc/200w_d.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200w_d.webp&ct=g",
"original": "https://media3.giphy.com/media/r7I5UK3W25OIyAlsrc/200.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200.webp&ct=g"
},
{
"preview": "https://media1.giphy.com/media/3o7TKoWXm3okO1kgHC/200w_d.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200w_d.webp&ct=g",
"original": "https://media1.giphy.com/media/3o7TKoWXm3okO1kgHC/200.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200.webp&ct=g"
},
{
"preview": "https://media2.giphy.com/media/9GIFGeuuinRxgEj7Zq/200w_d.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200w_d.webp&ct=g",
"original": "https://media2.giphy.com/media/9GIFGeuuinRxgEj7Zq/200.webp?cid=b7142cb9xia5p36zjc2wowjrd10gh7hfpt4eirrcrzhps7z7&rid=200.webp&ct=g"
},
...
]
Key description:
preview
– animation preview with fixed width of 200 px, a version of original image, reduced to 6 frames;
original
– full animation version.
Possible error codes
Server-related issues. Standard errors «microservice», module errors that include:
- LICENSE_NOT_FOUND
- WRONG_SIGN
- LICENSE_DEMO
- LICENSE_NOT_ACTIVE