Update AUTHORS, HISTORY, DeprecationWarning on update_status_with_media

This commit is contained in:
Mike Helmick 2014-10-30 11:07:18 -04:00
parent 8548a31238
commit 23a0b62f2c
3 changed files with 17 additions and 2 deletions

View file

@ -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):