Install the Formance SDK with the following command:
Copy
Ask AI
go get github.com/formancehq/formance-sdk-go/v3
The Formance API relies on OAuth 2.0 for authentication.For more information, see OAuth 2.0.
In this demo, we will setup the Formance SDK with the client credentials grant type, which requires a client ID and client secret. These are sensitive credentials that should not be exposed to the public.If you’re integrating the Formance SDK in a client-side application, you should should use an OAuth 2.0 flow that does not expose the client secret, such as the authorization code grant.
You’ll need the API endpoint and the credentials created during the SDK’s Getting Started guide. If you don’t have them, you can create them by following the guide.