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-sdkUsage
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
- Platform API Docs — authentication, quickstart, and full API documentation
- Platform OpenAPI Schema — the full specification for the platform API
- npm package
- GitHub repository
How is this guide?