Skip to content

Commit 3b6b023

Browse files
authored
Custom API Version in $config
1 parent 81e6cc8 commit 3b6b023

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ $config = array(
5454
'AccessToken' => '***ACCESS-TOKEN-FOR-THIRD-PARTY-APP***',
5555
);
5656

57+
PHPShopify\ShopifySDK::config($config);
58+
```
59+
You can use specific Shopify API Version by adding in the config array
60+
61+
```php
62+
$config = array(
63+
'ShopUrl' => 'yourshop.myshopify.com',
64+
'AccessToken' => '***ACCESS-TOKEN-FOR-THIRD-PARTY-APP***',
65+
'ApiVersion' => '2022-07',
66+
);
67+
5768
PHPShopify\ShopifySDK::config($config);
5869
```
5970
##### How to get the permanent access token for a shop?

0 commit comments

Comments
 (0)