Simple command line interface for FreeAgent.
freeagent <API path>
e.g. freeagent /accounting/profit_and_loss/summary
See available API paths here: https://dev.freeagent.com/docs
Hint: pipe results to jq .
to get nicely formatted JSON
npm install -g freeagent
- register an app on https://dev.freeagent.com/apps
- create a
~/.freeagent.json
file:
{
"clientId": "OAuth identifier here",
"clientSecret": "OAuth secret here"
}