Sha*_*n S 5 shopify shopify-app
在我的开发商店中安装应用程序后,当我尝试将临时访问代码交换为永久令牌时,我立即收到此错误。
Oauth 错误 invalid_request:无法使用 api_key 找到 Shopify API 应用程序
我正在使用下面的代码
$client = new Client();
$response = $client->request(
'POST',
"https://{$store}/admin/oauth/access_token",
[
'form_params' => [
'client_id' => $api_key,
'client_secret' => $secret_key,
'code' => $query['code']
]
]
);
$data = json_decode($response->getBody()->getContents(), true);
$access_token = $data['access_token'];
Run Code Online (Sandbox Code Playgroud)
任何帮助深表感谢。谢谢!