escher-suiteapi-js
v17.0.0
Published
Escher Suite Api js
Downloads
714
Keywords
Readme
Escher Suite API client for JavaScript
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);