lib/twitter/rest/trends.rb
# Returns the top 50 trending topics for a specific WOEID
#
# @see https://dev.twitter.com/rest/reference/get/trends/place
# @rate_limited Yes
# @authentication Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @param id [Integer] The {https://developer.yahoo.com/geo/geoplanet Yahoo! Where On Earth ID} of the location to return trending information for. WOEIDs can be retrieved by calling {Twitter::REST::Trends#trends_available}. Global information is available by using 1 as the WOEID.
# @param options [Hash] A customizable set of options.
# @option options [String] :exclude Setting this equal to 'hashtags' will remove all hashtags from the trends list.
# @return [Array<Twitter::Trend>]
Returns the top 50 trending topics for a specific WOEID
Returns the top 50 trending topics for a specific WOEID
def trends(id = 1, options = {})
        options = options.dup
        options[:id] = id
        response = perform_get('/1.1/trends/place.json', options).first
        Twitter::TrendResults.new(response)
      end
def trends ( id = 1 , options = { } ) options = options . dup options [ :id ] = id response = perform_get ( '/1.1/trends/place.json' , options ) . first Twitter :: TrendResults . new ( response ) end
Returns the top 50 trending topics for a specific WOEID
Returns the top 50 trending topics for a specific WOEID
None
Array<Twitter::Trend>
[Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
[ Twitter :: Error :: Unauthorized ] Error raised when supplied user credentials are not valid .
id
None
options
:exclude Setting this equal to 'hashtags' will remove all hashtags from the trends list.
: exclude Setting this equal to ' hashtags ' will remove all hashtags from the trends list .
see
None
rate_limited
None
authentication
Requires user context
Requires user context