Skip to content

Commit

Permalink
Merge pull request #650 from msramalho/patch-1
Browse files Browse the repository at this point in the history
fixed inconsistent naming of variable in api.GetRetweets
  • Loading branch information
bear committed Dec 19, 2021
2 parents dc819a4 + eecccff commit 2663a42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions twitter/api.py
Expand Up @@ -1687,14 +1687,14 @@ def GetReplies(self,
exclude_replies=False, include_rts=False)

def GetRetweets(self,
statusid,
status_id,
count=None,
trim_user=False):
"""Returns up to 100 of the first retweets of the tweet identified
by statusid
by status_id
Args:
statusid (int):
status_id (int):
The ID of the tweet for which retweets should be searched for
count (int, optional):
The number of status messages to retrieve.
Expand All @@ -1703,9 +1703,9 @@ def GetRetweets(self,
otherwise the payload will contain the full user data item.
Returns:
A list of twitter.Status instances, which are retweets of statusid
A list of twitter.Status instances, which are retweets of status_id
"""
url = '%s/statuses/retweets/%s.json' % (self.base_url, statusid)
url = '%s/statuses/retweets/%s.json' % (self.base_url, status_id)
parameters = {
'trim_user': enf_type('trim_user', bool, trim_user),
}
Expand Down

0 comments on commit 2663a42

Please sign in to comment.