Package twitter4j.v1
Interface SavedSearchesResources
public interface SavedSearchesResources
-
Method Summary
Modifier and TypeMethodDescriptioncreateSavedSearch
(String query) Creates a saved search for the authenticated user.destroySavedSearch
(long id) Destroys a saved search for the authenticated user.Returns the authenticated user's saved search queries.showSavedSearch
(long id) Retrieve the data for a saved search owned by the authenticating user specified by the given id.
-
Method Details
-
getSavedSearches
Returns the authenticated user's saved search queries.
This method calls https://api.twitter.com/1.1/saved_searches.json- Returns:
- Returns an array of numeric user ids the authenticating user is blocking.
- Throws:
TwitterException
- when Twitter service or network is unavailable- Since:
- Twitter4J 2.0.8
- See Also:
-
showSavedSearch
Retrieve the data for a saved search owned by the authenticating user specified by the given id.
This method calls https://api.twitter.com/1.1/saved_searches/show/:id.json- Parameters:
id
- The id of the saved search to be retrieved.- Returns:
- the data for a saved search
- Throws:
TwitterException
- when Twitter service or network is unavailable- Since:
- Twitter4J 2.0.8
- See Also:
-
createSavedSearch
Creates a saved search for the authenticated user.
This method calls https://api.twitter.com/1.1/saved_searches/saved_searches/create.json- Parameters:
query
- the query string- Returns:
- the data for a created saved search
- Throws:
TwitterException
- when Twitter service or network is unavailable- Since:
- Twitter4J 2.0.8
- See Also:
-
destroySavedSearch
Destroys a saved search for the authenticated user. The search specified by id must be owned by the authenticating user.
This method calls https://api.twitter.com/1.1/saved_searches/destroy/id.json- Parameters:
id
- The id of the saved search to be deleted.- Returns:
- the data for a destroyed saved search
- Throws:
TwitterException
- when Twitter service or network is unavailable- Since:
- Twitter4J 2.0.8
- See Also:
-