@contactwise/ims-client-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

Table of contents

Version: 1.0.12

  • Installing
  • Example
  • Resources
  • License

ims-client-sdk allows you to interact with backend service to create and manage ideas

Installing

NPM:

$ npm install @contactwise/ims-client-sdk`

Usage

The following is the simple example for creating client and fetching ideas from the server

import {IMSClient, TokenCredential} from "../src";

let credential: TokenCredential = {
    token: "<access 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))

Readme

Keywords

none

Package Sidebar

Install

npm i @contactwise/ims-client-sdk

Weekly Downloads

1

Version

1.0.12

License

ISC

Unpacked Size

43.8 kB

Total Files

53

Last publish

Collaborators

  • issac.jackson
  • rushmitha
  • blakshmikanth