19 lines
460 B
Python
19 lines
460 B
Python
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)
|
|
|