@ordercloud/cms-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Installation

  1. Install the library
    npm install --save @ordercloud/cms-sdk
    
  2. Configure the sdk if necessary
import { CMSConfiguration } from '@ordercloud/cms-sdk'

CMSConfiguration.Set({
    baseApiUrl: 'https://ordercloud-cms-test.azurewebsites.net',
    baseAuthUrl: 'https://auth.ordercloud.io/oauth/token',
    timeoutInMilliseconds: 120 * 1000
})
  1. Token should be stored via ordercloud sdk in ordercloud.access-token
  2. Use CMS Client
import { ContentManagementClient } from '@ordercloud/cms-sdk'

const assets = await ContentManagementClient.Assets.List

Readme

Keywords

none

Package Sidebar

Install

npm i @ordercloud/cms-sdk

Weekly Downloads

15

Version

1.0.5

License

ISC

Unpacked Size

170 kB

Total Files

8

Last publish

Collaborators

  • erincdustin
  • djsteinmetz
  • four51
  • crhistianr
  • oliverheywood451
  • rwatt451
  • amsnyder
  • mmaher451
  • ricocynthia
  • kwahn20