.. automethod:: API.saved_searches
+.. automethod:: API.get_saved_search
+
Direct Message Methods
----------------------
Saved Searches Methods
----------------------
-.. method:: API.get_saved_search(id)
-
- Retrieve the data for a saved search owned by the authenticating user
- specified by the given id.
-
- :param id: The id of the saved search to be retrieved.
- :rtype: :class:`SavedSearch` object
-
-
.. method:: API.create_saved_search(query)
Creates a saved search for the authenticated user.
"""
return self.request('GET', 'saved_searches/list', **kwargs)
+ @payload('saved_search')
+ def get_saved_search(self, id, **kwargs):
+ """get_saved_search(id)
+
+ Retrieve the data for a saved search owned by the authenticating user
+ specified by the given ID.
+
+ :param id: The ID of the saved search to be retrieved.
+
+ :rtype: :class:`SavedSearch` object
+
+ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-show-id
+ """
+ return self.request('GET', f'saved_searches/show/{id}', **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')
- 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
- """
- return self.request('GET', f'saved_searches/show/{id}', **kwargs)
-
@payload('saved_search')
def create_saved_search(self, query, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-create