Authenticate with an api key


#1

We have one company - two divisions. I’m trying to manage the way we
product invoices.

I plan to build a little app that generates PDF’s for each invoice. We’d
first create the invoice in freeagent. Then, using the api, we’d pull the
order, generate the PDF (populating it with the correct logo, trading as
stuff and division particulars). The app then sends the PDF via email, and
marks it as sent in Freeagent.

I do a lot of shopify stuff - in Shopify, we can create private apps
without the need for all the Oauth stuff.

Is it possible to do the same with Freeagent. I plan to build it as an
electron app that sits on my desktop.

Thanks,

Rob


#2

Good Morning Rob,

To interact with your FreeAgent account(s) via our API, you will first need
to login to the accounts using OAuth.

The login process is one-time only, after which you can use your “refresh”
token to ensure you always have a valid “access” token for making
authenticated requests:
https://dev.freeagent.com/docs/oauth

I’m afraid there’s no way for the above mechanism to be circumvented at
this time.

I hope this helps!
Dave JOn Friday, 12 August 2016 14:45:13 UTC+1, Rob Willie wrote:

We have one company - two divisions. I’m trying to manage the way we
product invoices.

I plan to build a little app that generates PDF’s for each invoice. We’d
first create the invoice in freeagent. Then, using the api, we’d pull the
order, generate the PDF (populating it with the correct logo, trading as
stuff and division particulars). The app then sends the PDF via email, and
marks it as sent in Freeagent.

I do a lot of shopify stuff - in Shopify, we can create private apps
without the need for all the Oauth stuff.
https://help.shopify.com/api/guides/api-credentials

Is it possible to do the same with Freeagent. I plan to build it as an
electron app that sits on my desktop.

Thanks,

Rob