Fixed some things related to twishort's tweets

This commit is contained in:
2016-06-25 19:48:21 -05:00
parent 48232a6cf8
commit b1cf1c5590
5 changed files with 21 additions and 13 deletions

View File

@@ -146,7 +146,7 @@ class EndpointsMixin(object):
return self.post('https://upload.twitter.com/1.1/media/upload.json', params=params)
def set_description(self, **params):
""" Adds a description to an image."""
""" Adds a description to an image."""
# This method only accepts strings, no dictionaries.
params = json.dumps(params)
return self.post("media/metadata/create", params=params)