|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchOperations
Interface defining the operations for searching Twitter and retrieving trending data.
Method Summary | |
---|---|
void |
createSavedSearch(java.lang.String query)
Creates a new saved search for the authenticating user. |
void |
deleteSavedSearch(long searchId)
Deletes a saved search |
Trends |
getCurrentTrends()
Retrieves the current top 10 trending topics on Twitter, including hashtagged topics. |
Trends |
getCurrentTrends(boolean excludeHashtags)
Retrieves the current top 10 trending topics on Twitter. |
java.util.List<Trends> |
getDailyTrends()
Retrieves the top 20 trending topics, hourly for the past 24 hours. |
java.util.List<Trends> |
getDailyTrends(boolean excludeHashtags)
Retrieves the top 20 trending topics, hourly for the past 24 hours. |
java.util.List<Trends> |
getDailyTrends(boolean excludeHashtags,
java.lang.String startDate)
Retrieves the top 20 trending topics, hourly for a 24-hour period starting at the specified date. |
Trends |
getLocalTrends(long whereOnEarthId)
Retrieves the top 10 trending topics for a given location, identified by its "Where on Earth" (WOE) ID. |
Trends |
getLocalTrends(long whereOnEarthId,
boolean excludeHashtags)
Retrieves the top 10 trending topics for a given location, identified by its "Where on Earth" (WOE) ID. |
SavedSearch |
getSavedSearch(long searchId)
Retrieves a single saved search by the saved search's ID. |
java.util.List<SavedSearch> |
getSavedSearches()
Retrieves the authenticating user's saved searches. |
java.util.List<Trends> |
getWeeklyTrends()
Retrieves the top 30 trending topics for each day in the past week. |
java.util.List<Trends> |
getWeeklyTrends(boolean excludeHashtags)
Retrieves the top 30 trending topics for each day in the past week. |
java.util.List<Trends> |
getWeeklyTrends(boolean excludeHashtags,
java.lang.String startDate)
Retrieves the top 30 trending topics for each day in a given week. |
SearchResults |
search(java.lang.String query)
Searches Twitter, returning the first 50 matching Tweet s |
SearchResults |
search(java.lang.String query,
int page,
int pageSize)
Searches Twitter, returning a specific page out of the complete set of results. |
SearchResults |
search(java.lang.String query,
int page,
int pageSize,
long sinceId,
long maxId)
Searches Twitter, returning a specific page out of the complete set of results. |
Method Detail |
---|
SearchResults search(java.lang.String query)
Tweet
s
query
- The search query string
SearchResults
containing the search results metadata and a list of matching Tweet
s
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.SearchResults
,
Tweet
SearchResults search(java.lang.String query, int page, int pageSize)
query
- The search query stringpage
- The page to returnpageSize
- The number of Tweet
s per page
SearchResults
containing the search results metadata and a list of matching Tweet
s
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.SearchResults
,
Tweet
SearchResults search(java.lang.String query, int page, int pageSize, long sinceId, long maxId)
query
- The search query stringpage
- The page to returnpageSize
- The number of Tweet
s per pagesinceId
- The minimum Tweet
ID to return in the resultsmaxId
- The maximum Tweet
ID to return in the results
SearchResults
containing the search results metadata and a list of matching Tweet
s
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.SearchResults
,
Tweet
java.util.List<SavedSearch> getSavedSearches()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.SavedSearch getSavedSearch(long searchId)
searchId
- the ID of the saved search
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.void createSavedSearch(java.lang.String query)
query
- the search query to save
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.void deleteSavedSearch(long searchId)
searchId
- the ID of the saved search
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
org.springframework.social.MissingAuthorizationException
- if TwitterTemplate was not created with OAuth credentials.Trends getCurrentTrends()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.Trends getCurrentTrends(boolean excludeHashtags)
excludeHashtags
- if true, hashtagged topics will be excluded from the trends list.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.java.util.List<Trends> getDailyTrends()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.java.util.List<Trends> getDailyTrends(boolean excludeHashtags)
excludeHashtags
- if true, hashtagged topics will be excluded from the trends list.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.java.util.List<Trends> getDailyTrends(boolean excludeHashtags, java.lang.String startDate)
excludeHashtags
- if true, hashtagged topics will be excluded from the trends list.startDate
- the date to start retrieving trending data for, in MM-DD-YYYY format.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.java.util.List<Trends> getWeeklyTrends()
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.java.util.List<Trends> getWeeklyTrends(boolean excludeHashtags)
excludeHashtags
- if true, hashtagged topics will be excluded from the trends list.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.java.util.List<Trends> getWeeklyTrends(boolean excludeHashtags, java.lang.String startDate)
excludeHashtags
- if true, hashtagged topics will be excluded from the trends list.startDate
- the date to start retrieving trending data for, in MM-DD-YYYY format.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.Trends getLocalTrends(long whereOnEarthId)
whereOnEarthId
- the Where on Earth ID for the location to retrieve trend data.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.Trends getLocalTrends(long whereOnEarthId, boolean excludeHashtags)
whereOnEarthId
- the Where on Earth ID for the location to retrieve trend data.excludeHashtags
- if true, hashtagged topics will be excluded from the trends list.
org.springframework.social.ApiException
- if there is an error while communicating with Twitter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |