G2 templates, question mark and accredible scripts. HackerRank notes.
This commit is contained in:
23
Scripts/API_Tests/questionmark_results.py
Normal file
23
Scripts/API_Tests/questionmark_results.py
Normal file
@ -0,0 +1,23 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user