G2 templates, question mark and accredible scripts. HackerRank notes.

This commit is contained in:
Norm Rasmussen
2023-06-08 16:53:46 -04:00
parent 20ef5dab44
commit b5a86e1abb
8 changed files with 247 additions and 63 deletions

View 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()