当我尝试在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}}"
}
我在做什么错了?
答案 0 :(得分:0)
假设您已完成授权,然后再执行此步骤。
即https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={redirect_uri}&state={nonce}&grant_options[]={access_mode}
此外,IIM猜测大括号中的值已替换为正确的变量:)