Using media category tweet_video for consistency
authorJonathan Cipriano <cipriano.jonathan@gmail.com>
Tue, 6 Dec 2016 21:20:21 +0000 (13:20 -0800)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2016 21:20:21 +0000 (13:20 -0800)
async-upload.py

index aa3e21b..4c37c02 100644 (file)
@@ -46,7 +46,7 @@ class VideoTweet(object):
       'command': 'INIT',
       'media_type': 'video/mp4',
       'total_bytes': self.total_bytes,
-      'media_category': 'tweetvideo'
+      'media_category': 'tweet_video'
     }
 
     req = requests.post(url=MEDIA_ENDPOINT_URL, data=request_data, auth=oauth)
@@ -166,4 +166,4 @@ if __name__ == '__main__':
   videoTweet.upload_init()
   videoTweet.upload_append()
   videoTweet.upload_finalize()
-  videoTweet.tweet()
\ No newline at end of file
+  videoTweet.tweet()