SDKs

Go SDK (server api)

Quickly integrate the Ours Privacy Go SDK using go get. Explore its features with our Interactive API Explorer.

Ours Privacy Go SDK Documentation

This is a quick start guide for integrating the Ours Privacy Go SDK (golang) into your server-side applications.

Installation

Install the SDK via go get:

go get github.com/with-ours/ingest-sdk-go

For more details, visit the Go package repository | Github Repo.

Usage

Initialize the SDK and send events with just a few lines of code:

package main

import (
    "context"
    "github.com/with-ours/ingest-sdk-go/oursprivacy"
)

func main() {
    client := oursprivacy.NewClient()

    ctx := context.Background()

    // Track an event
    _, err := client.Track.Event(ctx, oursprivacy.TrackEventParams{
        Token: "your-api-key",
        Event: "Purchase",
        UserID: "user123",
    })
    if err != nil {
        // handle error
    }
}

Explore the API

Want to see what the SDK can do? Try our Interactive API Explorer to experiment with endpoints and features in real time.

How is this guide?

Ours Privacy Go SDK Documentation