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);
forked from emartech/escher-suiteapi-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Escher request library for Escher authenticated API clients
License
mmolnar-emar/escher-suiteapi-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Escher request library for Escher authenticated API clients
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- JavaScript 100.0%