0
我的工作是爲我的Web應用程序使用另一個網站身份驗證編寫一個API。我知道非常基本的JavaScript和PHP和HTML。我需要一些幫助來向我展示爲本網站編寫API的路徑。如何爲以下Web應用程序編寫API?
下面是該網站的文檔的鏈接:
https://affinitylive.jira.com/wiki/display/APIS/Web+Applications
,因爲它說,我必須把這個URL獲得令牌 - >>>
https://hq.local.affinitylive.com/oauth2/v0/authorize?
scope=read(all)&
state=page_two&
redirect_uri=https://app.com/oauth_callback&
response_type=code&
[email protected]
然後我得到令牌後
POST /oauth2/v0/token HTTP/1.1
Host: hq.local.affinitylive.com
Content-Type: application/x-www-form-urlencoded
Authorization: Basic {client_id}:{client_secret}
code=frLA0s1m_D&
redirect_uri=https://app.com/oauth_callback&
grant_type=authorization_code
我不太確定,我喜歡學習的是我的網站和他們的網站之間如何進行身份驗證的溝通。如果答案錯了,我希望找到更多的方法來學習。任何指導或建議將不勝感激。
* [...]我知道非常基本的JavaScript,PHP和HTML * - 這是一個問題。 – CodeAngry