Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.28 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.28 KB

token-budget-insight

This small tool aims to automate the creation of the long-term token for a Budget Insight application; the process is explain in the Budget Insight API docs. It's planned to be run locally and exposed with a tunnel system, like ngork.

Usage

First, an account and application are required on Budget Insight. Also, your callback URI need to be defined inside your app client configuration. More information here.

go build
./token-budget-insight -domain <domainName> -clientid <clientID> -yourcallbackuri <hostname>/callback -clientsecret <clientSecret>

After opening your web browser on localhost:8080, click on the WebView link and select your account inside the Budget Insight WebView then the token is displayed inside your page or your terminal. This access token is a long term token, more detail here.

Example (with fake values)

go build
./token-budget-insight -domain test45-sandbox  -clientid 12548 -yourcallbackuri https://website.com/callback -clientsecret fsfefR4fRghop5