twitter4j.api
Interface LocalTrendsMethodsAsync
- All Known Subinterfaces:
- AsyncTwitter
- All Known Implementing Classes:
- AsyncTwitterImpl
public interface LocalTrendsMethodsAsync
- Author:
- Joern Huxhorn - jhuxhorn at googlemail.com
Method Summary |
void |
getAvailableTrends()
Retrieves the locations that Twitter has trending topic information for. |
void |
getAvailableTrends(GeoLocation location)
Retrieves the sorted locations that Twitter has trending topic information for. |
void |
getLocationTrends(int woeid)
Retrieves the top 10 trending topics for a specific location Twitter has trending topic information for. |
getAvailableTrends
void getAvailableTrends()
- Retrieves the locations that Twitter has trending topic information for. The response is an array of "locations" that encode the location's WOEID (a Yahoo! Where On Earth ID) and some other human-readable information such as a canonical name and country the location belongs in.
This method calls http://api.twitter.com/1/trends/available.json
- Since:
- Twitter4J 2.1.1
- See Also:
- GET trends/available | dev.twitter.com
getAvailableTrends
void getAvailableTrends(GeoLocation location)
- Retrieves the sorted locations that Twitter has trending topic information for. The response is an array of "locations" that encode the location's WOEID (a Yahoo! Where On Earth ID) and some other human-readable information such as a canonical name and country the location belongs in.
This method calls http://api.twitter.com/1/trends/available.json
- Parameters:
location
- the available trend locations will be sorted by distance to the lat and long passed in. The sort is nearest to furthest.- Since:
- Twitter4J 2.1.1
- See Also:
- GET trends/available | dev.twitter.com
getLocationTrends
void getLocationTrends(int woeid)
- Retrieves the top 10 trending topics for a specific location Twitter has trending topic information for. 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 Search, and the direct URL that can be issued against Search. This information is cached for five minutes, and therefore users are discouraged from querying these endpoints faster than once every five minutes. Global trends information is also available from this API by using a WOEID of 1.
This method calls http://api.twitter.com/1/trends/:woeid.json
- Parameters:
woeid
- The WOEID of the location to be querying for- Since:
- Twitter4J 2.1.1
- See Also:
- GET trends/:woeid | dev.twitter.com