1.0.12 • Published 3 years ago

@contactwise/ims-client-sdk v1.0.12

Weekly downloads
63
License
ISC
Repository
-
Last release
3 years ago

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))
1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago