[英]LightSpeed Retail API -How to get the Temporary Token
我正在開發一個wordpress插件,該插件可從Lightspeed Retail API獲取某些產品信息。 我按照http://developers.lightspeedhq.com/retail/authentication/access-token/中的文檔中的步驟進行操作
我有客戶ID和客戶機密,但是我沒有臨時令牌,目前我被卡住了,我確定我在這里缺少某些程序,您能幫我嗎?
這是我根據API文檔使用的當前代碼:
...
$tokenURL = "https://cloud.lightspeedapp.com/oauth/access_token.php";
$postFields = [
'client_id' => 'XXXXXXXXXXXXX',
'client_secret' => 'XXXXXXXXXXXXX',
'code' => 'Temporary Token',
'grant_type' => 'authorization_code'
];
...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.