An open-source Golang SDK for integrating with Intuit’s QuickBooks Payments API, allowing:
✔ Bank Account Management: Create and manage bank accounts via QuickBooks API.
✔ Secure Authentication: Uses OAuth2 bearer tokens for API access.
✔ Error Handling: Includes structured error handling for API requests.
go get github.com/nishujangra/intuit-go
Create a config.json file in the main directory of the project you are using this sdk in.
touch config.json
Fill the config.json file with
{
"INTUIT": {
"INTUIT-CREDENTIALS": {
"CLIENT_ID": "<your client id>",
"CLIENT_SECRET": "<your client secret>"
},
"PAYMENTS": {
"PRODUCTION": {
"BASE_URL": "https://api.intuit.com/",
"AUTH_URL": "https://oauth.platform.intuit.com/"
},
"SANDBOX": {
"BASE_URL": "https://sandbox.api.intuit.com/",
"AUTH_URL": "https://oauth.platform.intuit.com/"
}
},
}
}
authClient := auth.NewAuthClient(config.GetClientID(), config.GetClientSecret(), config.GetPaymentsBaseURL())
accessToken, err := authClient.GetToken("<Auth Token>")
if err != nil {
fmt.Println(err)
}
apiClient := client.NewClient(accessToken)
Check the examples for how to use this SDK.
👨💻 Contributions are welcome! Follow these steps:
git checkout -b feature-branch)git commit -m "Added new feature")git push origin feature-branch)This project comes under the License
For any issues or feature requests, open an issue in GitHub Issues. 🚀