From: Harmon Date: Fri, 3 May 2019 03:22:39 +0000 (-0500) Subject: Remove API.set_delivery_device X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5dd8e269fa51c9c646bc2cfed747f4f084b6eaca;p=tweepy.git Remove API.set_delivery_device Resolves #1203 --- diff --git a/docs/api.rst b/docs/api.rst index dbda682..7faf6b3 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -382,15 +382,6 @@ Account Methods :rtype: :class:`JSON` object -.. method:: API.set_delivery_device(device) - - Sets which device Twitter delivers updates to for the authenticating - user. Sending "none" as the device parameter will disable SMS updates. - - :param device: Must be one of: sms, none - :rtype: :class:`User` object - - .. method:: API.update_profile_image(filename) Update the authenticating user's profile image. Valid formats: GIF, diff --git a/tests/test_api.py b/tests/test_api.py index 53a3397..d1e1e32 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -223,12 +223,6 @@ class TweepyAPITests(TweepyTestCase): def testratelimitstatus(self): self.api.rate_limit_status() - """ TODO(josh): Remove once this deprecated API is gone. - def testsetdeliverydevice(self): - self.api.set_delivery_device('im') - self.api.set_delivery_device('none') - """ - @tape.use_cassette('testupdateprofilecolors.json') def testupdateprofilecolors(self): original = self.api.me() diff --git a/tweepy/api.py b/tweepy/api.py index baf0d54..574a73e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -664,20 +664,6 @@ class API(object): use_cache=False ) - @property - def set_delivery_device(self): - """ :reference: https://dev.twitter.com/rest/reference/post/account/update_delivery_device - :allowed_param:'device' - """ - return bind_api( - api=self, - path='/account/update_delivery_device.json', - method='POST', - allowed_param=['device'], - payload_type='user', - require_auth=True - ) - def update_profile_image(self, filename, file_=None): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image :allowed_param:'include_entities', 'skip_status'