twitter4j.api
Interface TrendsMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface TrendsMethodsAsync

Since:
Twitter4J 2.1.3
Author:
Yusuke Yamamoto - yusuke at mac.com

Method Summary
 void getCurrentTrends()
          Returns the current top 10 trending topics on Twitter.
 void getCurrentTrends(boolean excludeHashTags)
          Returns the current top 10 trending topics on Twitter.
 void getDailyTrends()
          Returns the top 20 trending topics for each hour in a given day.
 void getDailyTrends(java.util.Date date, boolean excludeHashTags)
          Returns the top 20 trending topics for each hour in a given day.
 void getTrends()
          Returns the top ten topics that are currently trending on Twitter.
 void getWeeklyTrends()
          Returns the top 30 trending topics for each day in a given week.
 void getWeeklyTrends(java.util.Date date, boolean excludeHashTags)
          Returns the top 30 trending topics for each day in a given week.
 

Method Detail

getTrends

void getTrends()
Returns the top ten topics that are currently trending on Twitter. The response includes the time of the request, the name of each trend, and the url to the Twitter Search results page for that topic.
This method calls http://search.twitter.com/trends.json

Since:
Twitter4J 2.0.2
See Also:
GET trends | dev.twitter.com

getCurrentTrends

void getCurrentTrends()
Returns the current top 10 trending topics on Twitter. The response includes the time of the request, the name of each trending topic, and query used on Twitter Search results page for that topic.
This method calls http://search.twitter.com/trends/current.json

Since:
Twitter4J 2.0.2
See Also:
GET trends/current | dev.twitter.com

getCurrentTrends

void getCurrentTrends(boolean excludeHashTags)
Returns the current top 10 trending topics on Twitter. The response includes the time of the request, the name of each trending topic, and query used on Twitter Search results page for that topic.
This method calls http://search.twitter.com/trends/current.json

Parameters:
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
Since:
Twitter4J 2.0.2
See Also:
GET trends/current | dev.twitter.com

getDailyTrends

void getDailyTrends()
Returns the top 20 trending topics for each hour in a given day.
This method calls http://search.twitter.com/trends/daily.json

Since:
Twitter4J 2.0.2
See Also:
GET trends/daily | dev.twitter.com

getDailyTrends

void getDailyTrends(java.util.Date date,
                    boolean excludeHashTags)
Returns the top 20 trending topics for each hour in a given day.
This method calls http://search.twitter.com/trends/daily.json

Parameters:
date - Permits specifying a start date for the report.
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
Since:
Twitter4J 2.0.2
See Also:
GET trends/daily | dev.twitter.com

getWeeklyTrends

void getWeeklyTrends()
Returns the top 30 trending topics for each day in a given week.
This method calls http://search.twitter.com/trends/weekly.json

Since:
Twitter4J 2.0.2
See Also:
GET trends/weekly | dev.twitter.com

getWeeklyTrends

void getWeeklyTrends(java.util.Date date,
                     boolean excludeHashTags)
Returns the top 30 trending topics for each day in a given week.
This method calls http://search.twitter.com/trends/weekly.json

Parameters:
date - Permits specifying a start date for the report.
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
Since:
Twitter4J 2.0.2
See Also:
GET trends/weekly | dev.twitter.com