Problem with Token URL for Basecamp 3 API

◇◆丶佛笑我妖孽 提交于 2019-12-14 04:05:23

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/54281415/problem-with-token-url-for-basecamp-3-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!