twitter4j.api
Interface TrendsMethods

All Known Subinterfaces:
Twitter

public interface TrendsMethods

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

Method Summary
 ResponseList<Trends> getDailyTrends()
          Returns the top 20 trending topics for each hour in a given day.
 ResponseList<Trends> getDailyTrends(Date date, boolean excludeHashTags)
          Returns the top 20 trending topics for each hour in a given day.
 ResponseList<Trends> getWeeklyTrends()
          Returns the top 30 trending topics for each day in a given week.
 ResponseList<Trends> getWeeklyTrends(Date date, boolean excludeHashTags)
          Returns the top 30 trending topics for each day in a given week.
 

Method Detail

getDailyTrends

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

Returns:
the result
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.2
See Also:
GET trends/daily | Twitter Developers

getDailyTrends

ResponseList<Trends> getDailyTrends(Date date,
                                    boolean excludeHashTags)
                                    throws TwitterException
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.
Returns:
the result
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.2
See Also:
GET trends/daily | Twitter Developers

getWeeklyTrends

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

Returns:
the result
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.2
See Also:
GET trends/weekly | Twitter Developers

getWeeklyTrends

ResponseList<Trends> getWeeklyTrends(Date date,
                                     boolean excludeHashTags)
                                     throws TwitterException
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.
Returns:
the result
Throws:
TwitterException - when Twitter service or network is unavailable
Since:
Twitter4J 2.0.2
See Also:
GET trends/weekly | Twitter Developers


Copyright © 2012. All Rights Reserved.