CloudConnect API Reference Guide
This document provides information for developers who want to interface their applications with Cloud Connect via JSON API.
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.
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.
The call to call api allows to establish calls between an extension and phone number.
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);
}
});
The CallLog API will be used to provide call details.
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);
}
});
The AddJobNumber API create a job against provided number.
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);
}
});
The GetJob API can be used to get list of jobs.
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);
}
});
List of APIs & Plugin Integration Guide