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
793cfb07
Commit
793cfb07
authored
Feb 17, 2016
by
Joshua Roesslein
Browse files
Merge pull request #693 from elahmo/patch-1
Added in_reply_to_status_id_str to allowed parameters
parents
ba6d593b
be597bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/api.py
View file @
793cfb07
...
...
@@ -177,7 +177,7 @@ class API(object):
def
update_status
(
self
,
*
args
,
**
kwargs
):
""" :reference: https://dev.twitter.com/rest/reference/post/statuses/update
:allowed_param:'status', 'in_reply_to_status_id', 'lat', 'long', 'source', 'place_id', 'display_coordinates', 'media_ids'
:allowed_param:'status', 'in_reply_to_status_id',
'in_reply_to_status_id_str',
'lat', 'long', 'source', 'place_id', 'display_coordinates', 'media_ids'
"""
post_data
=
{}
media_ids
=
kwargs
.
pop
(
"media_ids"
,
None
)
...
...
@@ -189,7 +189,7 @@ class API(object):
path
=
'/statuses/update.json'
,
method
=
'POST'
,
payload_type
=
'status'
,
allowed_param
=
[
'status'
,
'in_reply_to_status_id'
,
'lat'
,
'long'
,
'source'
,
'place_id'
,
'display_coordinates'
],
allowed_param
=
[
'status'
,
'in_reply_to_status_id'
,
'in_reply_to_status_id_str'
,
'lat'
,
'long'
,
'source'
,
'place_id'
,
'display_coordinates'
],
require_auth
=
True
)(
post_data
=
post_data
,
*
args
,
**
kwargs
)
...
...
@@ -213,7 +213,7 @@ class API(object):
def
update_with_media
(
self
,
filename
,
*
args
,
**
kwargs
):
""" :reference: https://dev.twitter.com/rest/reference/post/statuses/update_with_media
:allowed_param:'status', 'possibly_sensitive', 'in_reply_to_status_id', 'lat', 'long', 'place_id', 'display_coordinates'
:allowed_param:'status', 'possibly_sensitive', 'in_reply_to_status_id',
'in_reply_to_status_id_str',
'lat', 'long', 'place_id', 'display_coordinates'
"""
f
=
kwargs
.
pop
(
'file'
,
None
)
headers
,
post_data
=
API
.
_pack_image
(
filename
,
3072
,
form_field
=
'media[]'
,
f
=
f
)
...
...
@@ -225,8 +225,8 @@ class API(object):
method
=
'POST'
,
payload_type
=
'status'
,
allowed_param
=
[
'status'
,
'possibly_sensitive'
,
'in_reply_to_status_id'
,
'
lat'
,
'long'
,
'place_id'
,
'display_coordinates'
'status'
,
'possibly_sensitive'
,
'in_reply_to_status_id'
,
'
in_reply_to_status_id_str'
,
'lat'
,
'long'
,
'place_id'
,
'display_coordinates'
],
require_auth
=
True
)(
*
args
,
**
kwargs
)
...
...
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