blendr.io-unified-api-js-sdk

1.0.5 • Public • Published

Blendr.io Javascript SDK

Installation

Browser

<script src="blendr-io-unifiedapi.js"></script>

NodeJS

npm install blendr.io-unified-api-js-sdk

Usage

Create a new instance using your credentials

var unifiedApi = UnifiedAPI(appid, apikey);

Making an API call

unifiedApi.hubspotListContacts(callback);
function callback(err, result) {
    if(!err) {
        handleResponse(result);
    } else {
        console.log(err);
    }
}

Making an API call with parameters

let params = {q: 'test'}
unifiedApi.hubspotSearchContacts(callback, params);
function callback(err, result) {
    if(!err) {
        handleResponse(result);
    } else {
        console.log(err);
    }
}

Package Sidebar

Install

npm i blendr.io-unified-api-js-sdk

Weekly Downloads

14

Version

1.0.5

License

ISC

Last publish

Collaborators

  • blendr.io