update_with_media return JSON NULL


#1

I want to upload a picture with update_with_media and php but twitter api returns a NULL JSON. However, if I do it with https://api.twitter.com/1.1/statuses/user_timeline.json it works. What am I doing wrong?