This commit is contained in:
Norm Rasmussen
2023-03-24 15:59:46 -04:00
parent a3660527c7
commit 5f971353ec
35 changed files with 3291 additions and 12 deletions

View File

@ -5,10 +5,12 @@ import Apikeys
# url ="https://api.northpass.com/v2/groups/e6ef3e5f-b5a2-4b10-868b-8c165d76d263/learning_paths"
# url = "https://api.northpass.com/v1/media?limit=1"
url = "https://api.northpass.com/v1/learning_paths"
# url = "https://api.northpass.com/v1/learning_paths"
url = "https://api2.northpass.com/v2/courses"
# function = sys.argv[1]
apiKey = Apikeys.normsandbox
normuuid = "0b31c435-c18b-4573-984e-32cda57045b4"
apiKey = Apikeys.walmartprod
# normuuid = "0b31c435-c18b-4573-984e-32cda57045b4"
# Get Group Memberships:
# url = "https://api.northpass.com/v2/groups/504c4771-223a-447f-9ec6-08e51bc9ca23/memberships"
@ -17,7 +19,7 @@ normuuid = "0b31c435-c18b-4573-984e-32cda57045b4"
# url = "https://api.northpass.com/v2/people/person_uuid/relationships/courses"
# Associate a person with a Learning Path (Test):
url = f"https://api.northpass.com/v1/people/{normuuid}/relationships/learning_paths"
# url = f"https://api.northpass.com/v1/people/{normuuid}/relationships/learning_paths"
def putTest(apiKey, url):
@ -69,6 +71,6 @@ def postTest(apiKey, url):
if __name__ == "__main__":
# getTest(apiKey, url)
getTest(apiKey, url)
# putTest(apiKey, url)
postTest(apiKey, url)
# postTest(apiKey, url)