Freeagent api integration in php

hi’

I getting the bellow error while getting access_token in php

Format not recognised. Set accept http header to application/json or
application/xml

anybody can help me please?

Hi there,

Could you post the code you are using to get the access token?

Per the documentation
https://dev.freeagent.com/docs/oauth#the-access-token-request, the
request needs to be of type
application/x-www-form-urlencoded;charset=UTF-8.

Thanks,
IoanOn Friday, February 19, 2016 at 9:58:18 AM UTC, Bhagya Lakshmi wrote:

hi’

I getting the bellow error while getting access_token in php

Format not recognised. Set accept http header to application/json or
application/xml

anybody can help me please?