Updated training events script for SPS commerce. Added some templates for Harri to help Tracy. Small other items.

This commit is contained in:
Norm Rasmussen
2024-01-17 16:44:12 -05:00
parent e9bdfd23df
commit 2c8f3d34c8
7 changed files with 49 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import Apikeys
import requests
APIKEY = Apikeys.CIN7
APIKEY = Apikeys.RENAISSANCE
HEADERS = {
"accept": "application/json",
"X-Api-Key": APIKEY,
@ -51,7 +51,10 @@ def get_courses():
nextlink = response["links"]
for item in response["data"]:
print(item["id"])
cname = item['attributes']['name']
if "[USCS CH MI]" in cname:
print(cname)
# print(item["id"])
# idict = {item["attributes"]["name"]: item["id"]}
# id = item["id"]
# name = item["attributes"]["name"]