CDPGuidesSupport
SDKsIngest

C# SDK (ingest)

Quickly integrate the Ours Privacy C# SDK using NuGet. Send test requests from the Track Events API reference.

This is a quick start guide for integrating the Ours Privacy C# SDK into your server-side applications.

Installation

Install the SDK via NuGet:

dotnet add package OursPrivacy

For more details, visit the NuGet package | Github Repo.

Usage

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

using System;
using OursPrivacy;
using OursPrivacy.Models.Track;

OursPrivacyClient client = new();

// Track an event
TrackEventParams parameters = new()
{
    Token = "your-api-key",
    Event = "Purchase",
};

var response = await client.Track.Event(parameters);

Console.WriteLine(response);

Explore the API

Want to see what the SDK can do? Send test requests from the Track Events API reference.

How is this guide?

On this page