oAuth 404 Issue


#1

I am running into oAuth issues with the server returning 404 page not found. Can someone help? Below is the curl command that I copied straight from Twitter’s “oAuth Tool” page.

Testing on Windows machine:
curl --request “POST” “https://api.twitter.com/1.1/” --header "Authorization: OAuth oauth_consumer_key=“m676B13GERSKWU6sqfBU7ExnL”, oauth_nonce=“dc1fe269af930e27cbb32bc8606064cc”, auth_signature=“viawnNW5gkV9S5S3%2BzqYPBW4bDc%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1432333909”, oauth_token=“1951126891-OU8FMnS6g8edV8VPbNPr34WDdRGfLkkP4uMMGZh”, oauth_version=“1.0"” --verbose


#2

The endpoint you are posting this to (https://api.twitter.com/1.1/) is invalid.
Please have a look at the OAuth Docs in order to learn about how OAuth works and how it is implemented on Twitter or consider using a library that does it for you, as it is quite tricky to get right on the first try.


#3

Thanks. I did not realize that the Twitter Tool was defaulting the api version to 1.1. Changing it to api.twitter.com/oauth did the trick.