@plasma-platform/service-items
v1.2.2
Published
SDK for service items
Downloads
124
Readme
Full documentation
install:
npm i @plasma-platform/service-items -S
Short documentation
Table of Contents
ServiceItems
Items API
createNewItem
Create new item
Parameters
params
object
Examples
(async () => {
const service = new Service(url, token);
const request = await service.createNewItem(params);
})();
Returns Promise<any>
getItemById
Get item by id
Parameters
id
string Item id.
Examples
(async () => {
const service = new Service(url);
const request = await service.getItemById(id);
})();
Returns Promise<any>
getItems
Get items
Parameters
Examples
(async () => {
const service = new Service(url);
const request = await service.getItems({ids: [1,2]});
})();