get https://api.supportbench.com/company/
You can retrieve a company and all of its data. All activity fields are returned.
Responses
You can retrieve a company and all of its data. All activity fields are returned.
xxxxxxxxxx
16var company_data = null;
var company_id = 'CP-1000';
​
$.ajax({
url: 'https://api.supportbench.net/company/' + company_id,
type: 'get',
contentType: 'application/json',
dataType: 'json',
beforeSend: function(request) {
request.setRequestHeader('Authorization', 'Bearer ' + token);
},
success: function(r) {
company_data = r;
alert(company_data.id);
}
});