Follow

Activities By ContactID Methods '/contacts/{contactid}/activities'

The methods available for Activities By ContactID are exposed under their respective URI's, which are described below.

 

Activities by ContactID Fetch

Method Type: GET

returns a paged list of Activities associated with a specific Contact

'/contacts/{contactid}/activities?startdate={StartDate}&enddate={EndDate}&page={Page}'

page = {#} equivalent to page #. non-supplied= page 1

startdate = 'MM-DD-YYYY' format.  ex: January 1st, 2012 is '01-01-2012'

enddate= 'MM-DD-YYYY' format.  ex: January 31st, 2012 is '01-31-2012'

 

 

Activities by ContactID Fetch (Basic)

Method Type: GET

returns a simplified paged list of Activities associated with a specific Contact

'/contacts/{contactid}/activities/basic?startdate={StartDate}&enddate={EndDate}&page={Page}'

page = {#} equivalent to page #. non-supplied= page 1

startdate = 'MM-DD-YYYY' format.  ex: January 1st, 2012 is '01-01-2012'

enddate= 'MM-DD-YYYY' format.  ex: February 15th, 2012 is '02-15-2012'

 

 

Activities by ContactID Fetch

 

The URI '/contacts/{contactid}/activities', when coupled with Method Type 'GET',  returns a paged list of activities for a particular Contact between a specified startdate and enddate.

 

The startdate and enddate date format follows 'MM-DD-YYYY''.  example: January 15 2012 is '01-15-2012'

 

https://api2.redtailtechnology.com/crm/v1/rest/contacts/{contactid]/activities?page={page}&startdate={startdate}&enddate={endddate}

 

example: https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/activities?startdate=01-01-2012&enddate=05-01-2012&page=1

 

 

 

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/activities?starddate=01-01-2012&enddate=01-01-2013&page=1");
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());

 

 

 

Activities by ContactID Fetch (Basic)

 

The URI '/calendar/{userid}', when coupled with Method Type 'GET',  returns a paged list of simplified activities for a particular Contact inside a range specified by the startdate and enddate.

 

The startdate and enddate date format follows 'MM-DD-YYYY' .  ie: January 15 2012 is '01-15-2012'

 

https://api2.redtailtechnology.com/crm/v1/rest/contacts/{contactid}/basic?page={page}&startdate={startdate}&enddate={endddate}

 

example: https://api2.redtailtechnology.com/crm/v1/rest/contacts/384843/basic?starddate=01-01-2012&enddate=05-01-2012&page=1

 

 

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/activities/basic?starddate=01-01-2012&enddate=01-01-2013&page=1");
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());

 

 

 

 

 

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

Comments

Powered by Zendesk