Skip to content

SDK

This guide will get you started working with the SDK for Bizzkit CMS.

Installation

Add a .npmrc to your project, in the same directory as your package.json:

1
2
3
registry=https://pkgs.dev.azure.com/bizzkit-platform/7dad82b4-f2ae-4a3a-ab87-3fc791e4ea62/_packaging/bizzkit-partner-feed/npm/registry/

always-auth=true

Then, run vsts-npm-auth to get an Azure Artifacts token added to your user-level .npmrc file

vsts-npm-auth -config .npmrc

Note: You don't need to do this every time. npm will give you a 401 Unauthorized error when you need to run it again.

Finally install the package:

npm i @bizzkit/cms-dk

Usage

Signing in with Bizzkit products from within a Builder plugin

1
2
3
4
5
import { signIn } from '@bizzkit/cms-sdk'

const { token } = await signIn({
    contentUrl: '<customer>-content.bizzkit.cloud'
})

This will provide you with a bearer token that can then be used to call other Bizzkit product APIs, such as DAM, ECS and PIM. The function also takes care of caching the bearer token so the user is not prompted to sign in each time.