GIPHY Integration
VideoEditor SDK allows seamless integration with the GIPHY Stickers API. To add support for GIPHY, you will need to add the StickerCategory.giphy
with a GiphyStickerProvider
containing your API key obtained from GIPHY inside the sticker category.
You can also provide optional language
and rating
parameters to customize search results for the localization and content rating of your app.
// Create a GIPHY sticker category.final giphyProvider = GiphyStickerProvider("YOUR-API-KEY");final giphyCategory = StickerCategory.giphy(giphyProvider);final stickerOptions = StickerOptions(categories: [giphyCategory]);// Create a [Configuration] instance.final configuration = Configuration(sticker: stickerOptions);
This category is searchable, while the search bar and pagination are provided by VideoEditor SDK.
If no search has been performed the trending API will be used to provide quick access to the most relevant content, ready to be inserted into the canvas.
A Sticker
created from GIPHY content will use the following properties from the response:
- identifier
- original image URL
- thumbnail URL - selected dynamically depending on available assets for a particular sticker
- title - used as accessibility label, non-localized
For more information about GIPHY see their API Quickstart Guide.