Before you begin
- Sign up at Tenor and create a new app.
- Enter your App name, description and click create.
- Make note of the API key that has been created.
Extension settings
- Login to CometChat and select your app.
- Go to the Extensions section and enable the Tenor extension.
- Click on the Settings button, enter your Tenor API key, and hit save.
How does it work?
This extension uses thecallExtension method provided by the CometChat SDK. You can perform the following actions using this method:
- Get trending GIFs
- Search for GIFs
Get Trending GIFs
To list and show the most trending GIFs on Tenor, all you have to do is include the following parameters in your request.
Once you have set the above parameters, you can make a call to the extension as follows:
- JavaScript
- Java
- Swift
Search for GIFs
Apart from listing the trending ones, the extension also allows searching for a particular GIF using the following parameters:
Once you have all the above parameters, you can make a call to the extension as follows:
- JavaScript
- Java
- Swift