Migration work for Luma but the darn enrollments endpoint is still giving me issues.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
||||
SANDBOX = "SlpQlju219WnWogn94dQUT6Yt"
|
||||
LUMA = "oDFA7XSmjEKjEwIDIKLm0rxs1"
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user