Family By ContactID Get '/contacts/{contactid}/family'

The method available for Family is exposed under '/contacts/{contactid}/family'


Family By ContactID Fetch

Method Type: GET

returns a list of  family related contact records associated with a specific contact record



Family By ContactID Fetch

 The URI '/contacts/{contactid}/family', when coupled with Method Type 'GET',  returns a List of Family  related contact records that are associated with a specific Contact.{ContactID}/family

Below is a sample request in C# using our URI, sample credentials, and the method type. The content type "text/json" work equally well.

HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("");
req.Headers[System.Net.HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("6C135EDF-C37C-4039-AEF3-5DFC079F9E6A:Statementone:sonedemo"));
req.Method = "GET";
req.ContentType = "text/xml";

//and here's the response stream.
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());


The corresponding response(xml) will be similar to the following.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk