Tasks and Notes for Sandata's legal issue with a course being deleted. Downloaded spark pdf for them.
This commit is contained in:
18
Scripts/API_Tests/get_course_verify_name.py
Normal file
18
Scripts/API_Tests/get_course_verify_name.py
Normal file
@ -0,0 +1,18 @@
|
||||
import requests
|
||||
import pprint
|
||||
import Apikeys
|
||||
|
||||
PP=pprint.PrettyPrinter(indent=4)
|
||||
COURSEUUID = "2d3d0f6d-5ea4-49b6-9574-f4d563d9f042"
|
||||
APIKEY = Apikeys.SPARKPROD
|
||||
URL = f"https://api2.northpass.com/v2/courses/{COURSEUUID}/activities"
|
||||
HEADERS = { "accept": "*/*",
|
||||
"x-api-key": APIKEY,
|
||||
"content-type": "application/json",
|
||||
}
|
||||
|
||||
course_get = requests.get(URL, headers=HEADERS)#.json
|
||||
print(course_get.status_code)
|
||||
print(course_get.text)
|
||||
PP.pprint(course_get)
|
||||
|
||||
Reference in New Issue
Block a user