I am rolling my own coldfusion code for sending out a statuses update tweet (in order to understand everything better and not rely on a 3rd party package). I want to tweet from my website as another twitter user who has given me permission.
I got through all of the oauth steps in order to get my oauthtoken and oauthtokensecret for the user I want to twitter update as. I am able to do a statuses user_timeline api call with no problem for this user using the received tokens in my oauth header. I can also see when logged in as this user on twitter that he has approved my access.
However when I then try and use the same oauth header to send a tweet as this person I get a “could not authenticate you” error message. If I remove any reference to the “status” variable, it of course tells me I am missing a required parameter.
So somehow I am building my oauth header incorrectly for this OR making the call to twitter incorrectly. What parameters do I need exactly in the header that I then create my signature string from? After that, what parameters do I need to actually put in my header when I make the call (using the calculated signature string above in here)? And then how do I call the api with my POST or GET to make it happen?
Something in there is not working for the statuses update correctly. Perhaps even a dump showing me exactly what a valid request looks like getting to twitter (with keys obfuscated of course). I’m doing something wrong here and figured this should be the EASY step after going through all the oauth calls to get my oauth tokens to use!