public SearchFeed trendSticker ( ) throws GiphyException { SearchFeed feed = null ; HashMap < String , String > params = new HashMap < String , String > ( ) ; params . put ( "api_key" , apiKey ) ; Request request = new Request ( UrlUtil . buildUrlQuery ( TrendingStickerEndpoint , params ) ) ; try { Response response = sender . sendRequest ( request ) ; feed = gson . fromJson ( response . getBody ( ) , SearchFeed . class ) ; } catch ( JsonSyntaxException | IOException e ) { log . error ( e . getMessage ( ) , e ) ; throw new GiphyException ( e ) ; } return feed ; }
Fetch GIFs currently trending online . Hand curated by the Giphy editorial team . The data returned mirrors the GIFs showcased on the Giphy homepage . Returns 25 results by default .