SDKsPlatform
Go SDK (platform)
Install and use the Ours Privacy Go platform SDK to manage sources, destinations, consent settings, and more from your Go applications.
Go Platform SDK
The Ours Privacy Go platform SDK gives you programmatic access to manage your account configuration — sources, destinations, consent settings, and more.
Installation
go get -u 'github.com/with-ours/platform-sdk-go@latest'Usage
Import the SDK with an alias — we recommend oursprivacy:
package main
import (
"context"
"fmt"
oursprivacy "github.com/with-ours/platform-sdk-go"
"github.com/with-ours/platform-sdk-go/option"
)
func main() {
client := oursprivacy.NewClient(
option.WithAPIKey("YOUR_API_KEY"), // defaults to os.LookupEnv("OURS_PRIVACY_API_KEY")
)
sources, err := client.Sources.List(context.TODO())
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", sources.Entities)
}Resources
- Platform API Docs — authentication, quickstart, and full API documentation
- Platform OpenAPI Schema — the full specification for the platform API
- pkg.go.dev
- GitHub repository
How is this guide?

