Update AUTHORS, HISTORY, DeprecationWarning on update_status_with_media
This commit is contained in:
parent
8548a31238
commit
23a0b62f2c
3 changed files with 17 additions and 2 deletions
|
|
@ -14,6 +14,10 @@ This map is organized the order functions are documented at:
|
|||
https://dev.twitter.com/docs/api/1.1
|
||||
"""
|
||||
|
||||
import warnings
|
||||
|
||||
from .advisory import TwythonDeprecationWarning
|
||||
|
||||
|
||||
class EndpointsMixin(object):
|
||||
# Timelines
|
||||
|
|
@ -118,6 +122,11 @@ class EndpointsMixin(object):
|
|||
https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
|
||||
|
||||
"""
|
||||
warnings.warn(
|
||||
'This method is deprecated. You should use Twython.upload_media instead.',
|
||||
TwythonDeprecationWarning,
|
||||
stacklevel=2
|
||||
)
|
||||
return self.post('statuses/update_with_media', params=params)
|
||||
|
||||
def upload_media(self, **params):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue