tw_api_get_trends_place: Gets the trends for a given place

Description Usage Arguments Details References See Also

View source: R/twitter_api.R

Description

Uses the output from tw_api_trends_available()

Usage

1
tw_api_get_trends_place(id, twitter_token, exclude = FALSE, ...)

Arguments

id

Id of the place

twitter_token

An object of class Token1.0 as generated by tw_gen_token.

exclude

Whether to exclude hashtags or not

...

Ignored

Details

From Twitter

Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.

The response is an array of “trend” objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL.

This information is cached for 5 minutes. Requesting more frequently than that will not return any more data, and will count against your rate limit usage.

References

Twitter REST API (GET trends/place) https://dev.twitter.com/rest/reference/get/trends/place

See Also

Other API functions: tw_api_get_followers_ids, tw_api_get_followers_list, tw_api_get_friends_ids, tw_api_get_search_tweets, tw_api_get_statuses_sample, tw_api_get_statuses_user_timeline, tw_api_get_users_search, tw_api_get_users_show, tw_api_trends_available, tw_gen_token


gvegayon/twitterreport documentation built on May 17, 2019, 9:30 a.m.