We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 16c3315 + 136d940 commit 47c4e4aCopy full SHA for 47c4e4a
lib/ShopifySDK.php
@@ -205,13 +205,17 @@ class ShopifySDK
205
*/
206
public static $timeAllowedForEachApiCall = .5;
207
208
+ /**
209
+ * @var string Default Shopify API version
210
+ */
211
+ public static $defaultApiVersion = '2020-01';
212
+
213
/**
214
* Shop / API configurations
215
*
216
* @var array
217
218
public static $config = array(
- 'ApiVersion' => '2019-10'
219
);
220
221
@@ -310,7 +314,7 @@ public static function config($config)
310
314
* Reset config to it's initial values
311
315
312
316
self::$config = array(
313
- 'ApiVersion' => '2019-04'
317
+ 'ApiVersion' => self::$defaultApiVersion
318
319
320
foreach ($config as $key => $value) {
0 commit comments