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
c997ee7f
Unverified
Commit
c997ee7f
authored
Apr 07, 2018
by
Joshua Roesslein
Committed by
GitHub
Apr 07, 2018
Browse files
Merge pull request #926 from walmsley/patch-1
Allow tweet_mode=extended in statuses_lookup
parents
e8e779a0
c5efdcf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
c997ee7f
...
...
@@ -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