Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
d65d8c2d
Commit
d65d8c2d
authored
Sep 05, 2012
by
Alejandro Gómez
Browse files
Get retweets by user
parent
3060cf12
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests.py
View file @
d65d8c2d
...
...
@@ -42,6 +42,9 @@ class TweepyAPITests(unittest.TestCase):
def
testretweetedbyme
(
self
):
self
.
api
.
retweeted_by_me
()
def
testretweetedbyuser
(
self
):
self
.
api
.
retweeted_by_user
(
'twitter'
)
def
testretweetedtome
(
self
):
self
.
api
.
retweeted_to_me
()
...
...
tweepy/api.py
View file @
d65d8c2d
...
...
@@ -110,6 +110,14 @@ class API(object):
require_auth
=
True
)
""" statuses/retweeted_by_user """
retweeted_by_user
=
bind_api
(
path
=
'/statuses/retweeted_by_user.json'
,
payload_type
=
'status'
,
payload_list
=
True
,
allowed_param
=
[
'screen_name'
,
'id'
,
'since_id'
,
'max_id'
,
'count'
,
'page'
,
'trim_user'
,
'include_entities'
],
require_auth
=
False
)
""" statuses/retweets_of_me """
retweets_of_me
=
bind_api
(
path
=
'/statuses/retweets_of_me.json'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment