escher-suiteapi-js

17.0.0 • Public • Published

Escher Suite API client for JavaScript

Dependency Status devDependency Status

Usage

const SuiteRequest = require('escher-suiteapi-js');

const options = new SuiteRequest.Options('example.host.com', {
  credentialScope: 'eu/service/ems_request'
});
const suiteRequest = SuiteRequest.create('escher.key', 'escher.secret', options);

const heroId = 1;
let response = await suiteRequest.get(`/heroes/${heroId}`);
console.log(response);

let response = await suiteRequest.post('/heroes', {
  name: 'Captain America',
  sex: 'male'
});
console.log(response);

Readme

Keywords

Package Sidebar

Install

npm i escher-suiteapi-js

Weekly Downloads

191

Version

17.0.0

License

MIT

Unpacked Size

14 kB

Total Files

8

Last publish

Collaborators

  • blacksonic
  • boogie
  • gergelyke
  • sviktor
  • draven
  • emarsys-deployer