For example, set limit = 10 for the user’s initial results of a trending request and load previews of those GIFs for the user to browse. Use the Limit and Pos parameters to control the amount and flow of GIFs returned and ultimately loaded. Using Locale will give higher preference to the user’s given locale, though it will not limit trending results to only the provided code and language typed, but gives higher preference to the given locale. As Tenor’s service evolves, locale will be used to better tune search results to your users’ specific languages, cultures, and social trends. The trending stream is updated regularly throughout the day. Get a json object containing a list of the current global trending GIFs. Use the ar_range parameter to filter the GIF response list to only include aspect ratios that fall within the selected range.This can reduce the response object size by 25-75%. Use the media_filter parameter to reduce the number of GIF formats returned.Use the ContentFilter parameter to maintain your internal content safety ratings for GIFs returned.Doing so will help keep bandwidth usage down and provide a quicker response time for the user - as less GIF previews will need to be loaded in parallel on the client’s side. This pattern can be used to create a smooth lazy loading experience. If the user requests more results, collect the next 10 results by making the same API call but with pos = the “next” field from the initial response. For example, set limit = 10 for the user’s initial results of a given search and load previews of those GIFs for the user to browse. Use the limit and pos parameters to control the amount and flow of GIFs returned.This optional call helps Tenor’s Search Engine AI tune results. When a user decides which GIF to share, you should also include a corresponding call to Register Share.Using Locale will give higher preference to the user’s given locale, though it will not limit search results to only the provided code and language typed, but gives higher preference to the given locale. Provide the user’s search as typed, including punctuation and special characters.Get a json object containing a list of the most relevant GIFs for a given search term(s), category(ies), emoji(s), or any combination thereof.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |