Using Zoho Attendance API

Using Zoho Attendance API

Hi,

 

I had been trying to implement the Zoho Attendance check-in and check-out API available on the linkhttps://www.zoho.com/people/help/api/attendance-api.html#1

For this i created an Authentication Token as specified on the link. https://www.zoho.com/people/help/api/auth-token.html#2

But the API did not return success when I tried to insert an In-time and Out-Time for my userId.

I tried invoking the API using the below URL.

 

https://people.zoho.com/people/api/attendance?authtoken=<mytoken>&dateFormat=dd/MM/yyyy HH:mm:ss&checkIn=14/07/2017 09:00:00&checkOut=14/07/2017 18:30:00&emailId='example@example.com'

The error message returned was

 

{"response":{"message":"Error occurred","uri":"/api/attendance","errors":{"code":7206,"message":"This URL can be invoked via POST method only"},"status":1}}

 

I also tried using HttpWebRequest POST method from visual studio and the error message returned was

 

[{"msg":"Permission Denied","response":"failure"}]

 

Please let me know if there is anything wrong with the way I used the API or is it any other technical issue.


Thanks,

Rajeev M Kartha