Discussions

Ask a Question
Back to All

Humanity Api V1

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)