1.0.12 • Published 4 years ago

@contactwise/ims-client-sdk v1.0.12

Weekly downloads
63
License
ISC
Repository
-
Last release
4 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

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.2

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago