Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 549 Bytes

getting-started.md

File metadata and controls

22 lines (16 loc) · 549 Bytes

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,
});

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