JSPM

cms-api-client

2020.10.26
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q32447F
  • License UNLICENSED

Cisco Meeting Server API client library

Package Exports

  • cms-api-client

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cms-api-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cms-api-client

This is a JavaScript client for the Cisco Meeting Server API (currently built against v2.2 of the CMS API).

Functions

Currently this library can create a Space, list Spaces with pagination, and list all Spaces.

Usage

const CmsClient = require('cms-api-client')
let client = new CmsClient({
  url: 'https://cms.mydomain.com:445/api/v1',
  username: 'api',
  password: 'pa$$w0rd'
})

client.spaces.create({
  name: 'Jane Smith',
  email: 'jsmith@mydomain.com',
  uri: 'jsmith',
  secondaryUri: '5551112222',
  callId: '5551112222',
  passcode: '123456'
})
.then(response => {
  console.log(response)
})
.catch(error => {
  console.log(error)
})

client.spaces.listAll()
.then(response => {
  console.log(response)
})
.catch(error => {
  console.log(error)
})