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
c5efdcf8
Commit
c5efdcf8
authored
Sep 11, 2017
by
walmsley
Committed by
GitHub
Sep 11, 2017
Browse files
Allow tweet_mode=extended in statuses_lookup
In response to #840
parent
c8e473ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
c5efdcf8
...
...
@@ -94,20 +94,20 @@ class API(object):
)
def
statuses_lookup
(
self
,
id_
,
include_entities
=
None
,
trim_user
=
None
,
map_
=
None
):
trim_user
=
None
,
map_
=
None
,
tweet_mode
=
None
):
return
self
.
_statuses_lookup
(
list_to_csv
(
id_
),
include_entities
,
trim_user
,
map_
)
trim_user
,
map_
,
tweet_mode
)
@
property
def
_statuses_lookup
(
self
):
""" :reference: https://dev.twitter.com/rest/reference/get/statuses/lookup
:allowed_param:'id', 'include_entities', 'trim_user', 'map'
:allowed_param:'id', 'include_entities', 'trim_user', 'map'
, 'tweet_mode'
"""
return
bind_api
(
api
=
self
,
path
=
'/statuses/lookup.json'
,
payload_type
=
'status'
,
payload_list
=
True
,
allowed_param
=
[
'id'
,
'include_entities'
,
'trim_user'
,
'map'
],
allowed_param
=
[
'id'
,
'include_entities'
,
'trim_user'
,
'map'
,
'tweet_mode'
],
require_auth
=
True
)
...
...
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