366 Degrees

366 Web API

Index

Get All Contacts From 366 Degrees

Description: This will return a full list of contacts from your 366 Degrees and all of the associated fields as listed below in the response body.
Method: GetAllContacts
URL : https://366.io/366LeadAPI/api/Contact/GetAllContacts
 

Try it out

Contact Details Information

Sample Code

C# Code

public List
GetAllContacts(string App_Key, string App_Secret)
{
var request = new RestRequest("/api/Contact/GetAllContacts", Method.GET) { RequestFormat = DataFormat.Json };
request.AddHeader("App_Key", App_Key);
request.AddHeader("App_Secret", App_Secret);
var response = client.Execute >(request);
return response.Data;
}

JQuery Code

function getAllContacts() {
jQuery.support.cors = true;
var appkey = $('#txtAppKey').val();
var appsecret = $('#txtAppSecret').val();
if (appkey == '' & appsecret == '') {
alert("Please provide the values for 'Contact Email','App_Key' and 'App_Secret'");
return false;
}
else {
$.ajax({
url: 'http://366.io/366ContactLeadAPI/api/Contact/GetAllContacts',
type: 'GET',
contentType: "application/json; charset=utf-8",
headers:
{
'App_Key': appkey,
'App_Secret': appsecret
},
success: function (data) {
alert(data);
},
error: function () {
alert('error');
}
});
}
}

Json Output

{
Address : "Hitech City",
Address1 : "Madhapur",
AlternateEmail : "",
AlternateMobile : "",
App_Key : "",
App_Secret : "",
City : "Hyderabad",
CompanyName : "Choice-Solutions.com",
ContactStatus : "Active",
ContactTitle : ".Net Developer",
ContactType : "Lead",
Country : "India",
DOB : "",
Email : "maheswar.s@choice-solutions.com",
EnrollDate : "",
EnrollStatus : "",
Fax : "",
FirstName : "Maheswar",
LastName : "S",
MiddleName : "",
Mobile : "",
Phone : "",
SignupType : null,
State : "Telangana",
ZipCode : "500001"
},
{
Address : "Choice Towers",
Address1 : "Hitech-City",
AlternateEmail : "",
AlternateMobile : "",
App_Key : "",
App_Secret : "",
City : "Hyderabad",
CompanyName : "Choice-Solutions.com",
ContactStatus : "Active",
ContactTitle : "Tech Lead",
ContactType : "Lead",
Country : "India",
DOB : "",
Email : "krishnamraju.setty@choice-solutions.com",
EnrollDate : "",
EnrollStatus : "",
Fax : "",
FirstName : "KrishnamRaju",
LastName : "S",
MiddleName : "",
Mobile : "",
Phone : "",
SignupType : null,
State : "Telangana",
ZipCode : "500001"
}