Follow

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

'/contacts/{contactid}/family'

 

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.

https://api2.redtailtechnology.com/crm/v1/rest/contacts/{ContactID}/family

https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/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("https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/family");
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

Comments

Powered by Zendesk