shopify-php-sdk
shopify-php-sdk copied to clipboard
How to set api version?
Hi,
Thank you code, But I use your code have a question, New API version is 2020-01, but I call you SDK, Return is an error, How to use API version in this SDK?
PHP Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error:
GET https://xxxx.myshopify.com/admin/api/products.jsonresulted in a404 Not Foundresponse:
use
$client = new PrivateApi(array(
'api_version' => '2020-01/',
'api_key' => 'SHOPIFY_USERNAME',
'password' => 'SHOPIFY_PASSOWORD',
'shared_secret' => '',
'myshopify_domain' => 'SHOPFIY_STORENAME'
));
see slash ... there is bug in code so we have to use slash in api_version
@gomcodoctor - Thanks, that worked