Getting error 215, Bad authentication


#1

Hello,

i want to use
POST&https%3A%2F%2Fapi.twitter.com%2F1.1%2Fstatuses%2Fupdate.json&oauth_consumer_key%CONSUMER_KEY%26oauth_nonce%3D5A6C704A516B4A5462325A4955325269633164745748424B55304E315A30527851557847626E6C70546D303D%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1454112000%26oauth_version%3D1.0%26status%3DHallo

I have this header
HEADER: Authorization: OAuth oauth_consumer_key=“CONSUMER_KEY”, oauth_nonce=“5A6C704A516B4A5462325A4955325269633164745748424B55304E315A30527851557847626E6C70546D303D”, oauth_signature="%2FvrBzKTCmkNtJlGOdemQbEaEDYU%3D", oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1454112000”, oauth_version=“1.0”

But i get this response:
RESPONSE: {“errors”:[{“code”:215,“message”:“Bad Authentication data.”}]}

I followed the documentation under
https://dev.twitter.com/rest/reference/post/statuses/update

How can i debug the authentication to find the mistake ?

Any help will be nice.


#2

I highly suspect your calculation code for the oauth signature is wrong or your header isn’t correct.