I am currently trying to implement the update_with_media feature so a user can attach an image to a new tweet. Since my request takes its time, I guess that uploading the image itself is not the problem, but authenticating seems to be, here’s the JSON data I get back:
{"errors":[{"message":"Could not authenticate you","code":32}]
Since it works with various other requests(including 1.1/statuses/update), I suppose update_with_media is a little special here, and https://dev.twitter.com/discussions/1059 states the same. However, it also uses upload.twitter.com and not api.twitter.com as I do, and since https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media does not say anything about that, I’m not quite sure if theses differences still exist.
So:
-
Are there any differences in OAuth authrozation between update_with_media and all other api functions? If so, what’s different?
- Regarding my problem, is a wrong Authorization header the only thing which could cause such an error message or can there also be other problems(such as corrupt image data, …)?
- Or am I doing something else wrong and I’m just blind?
Hope you can enlighten me, thanks in advance.