2017-04-20 58 views
0

我想在heroku上託管開源解析服務器。解析REST API中的X-Parse-REST-API-Key是什麼?

開源文檔(https://docs.parseplatform.org/rest/guide/#users)指出,對於所有的REST API,應該有一個X-Parse-REST-API-Key。

E.g.用戶登錄。

curl -X GET \ 
    -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ 
    -H "X-Parse-REST-API-Key: ${REST_API_KEY}" \ 
    -H "X-Parse-Revocable-Session: 1" \ 
    -G \ 
    --data-urlencode 'username=cooldude6' \ 
    --data-urlencode 'password=p_n7!-e8' \ 
    https://api.parse.com/1/login 

我不是很知道什麼是REST的API-KEY?事實上,該API將工作沒有REST的API-KEY:

curl -X GET \ 
    -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ 
    -H "X-Parse-Revocable-Session: 1" \ 
    -G \ 
    --data-urlencode 'username=cooldude6' \ 
    --data-urlencode 'password=p_n7!-e8' \ 
    https://api.parse.com/1/login 

這是文檔中錯誤還是我錯過了什麼?

回答

0

開源文檔相當過時。另外,大多數事件現在不需要REST API。在大多數情況下,您只能使用appID和Masterkey。

+0

現在在開源解析中看起來沒有多少活動。甚至沒有更新文檔。 – mkto