Discussions
Humanity Api V1
over 6 years ago by Mukul Joshi
Hi , while using api v1 i am not able to get the json response , it always return Html page of v1, below is my query.
url = "https://www.humanity.com/api"
payload = "key=XXXXX&module=schedule.shifts&method=GET&username=username&password=password"
headers = {
'accept': "application/json",
'content-type': "application/x-www-form-urlencoded",
'cache-control': "no-cache",
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response)