DeepL templates and tasks for the same.

This commit is contained in:
Norm Rasmussen
2025-12-17 16:55:47 -05:00
parent 7741634b94
commit 7340726f9b
12 changed files with 181 additions and 52 deletions

View File

@ -3,11 +3,11 @@ import os
import Apikeys
import requests
apikey = Apikeys.SUPPLIERPROD
apikey = Apikeys.DEEPL
cmd = "touch ~/Downloads/Supplier_Categories.csv"
os.system(cmd)
url = "https://api2.northpass.com/v2/categories?limit=100"
url = "https://api.northpass.com/v2/categories?limit=100"
headers = {
"accept": "application/json",
"X-Api-Key" : apikey,
@ -28,3 +28,8 @@ with open('/Users/normrasmussen/Downloads/Supplier_Categories.csv', 'r') as read
for row in reader:
print(row)
"""
For use in URLS, the filter syntax is ?filter[category_uuid][in][]=6bfcb970-d82f-4ed9-ad7b-d17f1b82a6a9
Category Names don't work
"""