xmlmc

1.4.5 • Public • Published

xmlmc-js

A javascript wrapper for the Supportworks XMLMC API. To use run

npm install xmlmc
import { XmlMethodCall } = from 'xmlmc';

Usage

The package is isomorphic. To use with webpack or browserify, just require it in your script as you normally would. To use it in a strictly browser environment, just use the minified code in dist/browser. The code will support browsers

= firefox 52 and IE 10 / node >= 6.10

import { XmlMethodCall } from 'xmlmc'
const xmlmc = new XmlMethodCall('https://devserver.local');
xmlmc.session.analystLogon('admin', btoa('password')).then(() => {
    ...
}).catch(promiseCatcher)
 
function promiseCatcher(e) {
    console.log(e);
}

Or use async/await

await xmlmc.session.analystLogon('admin',btoa('password'))

View the full docs here

Tested on all major browsers with great thanks to BrowserStack

Browser Stack

Readme

Keywords

Package Sidebar

Install

npm i xmlmc

Weekly Downloads

3

Version

1.4.5

License

ISC

Unpacked Size

353 kB

Total Files

72

Last publish

Collaborators

  • richbai90