.. automethod:: API.create_favorite
+.. automethod:: API.destroy_favorite
+
Status methods
--------------
:rtype: :class:`User` object
-Favorite Methods
-----------------
-
-.. method:: API.destroy_favorite(id)
-
- Un-favorites the status specified in the ID parameter as the authenticating
- user.
-
- :param id: |sid|
- :rtype: :class:`Status` object
-
-
Block Methods
-------------
), id=id, **kwargs
)
+ @payload('status')
+ def destroy_favorite(self, id, **kwargs):
+ """destroy_favorite(id, *, include_entities)
+
+ Un-favorites the status specified in the ``id`` parameter as the
+ authenticating user.
+
+ :param id: |sid|
+ :param include_entities: |include_entities|
+
+ :rtype: :class:`Status` object
+
+ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-destroy
+ """
+ return self.request(
+ 'POST', 'favorites/destroy', endpoint_parameters=(
+ 'id', 'include_entities'
+ ), id=id, **kwargs
+ )
+
@payload('status')
def update_status(self, status, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-update
), **kwargs
)
- @payload('status')
- def destroy_favorite(self, id, **kwargs):
- """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-favorites-destroy
- """
- return self.request(
- 'POST', 'favorites/destroy', endpoint_parameters=(
- 'id', 'include_entities'
- ), id=id, **kwargs
- )
-
@payload('user')
def create_block(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/post-blocks-create