video upload within combined api.upload_media method
authorfitnr <fitnr@fakeisthenewreal>
Tue, 10 Nov 2015 17:27:34 +0000 (12:27 -0500)
committerfitnr <fitnr@fakeisthenewreal>
Fri, 5 May 2017 13:51:49 +0000 (09:51 -0400)
commit53f670bde372ed05b2081864855378f432690269
tree9abc0df4940668ff957bdbaec3b267c04b208cbc
parent4643d70c685daebb3971ddc3180d94b605ca5a9b
video upload within combined api.upload_media method

* And safe import urllib in both py2/3

* rename methods to match API
* DRY max sizes, put in class in case twitter changes them
* use single media_upload for image and video, send to standard or
* chunked upload based on mime type and size

* finalize needs ModelParser, not RawParser
tweepy/api.py