public interface TrendsResourcesAsync
Modifier and Type | Method and Description |
---|---|
void |
getAvailableTrends()
Retrieves the locations that Twitter has trending topic information for.
|
void |
getClosestTrends(GeoLocation location)
Returns the locations that Twitter has trending topic information for, closest to a specified location.
The response is an array of "locations" that encode the location's WOEID and some other human-readable information such as a canonical name and country the location belongs in. A WOEID is a Yahoo! Where On Earth ID. |
void |
getPlaceTrends(int woeid)
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. |
void getPlaceTrends(int woeid)
woeid
- The Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.void getAvailableTrends()
void getClosestTrends(GeoLocation location)
location
- the available trend locations will be sorted by distance to the lat and long passed in. The sort is nearest to furthest.Copyright © 2018. All rights reserved.