There was an error while loading. Please reload this page.
1 parent defae79 commit f5478efCopy full SHA for f5478ef
png-to-zpl.py
@@ -10,8 +10,9 @@
10
with open(image_path, 'rb') as f:
11
image_bytes = f.read()
12
13
+token = '00000000-0000-0000-0000-000000000000' # TODO: Replace with your API key
14
url = 'https://www.labelzoom.net/api/v2/convert/png/to/zpl'
-headers = { 'Content-Type': 'image/png', 'Accept': 'text/plain' }
15
+headers = { 'Content-Type': 'image/png', 'Accept': 'text/plain', 'Authorization': f'Bearer {token}' }
16
response = requests.post(url, data=image_bytes, headers=headers)
17
18
try:
0 commit comments