"body":“[API] 此操作需要商户批准 read_customers 范围。”
"body":"[API] This action requires merchant approval for read_customers scope."
我是 Shopify 开发的新手,在尝试让客户使用代码时遇到了这个错误:
$id = '5207879811243';
$shop = Auth::user();
$request = $shop->api()->rest('GET', '/admin/api/customers/search.json', ['customers' => "id:{$id}"]);
return $request;
在进行任何 API 调用之前,您必须执行以下操作:
- 对于 私有 应用程序,请确保您已勾选 read_customers 范围
- 对于 public 应用程序,请确保您的 oAuth 范围包括 read_customers 范围
Shopify 中有大量文档向您展示应用范围。
我是 Shopify 开发的新手,在尝试让客户使用代码时遇到了这个错误:
$id = '5207879811243';
$shop = Auth::user();
$request = $shop->api()->rest('GET', '/admin/api/customers/search.json', ['customers' => "id:{$id}"]);
return $request;
在进行任何 API 调用之前,您必须执行以下操作:
- 对于 私有 应用程序,请确保您已勾选 read_customers 范围
- 对于 public 应用程序,请确保您的 oAuth 范围包括 read_customers 范围
Shopify 中有大量文档向您展示应用范围。