.. automethod:: API.verify_credentials
+.. automethod:: API.saved_searches
+
Direct Message Methods
----------------------
Saved Searches Methods
----------------------
-.. method:: API.saved_searches()
-
- Returns the authenticated user's saved search queries.
-
- :rtype: list of :class:`SavedSearch` objects
-
-
.. method:: API.get_saved_search(id)
Retrieve the data for a saved search owned by the authenticating user
), **kwargs
)
+ @payload('saved_search', list=True)
+ def saved_searches(self, **kwargs):
+ """saved_searches()
+
+ Returns the authenticated user's saved search queries.
+
+ :rtype: list of :class:`SavedSearch` objects
+
+ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-list
+ """
+ return self.request('GET', 'saved_searches/list', **kwargs)
+
def media_upload(self, filename, *, file=None, chunked=False,
media_category=None, additional_owners=None, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/overview
), **kwargs
)
- @payload('saved_search', list=True)
- def saved_searches(self, **kwargs):
- """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-list
- """
- return self.request('GET', 'saved_searches/list', **kwargs)
-
@payload('saved_search')
def get_saved_search(self, id, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id