wxm-api-client
Node.js library for Cisco Webex Experience Manager REST APIs
Last updated 10 months ago by ccondry .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install wxm-api-client 
SYNC missed versions from official npm registry.

wxm-api-client

Node.js library for Cisco Webex Experience Manager REST APIs

This library provides 2 methods currently - listUsers and createUser.

Example usage

const lib = require('wxm-api-client')
// replace these values with your API username and password
const username = 'tenantadmin'
const password = 'tenantpassword'

// create instance of the client library
const client = new lib({username, password})

// list all users
client.listUsers()
.then(body => {
  // map the users to a more readable list of relevant info
  const users = body.map(v => {
    return {
      id: v.id,
      userName: v.userName,
      primaryRole: v.primaryRole,
      name: v.name,
      email: v.email,
      mobilePhone: v.mobilePhone,
      isEmailVerified: v.isEmailVerified,
      isActive: v.isActive
    }
  })
  // log results
  console.log(users)
})
.catch(e => console.log(e))

// create a user
// note: a prefix will be added to username on cloud server side
client.createUser({
  name: 'Rick Barrows 0325',
  username: 'rbarrows0325',
  email: 'ccondry@cisco.com',
  password: 'dcloud@123'
})
.then(body => console.log(body))
.catch(e => console.log(e))

Current Tags

  • 2020.12.7                                ...           latest (10 months ago)

6 Versions

  • 2020.12.7                                ...           10 months ago
  • 1.2.0                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2021 © npmmirror.com |