<script src="blendr-io-unifiedapi.js"></script>
npm install blendr.io-unified-api-js-sdk
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);
}
}