It is recommended that you use the pytumblr external library:
import pytumblr client = pytumblr.TumblrRestClient( '<consumer_key>', '<consumer_secret>', '<oauth_token>', '<oauth_secret>', )
For further study of what parameters are required, see the source , especially the data value, which is a local path to the download path or the embed value, which is a section of HTML code that will load your video from the outside.
For information on what the embed tag should look like, you can see it in the object in the api example :
{ "width": 250, "embed_code": "<object width=\"248\" height=\"169\"><param name=\"movie\" value=\"http:\/\/www.youtube.com\/ v\/4Q1aI7xPo0Y&rel=0&egm=0& showinfo=0&fs=1\"><\/param><param name=\"wmode\" value=\"transparent\"><\/param><param name=\" allowFullScreen\" value=\"true\"><\/param><embed src=\"http:\/\/www.youtube.com\/v\/ 4Q1aI7xPo0Y&rel=0&egm=0&showinfo= 0&fs=1\" type=\"application\/x-shockwave-flash\" width=\"248\" height=\"169\" allowFullScreen=\"true\" wmode=\"transparent\"><\/embed><\/object>"
}
VooDooNOFX
source share