sitecore-personalize-tenant-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Sitecore Personalize Tenant SDK

Welcome to the Javascript based SDK for using the Sitecore Personalize Tenant/Admin APIs. This repository is useful if you want to create integrations with these APIs. This repository is used by many other repositories such as the Serializer for CDP/Personalize, and many Automation Testing scripts.

Getting Started

To get started using this SDK, you should first install the package as a dependency in your Node project:

> npm install sitecore-personalize-tenant-sdk

Once it's installed you'll need to initialize the client:

import { Client, RegionOptions, TemplateType } from 'sitecore-personalize-tenant-sdk';

let client: Client;
client = new Client({
  clientId: '<ClientId>',
  clientSecret: '<ClientSecret>',
  region: RegionOptions.EU,
});

await client.Authenticate();

let response = await client.Templates.GetAllTemplates(TemplateType.Web);

This module is built with ESM in mind and doesn't currently support CJS.

Development / Contributions

Release

Package Sidebar

Install

npm i sitecore-personalize-tenant-sdk

Weekly Downloads

2

Version

0.2.0

License

GPL-3.0-only

Unpacked Size

56.2 kB

Total Files

29

Last publish

Collaborators

  • dylanyoung-dev