MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / retweet

Method retweet

twython/endpoints.py:125–132  ·  view source on GitHub ↗

Retweets a tweet specified by the ``id`` parameter Docs: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id

(self, **params)

Source from the content-addressed store, hash-verified

123 return self.post('statuses/update', params=params)
124
125 def retweet(self, **params):
126 """Retweets a tweet specified by the ``id`` parameter
127
128 Docs:
129 https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id
130
131 """
132 return self.post('statuses/retweet/%s' % params.get('id'))
133
134 def update_status_with_media(self, **params): # pragma: no cover
135 """Updates the authenticating user's current status and attaches media

Callers

nothing calls this directly

Calls 2

postMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected