escher-suiteapi-js
17.0.0 • Public • Published 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);
Dependencies (3)
Dev Dependencies (10)
Package Sidebar
Install
Weekly Downloads