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
5bf88f26
Commit
5bf88f26
authored
Jul 06, 2012
by
Jan Schaumann
Browse files
Add support for retweeted_by_user:
https://dev.twitter.com/docs/api/1/get/statuses/retweeted_by_user
parent
aa6a31d5
Changes
5
Hide whitespace changes
Inline
Side-by-side
CONTRIBUTORS
View file @
5bf88f26
...
...
@@ -25,3 +25,4 @@ Wayne Moore
Will McCutchen
gilles
Can Duruk
Jan Schaumann (@jschauma)
setup.py
View file @
5bf88f26
...
...
@@ -3,7 +3,7 @@
from
setuptools
import
setup
,
find_packages
setup
(
name
=
"tweepy"
,
version
=
"1.9"
,
version
=
"1.9
.1
"
,
description
=
"Twitter library for python"
,
license
=
"MIT"
,
author
=
"Joshua Roesslein"
,
...
...
tests.py
View file @
5bf88f26
...
...
@@ -41,6 +41,10 @@ class TweepyAPITests(unittest.TestCase):
def
testretweetedbyme
(
self
):
self
.
api
.
retweeted_by_me
()
def
testretweetedbyuser
(
self
):
self
.
api
.
retweeted_by_user
()
self
.
api
.
retweeted_bye_user
(
'twitter'
)
def
testretweetedtome
(
self
):
self
.
api
.
retweeted_to_me
()
...
...
tweepy/__init__.py
View file @
5bf88f26
...
...
@@ -5,7 +5,7 @@
"""
Tweepy Twitter API library
"""
__version__
=
'1.9'
__version__
=
'1.9
.1
'
__author__
=
'Joshua Roesslein'
__license__
=
'MIT'
...
...
tweepy/api.py
View file @
5bf88f26
...
...
@@ -70,6 +70,14 @@ class API(object):
require_auth
=
True
)
"""/statuses/retweeted_by_user.format"""
retweeted_by_user
=
bind_api
(
path
=
'/statuses/retweeted_by_user.json'
,
payload_type
=
'status'
,
payload_list
=
True
,
allowed_param
=
[
'screen_name'
,
'id'
,
'count'
,
'since_id'
,
'max_id'
,
'page'
,
'include_entities'
]
)
"""/statuses/:id/retweeted_by.format"""
retweeted_by
=
bind_api
(
path
=
'/statuses/{id}/retweeted_by.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