Hi, I am using as timestamp the one returned by the HEAD call at https://api.twitter.com/1/help/test.json. I retrieve it from the Header of the request and send back with the request_token request, you can see it in the Authorization header.
I get the following errors:
10-06 20:22:16.903: W/DefaultRequestDirector(10924): Authentication error: Unable to respond to any of these challenges: {}
10-06 20:22:16.923: E/(10924): 401 Unauthorized Failed to validate oauth signature and token
I thing that I noticed is that signature string is like the ok, I checked it using the OAuth Tool from the developer page, but the signature is different. I tried to generate the signature from the linux console, this way
emanuele@Nabucodonosor ~ $ printf ‘%s’ “POST&https%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_consumer_key%3D6gGR8PjjI7oprW01Mtn8Wg%26oauth_nonce%3Dcfb5fc259e3500d388bbc70caf3e6b8e%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1381078185%26oauth_token%3D104113706-i9Q3ATuxKxhel7sSlv1ZW98SsRKyIIHg2fDBN6Vx%26oauth_version%3D1.0” | openssl dgst -sha1 -hmac “XXXXX&” -binary | openssl base64
and it returns the same signature of my application. Is that normal?
Thanks for the help