Access token auto refresh

Hi James,

You can retrieve a new access token using the refresh token.

See FreeAgent Developer Dashboard

Kind regards,

GraemeOn 1 May 2013 12:31, james stevenson stevjl2@googlemail.com wrote:

I need a code example on how to auto refresh the token.
We are currently creating a contact and invoice however we are using a
script that requires us to manually login once to generate the token, we
can store this token in a database to use again however I read in the docs
this expires after 7 days.

We need to be able to have an open connection into the API in order to run
the code in the background after the user has made a payment. Can anyone
help?


You received this message because you are subscribed to the Google Groups
“FreeAgent API” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to freeagent_api+unsubscribe@googlegroups.com.
To post to this group, send email to freeagent_api@googlegroups.com.
Visit this group at http://groups.google.com/group/freeagent_api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Graeme Boyd
Senior Software Engineer

Web. freeagent.com http://www.freeagent.com/ Blog. The FreeAgent Blog - FreeAgent
Twitter. @freeagent https://twitter.com/#!/freeagent Facebook.
FreeAgent | Edinburgh

40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774