public interface TrendsMethods
Modifier and Type | Method and Description |
---|---|
Trends |
getCurrentTrends()
Returns the current top 10 trending topics on Twitter.
|
Trends |
getCurrentTrends(boolean excludeHashTags)
Returns the current top 10 trending topics on Twitter.
|
java.util.List<Trends> |
getDailyTrends()
Returns the top 20 trending topics for each hour in a given day.
|
java.util.List<Trends> |
getDailyTrends(java.util.Date date,
boolean excludeHashTags)
Returns the top 20 trending topics for each hour in a given day.
|
Trends |
getTrends()
Returns the top ten topics that are currently trending on Twitter.
|
java.util.List<Trends> |
getWeeklyTrends()
Returns the top 30 trending topics for each day in a given week.
|
java.util.List<Trends> |
getWeeklyTrends(java.util.Date date,
boolean excludeHashTags)
Returns the top 30 trending topics for each day in a given week.
|
Trends getTrends() throws TwitterException
TwitterException
- when Twitter service or network is unavailableTrends getCurrentTrends() throws TwitterException
TwitterException
- when Twitter service or network is unavailableTrends getCurrentTrends(boolean excludeHashTags) throws TwitterException
excludeHashTags
- Setting this to true will remove all hashtags from the trends list.TwitterException
- when Twitter service or network is unavailablejava.util.List<Trends> getDailyTrends() throws TwitterException
TwitterException
- when Twitter service or network is unavailablejava.util.List<Trends> getDailyTrends(java.util.Date date, boolean excludeHashTags) throws TwitterException
date
- Permits specifying a start date for the report.excludeHashTags
- Setting this to true will remove all hashtags from the trends list.TwitterException
- when Twitter service or network is unavailablejava.util.List<Trends> getWeeklyTrends() throws TwitterException
TwitterException
- when Twitter service or network is unavailablejava.util.List<Trends> getWeeklyTrends(java.util.Date date, boolean excludeHashTags) throws TwitterException
date
- Permits specifying a start date for the report.excludeHashTags
- Setting this to true will remove all hashtags from the trends list.TwitterException
- when Twitter service or network is unavailable