- 在 Laravel PHP 中 shopify 公共 api。在laravel 7中運行應用程式到這種型別的錯誤顯示
uj5u.com熱心網友回復:
公共 API 這假設您使用正確的密鑰和重定向 URI 在合作伙伴的儀表板中正確設定了您的應用程式。
REST(同步) 對于 REST 呼叫,需要商店域和訪問令牌。
use Osiset\BasicShopifyAPI\BasicShopifyAPI;
use Osiset\BasicShopifyAPI\Options;
use Osiset\BasicShopifyAPI\Session;
// Create options for the API
$options = new Options();
$options->setVersion('2020-01');
// Create the client and session
$api = new BasicShopifyAPI($options);
$api->setSession(new Session('example.myshopify.com', 'access-token-here'));
// Now run your requests...
$result = $api->rest(...);
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/321854.html
標籤:php html 拉拉维尔 laravel-5 laravel-7
上一篇:未指定輸入檔案。面板/PHP
