Shopify 访问令牌重定向我,而不是给我令牌



当我尝试在 shopify 中获取我的应用程序的访问令牌时,而不是返回

{ "access_token": "{{token}}", "scope": "{{scopes}}" },

我收到重定向:

(响应代码:303(

<html><body>You are being <a href="https://{{shop}}.myshopify.com/admin/auth/login">redirected</a>.</body></html>.

我的要求是:

发布

https://{{shop}}.myshopify.com/admin/oath/access_token

身体:

{
"client_id": "{{app_key}}",
"client_secret": "{{app_secret}}",
"code": "{{authorization_code}}"
}

我在这里做错了什么?

猜测您在到达此步骤之前已完成授权。

https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode}

此外,IIM 猜测大括号中的值已替换为正确的变量:)

最新更新