: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,
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()
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'