Newbie and hoping somebody can help. I am trying to automate the refresh token step in FileMaker Pro and I am having difficulty in finding out the full steps involved. My code which doesn’t work looks something like this:
curl https://api.sandbox.freeagent.com/v2/token_endpoint \
-H “Content-Type: application/json” \
-H 'Authorization: Basic ’ client_id=[Application Client Id]&client_secret=[Application Client Secret]\
-H ‘Accept: application/json’ \
-X POST -d
‘{“grant_type”:“refresh_token”,“refresh_token”:“<refresh_token>”}’