IMS Client SDK
npm install @contactwise/ims-client-sdkVersion: 1.0.12
- Installing
- Example
- Resources
- License
ims-client-sdk allows you to interact with backend service to create and manage ideas
NPM:
``npm
$ npm install @contactwise/ims-client-sdk
``
`js
import {IMSClient, TokenCredential} from "../src";
let credential: TokenCredential = {
token: "
expiresIn: 30000 // expiration time in UNIX epoch time
}
// set
let baseUrl: string = "https://api.contactwise.io/ideas/v1";
let client = new IMSClient(credential, baseUrl);
// Fetch ideas from the server
client.Ideas.listAsync()
.then(data => console.log(data))
.catch(error => console.error(error))
``