366 Degrees

366 Web API

Contact Details by Email

Get Contact Record Details

Description: This will return all fields associated with a contact email address from your 366 Degrees.
Method: GetContactByEmailId
URL: https://stage2api.366.io/366LeadAPI/api/Contact/GetContactByEmailId
 

Try it out

Contact Details Information

 
First Name Middle Name
Last Name Contact Email
Address Address1
City State
Country Zipcode
Mobile Phone
Fax DOB
ContactStatus EnrollDate
AlternateEmail ContactTitle
CompanyName EnrollStatus
SignupType AlternateMobile
 

Sample Code

C# Code

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

JQuery Code

function getContactByEmailId()
{
jQuery.support.cors = true;
var emailid = $('#txtContactEmail').val();
var appkey = $('#txtAppKey').val();
var appsecret = $('#txtAppSecret').val();
$.ajax({
url: 'http://stage2api.366.io/366ContactLeadAPI/api/Contact/GetContactByEmailId',
type: 'GET',
contentType: "application/json; charset=utf-8",
headers: { 'App_Key': appkey, 'App_Secret': appsecret, 'Contact_Email': emailid },
success: function (data) {
//Success 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"
}