Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruba for Go

Use typed clients to connect Go services to Ruba payments, billing, customers, subscriptions, orders, and webhooks.

Add it to your project

go get github.com/Rubadot/ruba-go

Make a request

package 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.

Learn more

Start with the Ruba documentation, then use the API reference for endpoint details. Go SDK problems belong in this repository's issue tracker.

License

MIT

About

Typed Go client for Ruba payments, billing, customers, and webhooks.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages