Skip to content

Commit

Permalink
Merge pull request #693 from elahmo/patch-1
Browse files Browse the repository at this point in the history
Added in_reply_to_status_id_str to allowed parameters
  • Loading branch information
joshthecoder committed Feb 17, 2016
2 parents ba6d593 + be597bc commit 793cfb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_status(self):

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)
Expand All @@ -189,7 +189,7 @@ def update_status(self, *args, **kwargs):
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)

Expand All @@ -213,7 +213,7 @@ def media_upload(self, filename, *args, **kwargs):

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)
Expand All @@ -225,8 +225,8 @@ def update_with_media(self, filename, *args, **kwargs):
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)
Expand Down

0 comments on commit 793cfb0

Please sign in to comment.