Use typed clients to connect Go services to Ruba payments, billing, customers, subscriptions, orders, and webhooks.
go get github.com/Rubadot/ruba-gopackage main
import (
"context"
"log"
"os"
rubago "github.com/Rubadot/ruba-go"
)
func main() {
client := rubago.New(
rubago.WithSecurity(os.Getenv("RUBA_ACCESS_TOKEN")),
)
result, err := client.Organizations.List(
context.Background(),
nil,
rubago.Pointer[int64](1),
rubago.Pointer[int64](10),
nil,
)
if err != nil {
log.Fatal(err)
}
log.Println(result.ListResourceOrganization)
}Set a custom server when you need the sandbox. Authentication uses a Ruba access token sent as an HTTP bearer token.
Start with the Ruba documentation, then use the API reference for endpoint details. Go SDK problems belong in this repository's issue tracker.
MIT