You can retrieve a new access token using the refresh token.
GraemeOn 1 May 2013 12:31, james stevenson firstname.lastname@example.org 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
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 email@example.com.
To post to this group, send email to firstname.lastname@example.org.
Visit this group at http://groups.google.com/group/freeagent_api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Senior Software Engineer
40 Torphichen Street, Edinburgh, EH3 8JB
FreeAgent Central Ltd. Registered in sunny Scotland SC316774