Docs error with Users Profile


#1

On page: https://dev.freeagent.com/docs/users#get-personal-profile

The JSON example states that the key to retrieve the desired response data is “user”. Your system is returning the data under the key: users

Also, the JSON shows that you have user => array of attributes but in-fact, the response is actually users => 2D array with only 1 element.

So basically, the api response for users/me is the same structure as the api response for listing all users /users, but the docs imply it is the same structure as that for users/:id


#2

It works for me as per the documentation.


#3

Did you write your API implementation, or are you using a wrapper of some kind?


#4

(Sorry for the delay - I thought the forum would notify me if you replied but it didn’t seem to.)

I wrote my API wrapper. But it works for me using curl too.