Migration work for Luma but the darn enrollments endpoint is still giving me issues.

This commit is contained in:
Norm Rasmussen
2024-12-10 16:49:58 -05:00
parent 732b1a4b6d
commit 9a045e60dc
8 changed files with 289 additions and 12 deletions

View File

@ -1 +1,2 @@
SANDBOX = "SlpQlju219WnWogn94dQUT6Yt"
LUMA = "oDFA7XSmjEKjEwIDIKLm0rxs1"

View File

@ -5,7 +5,7 @@ from json import JSONDecodeError
PP = pprint.PrettyPrinter(indent=4)
APIKEY = apikeys.SANDBOX
APIKEY = apikeys.LUMA
HEADERS = {"content-type": "application/json", "X-Api-Key": APIKEY}
BASEURL = "https://api.northpass.com/v2"
@ -20,7 +20,6 @@ def get(url):
)
finally:
json_get = get_response.json()
# PP.pprint(json_get)
return json_get
@ -35,7 +34,6 @@ def post(url, payload):
print(f"Status code is {post_response.status_code}")
json_post = post_response.json()
if json_post:
print(json_post)
return json_post
else:
return post_response