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.
1 parent b27be95 commit ea84f13Copy full SHA for ea84f13
shopify/api_version.py
@@ -1,4 +1,5 @@
1
import re
2
+import json
3
from six.moves.urllib import request
4
5
@@ -27,7 +28,7 @@ def define_version(cls, version):
27
28
def define_known_versions(cls):
29
req = request.urlopen("https://app.shopify.com/services/apis.json")
30
data = json.loads(req.read().decode("utf-8"))
- for api in j['apis']:
31
+ for api in data['apis']:
32
if api['handle'] == 'admin':
33
for release in api['versions']:
34
if release['handle'] == 'unstable':
0 commit comments