Scripts updated to do Anthology work. Added Anthology's GAS Script. Pipedrive's Sitemap. and Zenjob templates.
This commit is contained in:
BIN
Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc
Normal file
BIN
Scripts/API_Tests/__pycache__/Apikeys.cpython-310.pyc
Normal file
Binary file not shown.
@ -21,17 +21,15 @@ def get_groups(APIKEY):
|
||||
nextlink = data["links"]
|
||||
|
||||
for response in data["data"]:
|
||||
created_at = response["attributes"]["created_at"]
|
||||
if created_at.startswith("2023"):
|
||||
group_id = response["id"]
|
||||
group_name = response["attributes"]["name"]
|
||||
# print(group_name)
|
||||
groups_dict = {
|
||||
"id": group_id,
|
||||
"name": group_name,
|
||||
# "created_at": created_at,
|
||||
}
|
||||
groups.append(groups_dict)
|
||||
# created_at = response["attributes"]["created_at"]
|
||||
# if created_at.startswith("2023"):
|
||||
group_id = response["id"]
|
||||
group_name = response["attributes"]["name"]
|
||||
# print(group_name)
|
||||
groups_dict = {
|
||||
group_name : group_id
|
||||
}
|
||||
groups.append(groups_dict)
|
||||
|
||||
if "next" not in nextlink:
|
||||
break
|
||||
|
||||
@ -23,9 +23,10 @@ def get_courses():
|
||||
nextlink = response["links"]
|
||||
|
||||
for item in response["data"]:
|
||||
id = item["id"]
|
||||
name = item["attributes"]["name"]
|
||||
list_of_ids.append(id)
|
||||
idict = { item["attributes"]["name"] : item["id"] }
|
||||
# id = item["id"]
|
||||
# name = item["attributes"]["name"]
|
||||
list_of_ids.append(idict)
|
||||
|
||||
if "next" not in nextlink:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user