24 lines
664 B
Python
24 lines
664 B
Python
|
|
import requests
|
||
|
|
|
||
|
|
|
||
|
|
def get_results():
|
||
|
|
url = "https://ondemand.questionmark.com/deliveryodata/406287/Results"
|
||
|
|
params = "?$filter=ParticipantName eq tom.leggett%40questionmark.com"
|
||
|
|
# params = "?$filter=AssessmentID eq 352630000352630L"
|
||
|
|
url_params = f"{url}{params}"
|
||
|
|
|
||
|
|
headers = {
|
||
|
|
"Accept": "application/json",
|
||
|
|
"Content-Type": "application/json",
|
||
|
|
"Authorization": "Basic bm9ydGhwYXNzX2FwaTpobWUycXl4KlRGVSphcHkuZnBr"
|
||
|
|
}
|
||
|
|
|
||
|
|
# response = requests.get(url, headers=headers)
|
||
|
|
response = requests.get(url_params, headers=headers)
|
||
|
|
print(response)
|
||
|
|
print(response.text)
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
get_results()
|