Juno API (Open Banking) (2.0.0)
This project is part of my personal portfolio, so, I'll be happy if you could provide me any feedback about the project, code, structure or anything that you can report that could make me a better developer!
Email-me: boscardinvinicius@gmail.com
Connect with me at LinkedIn.
- Get authentication token
- Create tokenized card
- Get plans for signatures
- Get plan by ID
- Create plan
- Disable plan by ID
- Enable plan by ID
To run this project in the development mode, you'll need to have a basic environment to run:
- A Golang SDK, that can be found here.
$ go get github.com/booscaaa/juno-go-sdk
The access client_id, client_secret and resource_token can be found into Juno account
{
"juno": {
"client_id": "cliend id",
"client_secret": "client secret",
"resource_token": "resource token"
}
}
package main
import (
"fmt"
"github.com/booscaaa/juno-go-sdk/juno"
"github.com/spf13/viper"
)
func init() {
viper.SetConfigFile(`config.json`)
err := viper.ReadInConfig()
if err != nil {
panic(err)
}
}
func main() {
// Get configuration variavables
clientID := viper.GetString("juno.client_id")
clientSecret := viper.GetString("juno.client_secret")
resourceToken := viper.GetString("juno.resource_token")
// Configure Sandbox access into Juno api
junoAccess := juno.JunoConfig().
ClientID(clientID).
ClientSecret(clientSecret).
ResourceToken(resourceToken).
Sandbox()
junoSdk := juno.Instance(junoAccess)
// Get authentication token from juno api
accessToken, err := junoSdk.GetAuthToken()
if err != nil {
fmt.Println(err)
}
//Get list plans from juno api
plans, err := junoSdk.GetPlans(*accessToken)
if err != nil {
fmt.Println(err)
}
//see more examples into examples folder
}
go run main.go
You can send how many PR's do you want, I'll be glad to analyze and accept them! And if you have any question about the project...
Email-me: boscardinvinicius@gmail.com
Connect with me at LinkedIn
Thank you!
This project is licensed under the MIT License - see the LICENSE.md file for details