Notes & SPS Templates

This commit is contained in:
Norm Rasmussen
2022-12-16 15:50:08 -05:00
parent ef2edb8b94
commit 90300533d9
8 changed files with 114 additions and 7 deletions

View File

@ -1,8 +1,15 @@
import requests
# apiKey = "SlpQlju219WnWogn94dQUT6Yt"
apiKey = "VNDXh8K4tLYJ-Nvp78bo6w"
url = "https://api.northpass.com/v1/media"
apiKey = "3ia7mWFkdeALYQFYoB51yh6Ov"
# ForceManager
# apiKey = "2vfHw6ksqGfT1gUhPM8pXx2wW"
# Talkspace Core
url ="https://api.northpass.com/v2/groups/e6ef3e5f-b5a2-4b10-868b-8c165d76d263/learning_paths"
# "https://api.northpass.com/v1/media"
# function = sys.argv[1]
@ -26,7 +33,7 @@ def putTest(apiKey, url):
def getTest(apiKey, url):
headers = {"accept": "application/json", "X-Api-Key": apiKey}
response = requests.get(url, headers=headers)
# print(response.text)
print(response.text)
jsonResponse = response.json()
# print(jsonResponse["data"][1]["attributes"])