oauthbasecamp

Problem with Token URL for Basecamp 3 API


I am building an oauth app to connect to Basecamp 3 API using PHP and following the documentation here.

https://github.com/basecamp/api/blob/master/sections/authentication.md

The request authorization url works fine

https://launchpad.37signals.com/authorization/new

but the token url produces a page not found

https://launchpad.37signals.com/authorization/token

I contacted Basecamp but didn't get a response. They do say they don't prioritize suppose issues with the API because so few of their customers use it.

Any ideas on what the correct url for getting tokens would be?


Solution

  • There are 4 steps:

    Step 1: Choose a webhook service or build your own (which certainly takes more time). This will receive the authentication.

    Step 2: Register your app within Basecamp. it'll give you the client key and secret key

    Step 3: You need to make a GET call to the .../new address. You need to pass on the client key, secret key and redirect url. The API will send an 8-digit number to the Webhook. You need to retrieve that from the webhook.

    Step 4: Make the same GET call to the .../token address. You'll pass the key in addition to all previous information in the header. Then you'll receive an access token.

    Supposedly with this access token you should be able to activate all other API. I have not figure this part out.