Open SKrPl opened 7 years ago
@mariobehling @Orbiter @sudheesh001 @daminisatya Please help. How should I proceed?
https://dev.twitter.com/rest/public/uploading-media
Supported image media types: JPG, PNG, GIF, WEBP Image size <= 5 MB, animated GIF size <= 15 MB
@abishekvashok Yes, the image I tried was of JPG type and the size was 34KiB.
Twitter reject photos and videos that have less color in it.
Post media_id_string instead of media_id @SKrPI
Parent issue: https://github.com/fossasia/loklak_wok_android/issues/41
Steps to post a tweet with media:
POST media/upload
twitter API endpoint: https://dev.twitter.com/rest/reference/post/media/upload-init (Media ID is obtained for small files, without using APPEND and FINIALIZE command).statuses/update
(https://dev.twitter.com/rest/reference/post/statuses/update) by providing the media ID inmedia_ids
parameter. This request throws an HTTPException 400, and with an error message:Tried to test the request with
twurl
and an Webapp developed by a twitter team member (http://django-rest-apis.herokuapp.com/media/video), both of it throw the same error (mentioned above).Searched a bit about this and found the following discussions:
A demo app that can be used to verify this error, link: https://github.com/SKrPl/TwitterMultimedia