SDKsPlatform

Node.js SDK (platform)

Install and use the Ours Privacy Node.js platform SDK to manage sources, destinations, consent settings, and more from your server-side code.

Node.js Platform SDK

The Ours Privacy Node.js platform SDK (@oursprivacy/platform-sdk) gives you programmatic access to manage your account configuration — sources, destinations, consent settings, and more.

Installation

npm install @oursprivacy/platform-sdk

Usage

import OursPrivacyPlatform from '@oursprivacy/platform-sdk';

const client = new OursPrivacyPlatform({
  apiKey: process.env['OURS_PRIVACY_API_KEY'], // This is the default and can be omitted
});

const sources = await client.sources.list();

console.log(sources.data);

Resources

How is this guide?

On this page