CloudConnect API Reference Guide

Preface

This document provides information for developers who want to interface their applications with Cloud Connect via JSON API.

Security

Connection to the JSON API is provided via HTTPS. Authentication is done using a pair: a user login and either the API access token or the user password.

JSON API

Among the advantages of JSON API are the following:
• Simple data structures that can be easily read and written.
• JSON format is faster in parsing and generating data due to simple syntax, thus there is little influence on web server performance.
• Simplifies the creation of front-end web sites that receive and modify data with minimum impact on performance.

Click To Call API - Outbound Call

The call to call api allows to establish calls between an extension and phone number.

Download API guide

Sample code in jQuery

$.ajax({

method: "POST",
url: "https://api.cloud-connect.in/cloudsoftphone/api/Call/Dial",
contentType: 'application/json',
data: JSON.stringify(data),
headers: {"AccessKey": "xxxxxxxxxxx"},
crossDomain: true,
xhrFields: {
withCredentials: true
},
error: function () { alert("No data found."); },
success: function (response) {
alert('response:' + response);
}
});


CallLog API

The CallLog API will be used to provide call details.

Download API guide

Sample code in jQuery

$.ajax({

method: "POST",
url: "https://api.cloud-connect.in/cloudsoftphone/api/Call/GetCallLog",
contentType: 'application/json',
data: JSON.stringify(data),
crossDomain: true,
xhrFields: {
withCredentials: true
},
error: function () { alert("No data found."); },
success: function (response) {
alert('response:' + response);
}
});


AddJobNumber API

The AddJobNumber API create a job against provided number.

Download API guide

Sample code in jQuery

$.ajax({

method: "POST",
url: "https://api.cloud-connect.in/cloudsoftphone/api/CCJob/AddJobNumber",
contentType: 'application/json',
data: JSON.stringify(data),
crossDomain: true,
xhrFields: {
withCredentials: true
},
error: function () { alert("No data found."); },
success: function (response) {
alert('response:' + response);
}
});


GetJobs API

The GetJob API can be used to get list of jobs.

Download API guide

Sample code in jQuery

$.ajax({

method: "POST",
url: "https://api.cloud-connect.in/cloudsoftphone/api/CCJob/GetJobs",
contentType: 'application/json',
data: JSON.stringify(data),
crossDomain: true,
xhrFields: {
withCredentials: true
},
error: function () { alert("No data found."); },
success: function (response) {
alert('response:' + response);
}
});


WebPhone & CallControl API Guide

List of APIs & Plugin Integration Guide

Webphone Guide

CallControl Guide