Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 2663a42

Browse files
authored
Merge pull request #650 from msramalho/patch-1
fixed inconsistent naming of variable in api.GetRetweets
2 parents dc819a4 + eecccff commit 2663a42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

twitter/api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,14 +1687,14 @@ def GetReplies(self,
16871687
exclude_replies=False, include_rts=False)
16881688

16891689
def GetRetweets(self,
1690-
statusid,
1690+
status_id,
16911691
count=None,
16921692
trim_user=False):
16931693
"""Returns up to 100 of the first retweets of the tweet identified
1694-
by statusid
1694+
by status_id
16951695
16961696
Args:
1697-
statusid (int):
1697+
status_id (int):
16981698
The ID of the tweet for which retweets should be searched for
16991699
count (int, optional):
17001700
The number of status messages to retrieve.
@@ -1703,9 +1703,9 @@ def GetRetweets(self,
17031703
otherwise the payload will contain the full user data item.
17041704
17051705
Returns:
1706-
A list of twitter.Status instances, which are retweets of statusid
1706+
A list of twitter.Status instances, which are retweets of status_id
17071707
"""
1708-
url = '%s/statuses/retweets/%s.json' % (self.base_url, statusid)
1708+
url = '%s/statuses/retweets/%s.json' % (self.base_url, status_id)
17091709
parameters = {
17101710
'trim_user': enf_type('trim_user', bool, trim_user),
17111711
}

0 commit comments

Comments
 (0)