Custom Media Upload
Tweetbot uploads images/videos using an HTTP POST request that should be compatible with a number of different image sharing services. The request sends along the Twitter OAuth Echo headers, described here http://dev.twitter.com/pages/oauth_echo.
The POST request contains the following fields:
- message : The text of the Tweet that will be posted
- source : "Tweetbot for iPhone"
- media : JPEG or MP4 data with a mime type of either image/jpeg or video/mp4 and a filename of image.jpg or movie.mp4
The response should be one of the following formats:
- <mediaurl>URL</mediaurl>
- { url : URL }
- { medialurl : URL }
Examples
- https://mlkshk.com/upload