Hi guys,
I’ve been working with the new FreeAgent API, now that v1 is EOL. I’ve got
the oAuth connection sorted, there’s no problem there. I’ve implemented a
wrapper for the key GET related requests that I need. The trouble has come
when I’ve tried to implement creating a timeslip (POST).
The API documentation doesn’t show sample request data and their types +
format. So, referencing
: https://dev.freeagent.com/docs/timeslips#create-a-timeslip
We see it says to provide the following input:
- user (Required)
- project (Required)
- task (Required)
- dated_on (Required)
- hours (Required)
- comment
I’ve provided a task by it’s ID and tried passing the full name of the task
as is (via copy/paste from the UI)…I am always receiving the response
“task is required” or something to that effect. It let me to think there
was a problem with the oAuth PHP lib that I was using, so I dug into that
and found the data is all being posted as I would expect.
Would anyone have any ideas? Is the task in a format that I’m unaware of?
Has anyone had any success with creating a timeslip?
Thanks in advance,
Dave.