Follow

Important Information By ContactID Methods '/contacts/{contactid}/importantinfo'

The methods available for Important Information are exposed under their respective URIs, which are described below.


Important Information by ContactID Fetch

Method Type: GET

returns a the important information associated with a contact record

'/contacts/{contactid}/importantinfo'

 

Important Information by ContactID PUT

Method Type: PUT

Updates a specific Contact Record's Important Information.

'/contacts/{contactid}/importantinfo'



Important Information By ContactID Fetch

 The URI '/contacts/{contactid}/importantinformation', when coupled with Method Type 'GET',  returns the important information string related to a specific contact record.

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

https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/importantinfo


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/importantinfo");
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.

 

Important Information By ContactID Put

 The URI '/contacts/{contactid}/importantinfo', when coupled with Method Type 'PUT',  Updates the Important Information for a Contact Record.

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

https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/importantinfo

 

Request Header example (C#)

HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/importantinfo");
req.Headers[System.Net.HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("6C135EDF-C37C-4039-AEF3-5DFC079F9E6A:statementone:sonedemo"));
req.Method = "PUT";
req.ContentType = "text/json";

 

Request Body example (C#)

string reqJSON = "{""ImportantInformation"":""Use P.O. Box address when mailing.""}";
byte[] reqBody = System.Text.Encoding.ASCII.GetBytes(reqJSON);

//Request Stream
req.GetRequestStream().Write(reqBody, 0, reqBody.Length);

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

 

 

 

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

Comments

Powered by Zendesk