I have an app created last year, called X. Access level of X is Read-only.
I have an app created today, called Y. Access level of Y is Read and Write. (not sure if relevant)
What I’m trying to do is to retrieve a request_token from https://api.twitter.com/oauth/request_token endpoint.
Twitter OAuth endpoint does redirection to Allow/Deny screen very well and works completely fine for X. On the other hand, I change consumer key & secret accordingly OAuth settings of Y.
Then, what happens is, Twitter returns an HTTP 401. My OAuth library (Play! framework OAuth lib, used by many people, very unlikely to be the root cause for the issue) says that “Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.”
The point that I don’t get is why it is working for an app but not the other one. For debugging purposes, id numbers of apps are as follows: X=656570, Y=1414841. I really wonder why is that happening. Does anyone has an idea?
Thanks.