src/es5-gfycat-sdk.js
function getTrending(options, callback) {
    if (!options) options = {};

    return this._request({
      api: '/gfycats',
      endpoint: '/trending',
      method: 'GET',
      query: {
        count: options.count || 100,
        cursor: options.cursor || null,
        tagName: options.tagName || null
      }
    }, callback);
  }
function getTrending(options, callback) {
    if (!options) options = {};

    return this._request({
      api: '/gfycats',
      endpoint: '/trending',
      method: 'GET',
      query: {
        count: options.count || 100,
        cursor: options.cursor || null,
        tagName: options.tagName || null
      }
    }, callback);
  }
function getTrending ( options , callback ) { if ( ! options ) options = { } ; return this . _request ( { api : '/gfycats' , endpoint : '/trending' , method : 'GET' , query : { count : options . count || 100 , cursor : options . cursor || null , tagName : options . tagName || null } } , callback ) ; }
Retrieve JSON array of trending GIFs for a given tag.
If no tag name is provided, the API returns overall trending GIFs.

@param {Object} options
@param {number} options.count - number of GIFs to include per category.
@param {string} options.cursor - cursor for pagination.
@param {string} options.tagName - (optional) - name of the tag to get trending GIFs from.
@param {requestCallback} callback - (optional) callback function to run when the request completes.
Retrieve JSON array of trending GIFs for a given tag . If no tag name is provided the API returns overall trending GIFs .