I’m writing a Chrome extension that should be able to generate an invoice.
I am a contractor and I am required to submit timesheets via a web service.
Currently I need to create the timesheet twice: in the 3rd party web
service and a matching invoice in my FreeAgent. I would like the extension
to augment the 3rd party web service page and inject a button that will
generate an invoice in FreeAgent using the data from the page.
Currently I will have to run a web service just so that my extension can
get an access token. This is inconvenient.
I’m working on a Chrome extension. It looks like I’m going to have to run a
server just so that my extension can get authorized by FreeAgent. It is
rather inconvenient.
If this extension is just for your own use, and including the client secret
in it is fine, you could probably avoid using OAuth for Installed
Applications. Just set the redirect URL in Developer Dashboard https://dev.freeagent.com to something like
“chrome-extension://extension-id/token_capture.html”, and open the
FreeAgent OAuth workflow from the extension when there’s no token available.
Regards,
IoanOn Tuesday, June 2, 2015 at 7:35:38 AM UTC+1, Jan K wrote:
Hi Graham,
The thing is I am not implementing a web service. I would simply like to
talk to FreeAgent API directly from the Chrome extension, but it looks like
I’m gonna have to run a server just so that I can get user authorization.
I was also considering writing a command-line tool – same problem.
Thanks for clarifying your original email. We’ve no immediate plans to
support the Installed Applications flow that Google describes. If you are
implementing a service for your own use, could you get an access token by
other means (e.g. via Curl) for the extension to use? That would avoid you
having to run a web service.
I’m writing a Chrome extension that should be able to generate an invoice.
I am a contractor and I am required to submit timesheets via a web service.
Currently I need to create the timesheet twice: in the 3rd party web
service and a matching invoice in my FreeAgent. I would like the extension
to augment the 3rd party web service page and inject a button that will
generate an invoice in FreeAgent using the data from the page.
Currently I will have to run a web service just so that my extension can
get an access token. This is inconvenient.
The thing is I am not implementing a web service. I would simply like to talk to FreeAgent API directly from the Chrome extension, but it looks like I’m gonna have to run a server just so that I can get user authorization.
I was also considering writing a command-line tool – same problem.