]> jfr.im git - z_archive/twitter.git/commit
Handle multipart oauth to use image sending api
authorRouxRC <redacted>
Sat, 28 Dec 2013 16:44:14 +0000 (17:44 +0100)
committerRouxRC <redacted>
Mon, 3 Feb 2014 22:52:34 +0000 (23:52 +0100)
commit94fb8fab211ba987f4661150c95817bd073bd4a6
treeb121d674b6331bc223adc6b63af29d4bec65ecdf
parent84e22677e9a5cd8b99637228636b0a0ab094648e
Handle multipart oauth to use image sending api

So the calls to send media (update_with_media, update_profile_image,
update_profile_background_image and update_profile_banner) require
to send queries differently, as multipart form, and oauth needs to be
signed without taking any parameter into account.
This does the trick, following the rules here and there:
https://dev.twitter.com/docs/uploading-media
https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
https://dev.twitter.com/discussions/1059

Closes #127

Merged from 0a6fe85f7cc72d940b4393d2522d88d74b05ad22
twitter/api.py
twitter/twitter_globals.py