twitter4j.api
Interface SearchMethodsAsync

All Known Implementing Classes:
AsyncTwitter

public interface SearchMethodsAsync

Author:
Joern Huxhorn - jhuxhorn at googlemail.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.
 void search(Query query)
          Returns tweets that match a specified query.
 

Method Detail

search

void search(Query query)
Returns tweets that match a specified query.
This method calls http://search.twitter.com/search

Parameters:
query - - the search condition
Since:
Twitter4J 1.1.7
See Also:
Twitter API / Search API Documentation, Twitter API / Search Operators

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

Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends

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

Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends

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

Parameters:
excludeHashTags - Setting this to true will remove all hashtags from the trends list.
Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends

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

Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends daily

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

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:
Twitter Search API Method: trends daily

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

Since:
Twitter4J 2.0.2
See Also:
Twitter Search API Method: trends weekly

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

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:
Twitter Search API Method: trends weekly