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
80015db3
Commit
80015db3
authored
Feb 03, 2017
by
Aaron Hill
Committed by
GitHub
Feb 03, 2017
Browse files
Merge pull request #839 from Perados/Perados-patch-1
Fix allowed_param in docstrings in api.py
parents
c67c5670
b5ab72e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
80015db3
...
...
@@ -114,7 +114,7 @@ class API(object):
@
property
def
user_timeline
(
self
):
""" :reference: https://dev.twitter.com/rest/reference/get/statuses/user_timeline
:allowed_param:'id', 'user_id', 'screen_name', 'since_id'
:allowed_param:'id', 'user_id', 'screen_name', 'since_id'
, 'max_id', 'count', 'include_rts'
"""
return
bind_api
(
api
=
self
,
...
...
@@ -331,6 +331,7 @@ class API(object):
path
=
'/users/lookup.json'
,
payload_type
=
'user'
,
payload_list
=
True
,
method
=
'POST'
,
allowed_param
=
[
'user_id'
,
'screen_name'
,
'include_entities'
]
)
def
me
(
self
):
...
...
@@ -487,7 +488,7 @@ class API(object):
@
property
def
show_friendship
(
self
):
""" :reference: https://dev.twitter.com/rest/reference/get/friendships/show
:allowed_param:'source_id', 'source_screen_name'
:allowed_param:'source_id', 'source_screen_name'
, 'target_id', 'target_screen_name'
"""
return
bind_api
(
api
=
self
,
...
...
@@ -707,7 +708,7 @@ class API(object):
@
property
def
update_profile
(
self
):
""" :reference: https://dev.twitter.com/rest/reference/post/account/update_profile
:allowed_param:'name', 'url', 'location', 'description'
:allowed_param:'name', 'url', 'location', 'description'
, 'profile_link_color'
"""
return
bind_api
(
api
=
self
,
...
...
@@ -1190,7 +1191,7 @@ class API(object):
""" :reference: https://dev.twitter.com/rest/reference/get/search/tweets
:allowed_param:'q', 'lang', 'locale', 'since_id', 'geocode',
'max_id', 'since', 'until', 'result_type', 'count',
'include_entities', 'from', 'to', 'source'
]
'include_entities', 'from', 'to', 'source'
"""
return
bind_api
(
api
=
self
,
...
...
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