tmhOAuth 400 response, Bad Authentication data (code 215)

I was trying to use the statuses/upload_with_media API and found tmhOAuth was able to post multipart data.

But I kept on getting a 400 response – Bad Authentication data, Code 215
I found out that I’ve changed the OAuth version in “tmhOAuth.php”
‘oauth_version’ => ‘1.0’
into
‘oauth_version’ => ‘1.1’
when I turned it back to 1.0, everything worked fine!!
(Don’t even mention the days I’ve wasted on this issue.)
So for now, I’m using twitterOAuth which is set for API ver 1.1 for most of the codes, and tmhOAuth which is set for API ver 1.0 in order to post images.

CC BY-NC-SA 4.0 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Leave a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.