<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://api.rezora.com/documentation/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>API Documentation - User contributions [en]</title>
		<link>http://api.rezora.com/documentation/index.php?title=Special:Contributions/WikiSysop</link>
		<description>From API Documentation</description>
		<language>en</language>
		<generator>MediaWiki 1.15.4</generator>
		<lastBuildDate>Sat, 02 May 2026 00:44:05 GMT</lastBuildDate>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* form.html */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded in PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All samples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&lt;br /&gt;
The files are included below, or you can [http://api.rezora.com/documentation/samples/rezora_api_add_contact_form.zip download them here].&lt;br /&gt;
&lt;br /&gt;
=== form.html ===&lt;br /&gt;
The form contains two fields: name, and email address.  However, this could be expanded to include any of the fields supported by the contacts collection resource.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== form_processor.php ===&lt;br /&gt;
This script should be considered a starting point, and requires some customization, notably in the areas of user input validation and user response messages.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
* This script uses the Rezora Agent API to add a new contact entry to an agent's account, &lt;br /&gt;
* and to add that contact to a specified Distribution List so that newly added contacts&lt;br /&gt;
* may be easily identified by the agent from within the Rezora system.&lt;br /&gt;
* See http://api.rezora.com/ for the full API documentation.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
// Set some configuration constants.&lt;br /&gt;
// Your Agent API Key username and password are available on your Rezora My Account page.&lt;br /&gt;
define('API_USERNAME', 'YOUR_API_USERNAME');&lt;br /&gt;
define('API_PASSWORD', 'YOUR_API_PASSWORD');&lt;br /&gt;
define('API_BASEURI', 'http://api.rezora.com/v1/');&lt;br /&gt;
define('API_FORMAT', 'application/json');&lt;br /&gt;
&lt;br /&gt;
// Set the ID of the distribution list to which new contacts will be added.&lt;br /&gt;
// You should create a distribution list (called something like &amp;quot;Website Signup&amp;quot;) exclusively for this purpose.&lt;br /&gt;
// You can get the ID of a lsit by using the Lists API Resource, or by noting the ID in the HTML code on the agent's Contacts page within the Rezora system.&lt;br /&gt;
// Leave the value as zero to skip this step (not recommended).&lt;br /&gt;
$intListID = 0;&lt;br /&gt;
&lt;br /&gt;
// Validate the user-submitted form data before proceding&lt;br /&gt;
if (validateUserData()) {&lt;br /&gt;
  // First, we'll be posting data to the contacts collection resource to create a new contact.&lt;br /&gt;
  // Set some configuration variables specific to the task at hand.&lt;br /&gt;
  $strResource = 'contacts';&lt;br /&gt;
  $strData = '{&lt;br /&gt;
    &amp;quot;data&amp;quot;:{&lt;br /&gt;
      &amp;quot;contact_name&amp;quot;:&amp;quot;' . $_POST['name'] . '&amp;quot;,&lt;br /&gt;
      &amp;quot;contact_email&amp;quot;:&amp;quot;' . $_POST['email'] . '&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }';&lt;br /&gt;
&lt;br /&gt;
  // Post the API request&lt;br /&gt;
  $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make sure we successfully added the contact before continuing&lt;br /&gt;
  if ($intListID &amp;gt; 0 &amp;amp;&amp;amp; $arrResponse['status'] == 200) {&lt;br /&gt;
    // Next, we'll be posting data to the lists/ID/contacts collection resource to associate the new contact with the specified distribution list.&lt;br /&gt;
    // Set some configuration variables specific to the task at hand.&lt;br /&gt;
    $strResource = 'lists/' . $intListID . '/contacts';&lt;br /&gt;
    $strData = '{&lt;br /&gt;
      &amp;quot;data&amp;quot;:{&lt;br /&gt;
        &amp;quot;contact_id&amp;quot;:&amp;quot;' . $arrResponse['body'][0]-&amp;gt;contact_id . '&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
    }';&lt;br /&gt;
&lt;br /&gt;
    // Post the API request&lt;br /&gt;
    $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Get a status message to diplay to the user.&lt;br /&gt;
  $strMessage = getStatusMessage($arrResponse['status']);&lt;br /&gt;
} else {&lt;br /&gt;
  // Send a message to the user explaining wehat they have done wrong.&lt;br /&gt;
  // Your validateUserData() function should probably provide detailed error messages.&lt;br /&gt;
  $strMessage = 'You must provide valid information. Please try again.';&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Function for validating the user-submitted form data&lt;br /&gt;
function validateUserData() {&lt;br /&gt;
  // You'll probably want to put some code here to validate whatever input you're receiving from the user.&lt;br /&gt;
  return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Make an API POST request&lt;br /&gt;
function doAPIPost($strResourcePath, $strData) {&lt;br /&gt;
  // Open a cURL resource&lt;br /&gt;
  $ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
  // Set the necessary parameters&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_USERPWD, API_USERNAME . ':' . API_PASSWORD);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_URL, API_BASEURI . $strResourcePath);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . API_FORMAT, 'Content-type: ' . API_FORMAT));&lt;br /&gt;
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
  // Make this a POST request&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make the request and capture the response and status code.&lt;br /&gt;
  $arrResponse['body'] = json_decode(curl_exec($ch));&lt;br /&gt;
  $arrResponse['status'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
&lt;br /&gt;
  // Close the cURL resource&lt;br /&gt;
  curl_close($ch);&lt;br /&gt;
&lt;br /&gt;
  return $arrResponse;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Return a status message to display to the user.&lt;br /&gt;
function getStatusMessage($strStatus) {&lt;br /&gt;
  // An array of all status codes.&lt;br /&gt;
  // These descriptions are rather technical. You may want to make them more user-friendly for production.&lt;br /&gt;
  $arrStatuses = array(&lt;br /&gt;
    '200' =&amp;gt; 'The request was successfully processed.',&lt;br /&gt;
    '204' =&amp;gt; 'The request was formatted correctly, but no data was found for the specified resource.',&lt;br /&gt;
    '400' =&amp;gt; 'Your data has failed a validation test.',&lt;br /&gt;
    '401' =&amp;gt; 'Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.',&lt;br /&gt;
    '404' =&amp;gt; 'The resource you have requested does not exist.',&lt;br /&gt;
    '405' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.',&lt;br /&gt;
    '500' =&amp;gt; 'The API experienced an internal error while attempting to process your request.',&lt;br /&gt;
    '501' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.'&lt;br /&gt;
  );&lt;br /&gt;
  // Look up the message that corresponds to the status code&lt;br /&gt;
  if (array_key_exists($strStatus, $arrStatuses)) {&lt;br /&gt;
    $strMessage = $arrStatuses[$strStatus];&lt;br /&gt;
  } else {&lt;br /&gt;
    // Use a default message if no match was found&lt;br /&gt;
    $strMessage = 'An unknown error occurred while attempting to add your information. Please try again.';&lt;br /&gt;
  }&lt;br /&gt;
  return $strMessage;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php echo $strMessage ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 14:07:23 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* Sample 1: mailing list signup form */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded in PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All samples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&lt;br /&gt;
The files are included below, or you can [http://api.rezora.com/documentation/samples/rezora_api_add_contact_form.zip download them here].&lt;br /&gt;
&lt;br /&gt;
=== form.html ===&lt;br /&gt;
The form contains two fields: name, and email address.  Hows=ever, this could be expanded to include any of the fields supported by the contacts collection resource.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== form_processor.php ===&lt;br /&gt;
This script should be considered a starting point, and requires some customization, notably in the areas of user input validation and user response messages.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
* This script uses the Rezora Agent API to add a new contact entry to an agent's account, &lt;br /&gt;
* and to add that contact to a specified Distribution List so that newly added contacts&lt;br /&gt;
* may be easily identified by the agent from within the Rezora system.&lt;br /&gt;
* See http://api.rezora.com/ for the full API documentation.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
// Set some configuration constants.&lt;br /&gt;
// Your Agent API Key username and password are available on your Rezora My Account page.&lt;br /&gt;
define('API_USERNAME', 'YOUR_API_USERNAME');&lt;br /&gt;
define('API_PASSWORD', 'YOUR_API_PASSWORD');&lt;br /&gt;
define('API_BASEURI', 'http://api.rezora.com/v1/');&lt;br /&gt;
define('API_FORMAT', 'application/json');&lt;br /&gt;
&lt;br /&gt;
// Set the ID of the distribution list to which new contacts will be added.&lt;br /&gt;
// You should create a distribution list (called something like &amp;quot;Website Signup&amp;quot;) exclusively for this purpose.&lt;br /&gt;
// You can get the ID of a lsit by using the Lists API Resource, or by noting the ID in the HTML code on the agent's Contacts page within the Rezora system.&lt;br /&gt;
// Leave the value as zero to skip this step (not recommended).&lt;br /&gt;
$intListID = 0;&lt;br /&gt;
&lt;br /&gt;
// Validate the user-submitted form data before proceding&lt;br /&gt;
if (validateUserData()) {&lt;br /&gt;
  // First, we'll be posting data to the contacts collection resource to create a new contact.&lt;br /&gt;
  // Set some configuration variables specific to the task at hand.&lt;br /&gt;
  $strResource = 'contacts';&lt;br /&gt;
  $strData = '{&lt;br /&gt;
    &amp;quot;data&amp;quot;:{&lt;br /&gt;
      &amp;quot;contact_name&amp;quot;:&amp;quot;' . $_POST['name'] . '&amp;quot;,&lt;br /&gt;
      &amp;quot;contact_email&amp;quot;:&amp;quot;' . $_POST['email'] . '&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }';&lt;br /&gt;
&lt;br /&gt;
  // Post the API request&lt;br /&gt;
  $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make sure we successfully added the contact before continuing&lt;br /&gt;
  if ($intListID &amp;gt; 0 &amp;amp;&amp;amp; $arrResponse['status'] == 200) {&lt;br /&gt;
    // Next, we'll be posting data to the lists/ID/contacts collection resource to associate the new contact with the specified distribution list.&lt;br /&gt;
    // Set some configuration variables specific to the task at hand.&lt;br /&gt;
    $strResource = 'lists/' . $intListID . '/contacts';&lt;br /&gt;
    $strData = '{&lt;br /&gt;
      &amp;quot;data&amp;quot;:{&lt;br /&gt;
        &amp;quot;contact_id&amp;quot;:&amp;quot;' . $arrResponse['body'][0]-&amp;gt;contact_id . '&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
    }';&lt;br /&gt;
&lt;br /&gt;
    // Post the API request&lt;br /&gt;
    $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Get a status message to diplay to the user.&lt;br /&gt;
  $strMessage = getStatusMessage($arrResponse['status']);&lt;br /&gt;
} else {&lt;br /&gt;
  // Send a message to the user explaining wehat they have done wrong.&lt;br /&gt;
  // Your validateUserData() function should probably provide detailed error messages.&lt;br /&gt;
  $strMessage = 'You must provide valid information. Please try again.';&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Function for validating the user-submitted form data&lt;br /&gt;
function validateUserData() {&lt;br /&gt;
  // You'll probably want to put some code here to validate whatever input you're receiving from the user.&lt;br /&gt;
  return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Make an API POST request&lt;br /&gt;
function doAPIPost($strResourcePath, $strData) {&lt;br /&gt;
  // Open a cURL resource&lt;br /&gt;
  $ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
  // Set the necessary parameters&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_USERPWD, API_USERNAME . ':' . API_PASSWORD);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_URL, API_BASEURI . $strResourcePath);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . API_FORMAT, 'Content-type: ' . API_FORMAT));&lt;br /&gt;
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
  // Make this a POST request&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make the request and capture the response and status code.&lt;br /&gt;
  $arrResponse['body'] = json_decode(curl_exec($ch));&lt;br /&gt;
  $arrResponse['status'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
&lt;br /&gt;
  // Close the cURL resource&lt;br /&gt;
  curl_close($ch);&lt;br /&gt;
&lt;br /&gt;
  return $arrResponse;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Return a status message to display to the user.&lt;br /&gt;
function getStatusMessage($strStatus) {&lt;br /&gt;
  // An array of all status codes.&lt;br /&gt;
  // These descriptions are rather technical. You may want to make them more user-friendly for production.&lt;br /&gt;
  $arrStatuses = array(&lt;br /&gt;
    '200' =&amp;gt; 'The request was successfully processed.',&lt;br /&gt;
    '204' =&amp;gt; 'The request was formatted correctly, but no data was found for the specified resource.',&lt;br /&gt;
    '400' =&amp;gt; 'Your data has failed a validation test.',&lt;br /&gt;
    '401' =&amp;gt; 'Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.',&lt;br /&gt;
    '404' =&amp;gt; 'The resource you have requested does not exist.',&lt;br /&gt;
    '405' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.',&lt;br /&gt;
    '500' =&amp;gt; 'The API experienced an internal error while attempting to process your request.',&lt;br /&gt;
    '501' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.'&lt;br /&gt;
  );&lt;br /&gt;
  // Look up the message that corresponds to the status code&lt;br /&gt;
  if (array_key_exists($strStatus, $arrStatuses)) {&lt;br /&gt;
    $strMessage = $arrStatuses[$strStatus];&lt;br /&gt;
  } else {&lt;br /&gt;
    // Use a default message if no match was found&lt;br /&gt;
    $strMessage = 'An unknown error occurred while attempting to add your information. Please try again.';&lt;br /&gt;
  }&lt;br /&gt;
  return $strMessage;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php echo $strMessage ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 13:08:46 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded in PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All samples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&lt;br /&gt;
The files are included below, or you can download them here.&lt;br /&gt;
&lt;br /&gt;
=== form.html ===&lt;br /&gt;
The form contains two fields: name, and email address.  Hows=ever, this could be expanded to include any of the fields supported by the contacts collection resource.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== form_processor.php ===&lt;br /&gt;
This script should be considered a starting point, and requires some customization, notably in the areas of user input validation and user response messages.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
* This script uses the Rezora Agent API to add a new contact entry to an agent's account, &lt;br /&gt;
* and to add that contact to a specified Distribution List so that newly added contacts&lt;br /&gt;
* may be easily identified by the agent from within the Rezora system.&lt;br /&gt;
* See http://api.rezora.com/ for the full API documentation.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
// Set some configuration constants.&lt;br /&gt;
// Your Agent API Key username and password are available on your Rezora My Account page.&lt;br /&gt;
define('API_USERNAME', 'YOUR_API_USERNAME');&lt;br /&gt;
define('API_PASSWORD', 'YOUR_API_PASSWORD');&lt;br /&gt;
define('API_BASEURI', 'http://api.rezora.com/v1/');&lt;br /&gt;
define('API_FORMAT', 'application/json');&lt;br /&gt;
&lt;br /&gt;
// Set the ID of the distribution list to which new contacts will be added.&lt;br /&gt;
// You should create a distribution list (called something like &amp;quot;Website Signup&amp;quot;) exclusively for this purpose.&lt;br /&gt;
// You can get the ID of a lsit by using the Lists API Resource, or by noting the ID in the HTML code on the agent's Contacts page within the Rezora system.&lt;br /&gt;
// Leave the value as zero to skip this step (not recommended).&lt;br /&gt;
$intListID = 0;&lt;br /&gt;
&lt;br /&gt;
// Validate the user-submitted form data before proceding&lt;br /&gt;
if (validateUserData()) {&lt;br /&gt;
  // First, we'll be posting data to the contacts collection resource to create a new contact.&lt;br /&gt;
  // Set some configuration variables specific to the task at hand.&lt;br /&gt;
  $strResource = 'contacts';&lt;br /&gt;
  $strData = '{&lt;br /&gt;
    &amp;quot;data&amp;quot;:{&lt;br /&gt;
      &amp;quot;contact_name&amp;quot;:&amp;quot;' . $_POST['name'] . '&amp;quot;,&lt;br /&gt;
      &amp;quot;contact_email&amp;quot;:&amp;quot;' . $_POST['email'] . '&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }';&lt;br /&gt;
&lt;br /&gt;
  // Post the API request&lt;br /&gt;
  $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make sure we successfully added the contact before continuing&lt;br /&gt;
  if ($intListID &amp;gt; 0 &amp;amp;&amp;amp; $arrResponse['status'] == 200) {&lt;br /&gt;
    // Next, we'll be posting data to the lists/ID/contacts collection resource to associate the new contact with the specified distribution list.&lt;br /&gt;
    // Set some configuration variables specific to the task at hand.&lt;br /&gt;
    $strResource = 'lists/' . $intListID . '/contacts';&lt;br /&gt;
    $strData = '{&lt;br /&gt;
      &amp;quot;data&amp;quot;:{&lt;br /&gt;
        &amp;quot;contact_id&amp;quot;:&amp;quot;' . $arrResponse['body'][0]-&amp;gt;contact_id . '&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
    }';&lt;br /&gt;
&lt;br /&gt;
    // Post the API request&lt;br /&gt;
    $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Get a status message to diplay to the user.&lt;br /&gt;
  $strMessage = getStatusMessage($arrResponse['status']);&lt;br /&gt;
} else {&lt;br /&gt;
  // Send a message to the user explaining wehat they have done wrong.&lt;br /&gt;
  // Your validateUserData() function should probably provide detailed error messages.&lt;br /&gt;
  $strMessage = 'You must provide valid information. Please try again.';&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Function for validating the user-submitted form data&lt;br /&gt;
function validateUserData() {&lt;br /&gt;
  // You'll probably want to put some code here to validate whatever input you're receiving from the user.&lt;br /&gt;
  return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Make an API POST request&lt;br /&gt;
function doAPIPost($strResourcePath, $strData) {&lt;br /&gt;
  // Open a cURL resource&lt;br /&gt;
  $ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
  // Set the necessary parameters&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_USERPWD, API_USERNAME . ':' . API_PASSWORD);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_URL, API_BASEURI . $strResourcePath);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . API_FORMAT, 'Content-type: ' . API_FORMAT));&lt;br /&gt;
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
  // Make this a POST request&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make the request and capture the response and status code.&lt;br /&gt;
  $arrResponse['body'] = json_decode(curl_exec($ch));&lt;br /&gt;
  $arrResponse['status'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
&lt;br /&gt;
  // Close the cURL resource&lt;br /&gt;
  curl_close($ch);&lt;br /&gt;
&lt;br /&gt;
  return $arrResponse;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Return a status message to display to the user.&lt;br /&gt;
function getStatusMessage($strStatus) {&lt;br /&gt;
  // An array of all status codes.&lt;br /&gt;
  // These descriptions are rather technical. You may want to make them more user-friendly for production.&lt;br /&gt;
  $arrStatuses = array(&lt;br /&gt;
    '200' =&amp;gt; 'The request was successfully processed.',&lt;br /&gt;
    '204' =&amp;gt; 'The request was formatted correctly, but no data was found for the specified resource.',&lt;br /&gt;
    '400' =&amp;gt; 'Your data has failed a validation test.',&lt;br /&gt;
    '401' =&amp;gt; 'Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.',&lt;br /&gt;
    '404' =&amp;gt; 'The resource you have requested does not exist.',&lt;br /&gt;
    '405' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.',&lt;br /&gt;
    '500' =&amp;gt; 'The API experienced an internal error while attempting to process your request.',&lt;br /&gt;
    '501' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.'&lt;br /&gt;
  );&lt;br /&gt;
  // Look up the message that corresponds to the status code&lt;br /&gt;
  if (array_key_exists($strStatus, $arrStatuses)) {&lt;br /&gt;
    $strMessage = $arrStatuses[$strStatus];&lt;br /&gt;
  } else {&lt;br /&gt;
    // Use a default message if no match was found&lt;br /&gt;
    $strMessage = 'An unknown error occurred while attempting to add your information. Please try again.';&lt;br /&gt;
  }&lt;br /&gt;
  return $strMessage;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php echo $strMessage ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 13:02:49 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded in PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All samples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&lt;br /&gt;
=== form.html ===&lt;br /&gt;
The form contains two fields: name, and email address.  Hows=ever, this could be expanded to include any of the fields supported by the contacts collection resource.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== form_processor.php ===&lt;br /&gt;
This script should be considered a starting point, and requires some customization, notably in the areas of user input validation and user response messages.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
* This script uses the Rezora Agent API to add a new contact entry to an agent's account, &lt;br /&gt;
* and to add that contact to a specified Distribution List so that newly added contacts&lt;br /&gt;
* may be easily identified by the agent from within the Rezora system.&lt;br /&gt;
* See http://api.rezora.com/ for the full API documentation.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
// Set some configuration constants.&lt;br /&gt;
// Your Agent API Key username and password are available on your Rezora My Account page.&lt;br /&gt;
define('API_USERNAME', 'YOUR_API_USERNAME');&lt;br /&gt;
define('API_PASSWORD', 'YOUR_API_PASSWORD');&lt;br /&gt;
define('API_BASEURI', 'http://api.rezora.com/v1/');&lt;br /&gt;
define('API_FORMAT', 'application/json');&lt;br /&gt;
&lt;br /&gt;
// Set the ID of the distribution list to which new contacts will be added.&lt;br /&gt;
// You should create a distribution list (called something like &amp;quot;Website Signup&amp;quot;) exclusively for this purpose.&lt;br /&gt;
// You can get the ID of a lsit by using the Lists API Resource, or by noting the ID in the HTML code on the agent's Contacts page within the Rezora system.&lt;br /&gt;
// Leave the value as zero to skip this step (not recommended).&lt;br /&gt;
$intListID = 0;&lt;br /&gt;
&lt;br /&gt;
// Validate the user-submitted form data before proceding&lt;br /&gt;
if (validateUserData()) {&lt;br /&gt;
  // First, we'll be posting data to the contacts collection resource to create a new contact.&lt;br /&gt;
  // Set some configuration variables specific to the task at hand.&lt;br /&gt;
  $strResource = 'contacts';&lt;br /&gt;
  $strData = '{&lt;br /&gt;
    &amp;quot;data&amp;quot;:{&lt;br /&gt;
      &amp;quot;contact_name&amp;quot;:&amp;quot;' . $_POST['name'] . '&amp;quot;,&lt;br /&gt;
      &amp;quot;contact_email&amp;quot;:&amp;quot;' . $_POST['email'] . '&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }';&lt;br /&gt;
&lt;br /&gt;
  // Post the API request&lt;br /&gt;
  $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make sure we successfully added the contact before continuing&lt;br /&gt;
  if ($intListID &amp;gt; 0 &amp;amp;&amp;amp; $arrResponse['status'] == 200) {&lt;br /&gt;
    // Next, we'll be posting data to the lists/ID/contacts collection resource to associate the new contact with the specified distribution list.&lt;br /&gt;
    // Set some configuration variables specific to the task at hand.&lt;br /&gt;
    $strResource = 'lists/' . $intListID . '/contacts';&lt;br /&gt;
    $strData = '{&lt;br /&gt;
      &amp;quot;data&amp;quot;:{&lt;br /&gt;
        &amp;quot;contact_id&amp;quot;:&amp;quot;' . $arrResponse['body'][0]-&amp;gt;contact_id . '&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
    }';&lt;br /&gt;
&lt;br /&gt;
    // Post the API request&lt;br /&gt;
    $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Get a status message to diplay to the user.&lt;br /&gt;
  $strMessage = getStatusMessage($arrResponse['status']);&lt;br /&gt;
} else {&lt;br /&gt;
  // Send a message to the user explaining wehat they have done wrong.&lt;br /&gt;
  // Your validateUserData() function should probably provide detailed error messages.&lt;br /&gt;
  $strMessage = 'You must provide valid information. Please try again.';&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Function for validating the user-submitted form data&lt;br /&gt;
function validateUserData() {&lt;br /&gt;
  // You'll probably want to put some code here to validate whatever input you're receiving from the user.&lt;br /&gt;
  return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Make an API POST request&lt;br /&gt;
function doAPIPost($strResourcePath, $strData) {&lt;br /&gt;
  // Open a cURL resource&lt;br /&gt;
  $ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
  // Set the necessary parameters&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_USERPWD, API_USERNAME . ':' . API_PASSWORD);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_URL, API_BASEURI . $strResourcePath);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . API_FORMAT, 'Content-type: ' . API_FORMAT));&lt;br /&gt;
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
  // Make this a POST request&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make the request and capture the response and status code.&lt;br /&gt;
  $arrResponse['body'] = json_decode(curl_exec($ch));&lt;br /&gt;
  $arrResponse['status'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
&lt;br /&gt;
  // Close the cURL resource&lt;br /&gt;
  curl_close($ch);&lt;br /&gt;
&lt;br /&gt;
  return $arrResponse;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Return a status message to display to the user.&lt;br /&gt;
function getStatusMessage($strStatus) {&lt;br /&gt;
  // An array of all status codes.&lt;br /&gt;
  // These descriptions are rather technical. You may want to make them more user-friendly for production.&lt;br /&gt;
  $arrStatuses = array(&lt;br /&gt;
    '200' =&amp;gt; 'The request was successfully processed.',&lt;br /&gt;
    '204' =&amp;gt; 'The request was formatted correctly, but no data was found for the specified resource.',&lt;br /&gt;
    '400' =&amp;gt; 'Your data has failed a validation test.',&lt;br /&gt;
    '401' =&amp;gt; 'Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.',&lt;br /&gt;
    '404' =&amp;gt; 'The resource you have requested does not exist.',&lt;br /&gt;
    '405' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.',&lt;br /&gt;
    '500' =&amp;gt; 'The API experienced an internal error while attempting to process your request.',&lt;br /&gt;
    '501' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.'&lt;br /&gt;
  );&lt;br /&gt;
  // Look up the message that corresponds to the status code&lt;br /&gt;
  if (array_key_exists($strStatus, $arrStatuses)) {&lt;br /&gt;
    $strMessage = $arrStatuses[$strStatus];&lt;br /&gt;
  } else {&lt;br /&gt;
    // Use a default message if no match was found&lt;br /&gt;
    $strMessage = 'An unknown error occurred while attempting to add your information. Please try again.';&lt;br /&gt;
  }&lt;br /&gt;
  return $strMessage;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php echo $strMessage ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 13:01:26 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&lt;br /&gt;
=== form.html ===&lt;br /&gt;
The form contains two fields: name, and email address.  Hows=ever, this could be expanded to include any of the fields supported by the contacts collection resource.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== form_processor.php ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
* This script uses the Rezora Agent API to add a new contact entry to an agent's account, &lt;br /&gt;
* and to add that contact to a specified Distribution List so that newly added contacts&lt;br /&gt;
* may be easily identified by the agent from within the Rezora system.&lt;br /&gt;
* See http://api.rezora.com/ for the full API documentation.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
// Set some configuration constants.&lt;br /&gt;
// Your Agent API Key username and password are available on your Rezora My Account page.&lt;br /&gt;
define('API_USERNAME', 'YOUR_API_USERNAME');&lt;br /&gt;
define('API_PASSWORD', 'YOUR_API_PASSWORD');&lt;br /&gt;
define('API_BASEURI', 'http://api.rezora.com/v1/');&lt;br /&gt;
define('API_FORMAT', 'application/json');&lt;br /&gt;
&lt;br /&gt;
// Set the ID of the distribution list to which new contacts will be added.&lt;br /&gt;
// You should create a distribution list (called something like &amp;quot;Website Signup&amp;quot;) exclusively for this purpose.&lt;br /&gt;
// You can get the ID of a lsit by using the Lists API Resource, or by noting the ID in the HTML code on the agent's Contacts page within the Rezora system.&lt;br /&gt;
// Leave the value as zero to skip this step (not recommended).&lt;br /&gt;
$intListID = 0;&lt;br /&gt;
&lt;br /&gt;
// Validate the user-submitted form data before proceding&lt;br /&gt;
if (validateUserData()) {&lt;br /&gt;
  // First, we'll be posting data to the contacts collection resource to create a new contact.&lt;br /&gt;
  // Set some configuration variables specific to the task at hand.&lt;br /&gt;
  $strResource = 'contacts';&lt;br /&gt;
  $strData = '{&lt;br /&gt;
    &amp;quot;data&amp;quot;:{&lt;br /&gt;
      &amp;quot;contact_name&amp;quot;:&amp;quot;' . $_POST['name'] . '&amp;quot;,&lt;br /&gt;
      &amp;quot;contact_email&amp;quot;:&amp;quot;' . $_POST['email'] . '&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }';&lt;br /&gt;
&lt;br /&gt;
  // Post the API request&lt;br /&gt;
  $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make sure we successfully added the contact before continuing&lt;br /&gt;
  if ($intListID &amp;gt; 0 &amp;amp;&amp;amp; $arrResponse['status'] == 200) {&lt;br /&gt;
    // Next, we'll be posting data to the lists/ID/contacts collection resource to associate the new contact with the specified distribution list.&lt;br /&gt;
    // Set some configuration variables specific to the task at hand.&lt;br /&gt;
    $strResource = 'lists/' . $intListID . '/contacts';&lt;br /&gt;
    $strData = '{&lt;br /&gt;
      &amp;quot;data&amp;quot;:{&lt;br /&gt;
        &amp;quot;contact_id&amp;quot;:&amp;quot;' . $arrResponse['body'][0]-&amp;gt;contact_id . '&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
    }';&lt;br /&gt;
&lt;br /&gt;
    // Post the API request&lt;br /&gt;
    $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Get a status message to diplay to the user.&lt;br /&gt;
  $strMessage = getStatusMessage($arrResponse['status']);&lt;br /&gt;
} else {&lt;br /&gt;
  // Send a message to the user explaining wehat they have done wrong.&lt;br /&gt;
  // Your validateUserData() function should probably provide detailed error messages.&lt;br /&gt;
  $strMessage = 'You must provide valid information. Please try again.';&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Function for validating the user-submitted form data&lt;br /&gt;
function validateUserData() {&lt;br /&gt;
  // You'll probably want to put some code here to validate whatever input you're receiving from the user.&lt;br /&gt;
  return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Make an API POST request&lt;br /&gt;
function doAPIPost($strResourcePath, $strData) {&lt;br /&gt;
  // Open a cURL resource&lt;br /&gt;
  $ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
  // Set the necessary parameters&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_USERPWD, API_USERNAME . ':' . API_PASSWORD);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_URL, API_BASEURI . $strResourcePath);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . API_FORMAT, 'Content-type: ' . API_FORMAT));&lt;br /&gt;
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
  // Make this a POST request&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make the request and capture the response and status code.&lt;br /&gt;
  $arrResponse['body'] = json_decode(curl_exec($ch));&lt;br /&gt;
  $arrResponse['status'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
&lt;br /&gt;
  // Close the cURL resource&lt;br /&gt;
  curl_close($ch);&lt;br /&gt;
&lt;br /&gt;
  return $arrResponse;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Return a status message to display to the user.&lt;br /&gt;
function getStatusMessage($strStatus) {&lt;br /&gt;
  // An array of all status codes.&lt;br /&gt;
  // These descriptions are rather technical. You may want to make them more user-friendly for production.&lt;br /&gt;
  $arrStatuses = array(&lt;br /&gt;
    '200' =&amp;gt; 'The request was successfully processed.',&lt;br /&gt;
    '204' =&amp;gt; 'The request was formatted correctly, but no data was found for the specified resource.',&lt;br /&gt;
    '400' =&amp;gt; 'Your data has failed a validation test.',&lt;br /&gt;
    '401' =&amp;gt; 'Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.',&lt;br /&gt;
    '404' =&amp;gt; 'The resource you have requested does not exist.',&lt;br /&gt;
    '405' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.',&lt;br /&gt;
    '500' =&amp;gt; 'The API experienced an internal error while attempting to process your request.',&lt;br /&gt;
    '501' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.'&lt;br /&gt;
  );&lt;br /&gt;
  // Look up the message that corresponds to the status code&lt;br /&gt;
  if (array_key_exists($strStatus, $arrStatuses)) {&lt;br /&gt;
    $strMessage = $arrStatuses[$strStatus];&lt;br /&gt;
  } else {&lt;br /&gt;
    // Use a default message if no match was found&lt;br /&gt;
    $strMessage = 'An unknown error occurred while attempting to add your information. Please try again.';&lt;br /&gt;
  }&lt;br /&gt;
  return $strMessage;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php echo $strMessage ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:56:13 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
/*&lt;br /&gt;
* This script uses the Rezora Agent API to add a new contact entry to an agent's account, &lt;br /&gt;
* and to add that contact to a specified Distribution List so that newly added contacts&lt;br /&gt;
* may be easily identified by the agent from within the Rezora system.&lt;br /&gt;
* See http://api.rezora.com/ for the full API documentation.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
// Set some configuration constants.&lt;br /&gt;
// Your Agent API Key username and password are available on your Rezora My Account page.&lt;br /&gt;
define('API_USERNAME', 'YOUR_API_USERNAME');&lt;br /&gt;
define('API_PASSWORD', 'YOUR_API_PASSWORD');&lt;br /&gt;
define('API_BASEURI', 'http://api.rezora.com/v1/');&lt;br /&gt;
define('API_FORMAT', 'application/json');&lt;br /&gt;
&lt;br /&gt;
// Set the ID of the distribution list to which new contacts will be added.&lt;br /&gt;
// You should create a distribution list (called something like &amp;quot;Website Signup&amp;quot;) exclusively for this purpose.&lt;br /&gt;
// You can get the ID of a lsit by using the Lists API Resource, or by noting the ID in the HTML code on the agent's Contacts page within the Rezora system.&lt;br /&gt;
// Leave the value as zero to skip this step (not recommended).&lt;br /&gt;
$intListID = 0;&lt;br /&gt;
&lt;br /&gt;
// Validate the user-submitted form data before proceding&lt;br /&gt;
if (validateUserData()) {&lt;br /&gt;
  // First, we'll be posting data to the contacts collection resource to create a new contact.&lt;br /&gt;
  // Set some configuration variables specific to the task at hand.&lt;br /&gt;
  $strResource = 'contacts';&lt;br /&gt;
  $strData = '{&lt;br /&gt;
    &amp;quot;data&amp;quot;:{&lt;br /&gt;
      &amp;quot;contact_name&amp;quot;:&amp;quot;' . $_POST['name'] . '&amp;quot;,&lt;br /&gt;
      &amp;quot;contact_email&amp;quot;:&amp;quot;' . $_POST['email'] . '&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  }';&lt;br /&gt;
&lt;br /&gt;
  // Post the API request&lt;br /&gt;
  $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make sure we successfully added the contact before continuing&lt;br /&gt;
  if ($intListID &amp;gt; 0 &amp;amp;&amp;amp; $arrResponse['status'] == 200) {&lt;br /&gt;
    // Next, we'll be posting data to the lists/ID/contacts collection resource to associate the new contact with the specified distribution list.&lt;br /&gt;
    // Set some configuration variables specific to the task at hand.&lt;br /&gt;
    $strResource = 'lists/' . $intListID . '/contacts';&lt;br /&gt;
    $strData = '{&lt;br /&gt;
      &amp;quot;data&amp;quot;:{&lt;br /&gt;
        &amp;quot;contact_id&amp;quot;:&amp;quot;' . $arrResponse['body'][0]-&amp;gt;contact_id . '&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
    }';&lt;br /&gt;
&lt;br /&gt;
    // Post the API request&lt;br /&gt;
    $arrResponse = doAPIPost($strResource, $strData);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  // Get a status message to diplay to the user.&lt;br /&gt;
  $strMessage = getStatusMessage($arrResponse['status']);&lt;br /&gt;
} else {&lt;br /&gt;
  // Send a message to the user explaining wehat they have done wrong.&lt;br /&gt;
  // Your validateUserData() function should probably provide detailed error messages.&lt;br /&gt;
  $strMessage = 'You must provide valid information. Please try again.';&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Function for validating the user-submitted form data&lt;br /&gt;
function validateUserData() {&lt;br /&gt;
  // You'll probably want to put some code here to validate whatever input you're receiving from the user.&lt;br /&gt;
  return true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Make an API POST request&lt;br /&gt;
function doAPIPost($strResourcePath, $strData) {&lt;br /&gt;
  // Open a cURL resource&lt;br /&gt;
  $ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
  // Set the necessary parameters&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_USERPWD, API_USERNAME . ':' . API_PASSWORD);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_URL, API_BASEURI . $strResourcePath);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . API_FORMAT, 'Content-type: ' . API_FORMAT));&lt;br /&gt;
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
  // Make this a POST request&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
  curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
  // Make the request and capture the response and status code.&lt;br /&gt;
  $arrResponse['body'] = json_decode(curl_exec($ch));&lt;br /&gt;
  $arrResponse['status'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);&lt;br /&gt;
&lt;br /&gt;
  // Close the cURL resource&lt;br /&gt;
  curl_close($ch);&lt;br /&gt;
&lt;br /&gt;
  return $arrResponse;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Return a status message to display to the user.&lt;br /&gt;
function getStatusMessage($strStatus) {&lt;br /&gt;
  // An array of all status codes.&lt;br /&gt;
  // These descriptions are rather technical. You may want to make them more user-friendly for production.&lt;br /&gt;
  $arrStatuses = array(&lt;br /&gt;
    '200' =&amp;gt; 'The request was successfully processed.',&lt;br /&gt;
    '204' =&amp;gt; 'The request was formatted correctly, but no data was found for the specified resource.',&lt;br /&gt;
    '400' =&amp;gt; 'Your data has failed a validation test.',&lt;br /&gt;
    '401' =&amp;gt; 'Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.',&lt;br /&gt;
    '404' =&amp;gt; 'The resource you have requested does not exist.',&lt;br /&gt;
    '405' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.',&lt;br /&gt;
    '500' =&amp;gt; 'The API experienced an internal error while attempting to process your request.',&lt;br /&gt;
    '501' =&amp;gt; 'The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.'&lt;br /&gt;
  );&lt;br /&gt;
  // Look up the message that corresponds to the status code&lt;br /&gt;
  if (array_key_exists($strStatus, $arrStatuses)) {&lt;br /&gt;
    $strMessage = $arrStatuses[$strStatus];&lt;br /&gt;
  } else {&lt;br /&gt;
    // Use a default message if no match was found&lt;br /&gt;
    $strMessage = 'An unknown error occurred while attempting to add your information. Please try again.';&lt;br /&gt;
  }&lt;br /&gt;
  return $strMessage;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php echo $strMessage ?&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:50:57 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:50:26 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xhtml1transitional&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:41:36 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:40:51 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to a an agent's contact list, while also adding the new contact to a predefined distribution list. The application consists of two files: an HTML file containing a simple signup form, and a PHP file which processes form submissions and makes the necessary API calls.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;head&amp;gt;&lt;br /&gt;
    &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
    &amp;lt;title&amp;gt;Rezora API Sample: Add a Contact&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;/head&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;Add a Contact&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;form action=&amp;quot;form_processor.php&amp;quot; method=&amp;quot;post&amp;quot; name=&amp;quot;addcontactform&amp;quot; id=&amp;quot;addcontactform&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;name&amp;quot;&amp;gt;Name:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;name&amp;quot; id=&amp;quot;name&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;label for=&amp;quot;email&amp;quot;&amp;gt;Email address:&amp;lt;/label&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;email&amp;quot; id=&amp;quot;email&amp;quot; value=&amp;quot;&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
      &amp;lt;div&amp;gt;&lt;br /&gt;
        &amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Submit&amp;quot; /&amp;gt;&lt;br /&gt;
      &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/form&amp;gt;&lt;br /&gt;
  &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:40:16 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>Sample Applications</title>
			<link>http://api.rezora.com/documentation/index.php?title=Sample_Applications</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API h…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are sample applications built using the API, coded using PHP. These samples demonstrate a variety of common use cases. While we do not cover every possible use of the API here, these samples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any method that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Sample 1: mailing list signup form ==&lt;br /&gt;
This application allows a site visitor to add himself or herself to an agent's consists &lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the agents collection&lt;br /&gt;
// resource. We'll retrieve the data in CSV format.&lt;br /&gt;
$strResourcePath = 'agents';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 12:35:44 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Sample_Applications</comments>		</item>
		<item>
			<title>MediaWiki:Sidebar</title>
			<link>http://api.rezora.com/documentation/index.php?title=MediaWiki:Sidebar</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** Overview|Overview&lt;br /&gt;
** Common_Behaviors|Common Behaviors&lt;br /&gt;
** Resource_Definitions|Resource Definitions&lt;br /&gt;
** Code_Examples|Code Examples&lt;br /&gt;
** Sample_Applications|Sample Applications&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 04:40:28 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=MediaWiki_talk:Sidebar</comments>		</item>
		<item>
			<title>MediaWiki:Sidebar</title>
			<link>http://api.rezora.com/documentation/index.php?title=MediaWiki:Sidebar</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* navigation&lt;br /&gt;
** Overview|Overview&lt;br /&gt;
** Common_Behaviors|Common Behaviors&lt;br /&gt;
** Resource_Definitions|Resource Definitions&lt;br /&gt;
** Code_Examples|Code Examples&lt;br /&gt;
** Sample_Application|Sample Application&lt;br /&gt;
** recentchanges-url|recentchanges&lt;br /&gt;
** helppage|help&lt;br /&gt;
* SEARCH&lt;br /&gt;
* TOOLBOX&lt;br /&gt;
* LANGUAGES&lt;/div&gt;</description>
			<pubDate>Fri, 05 Oct 2012 04:39:44 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=MediaWiki_talk:Sidebar</comments>		</item>
		<item>
			<title>Code Examples</title>
			<link>http://api.rezora.com/documentation/index.php?title=Code_Examples</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Undo revision 1191 by AngelSlayerL0AZ (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are examples of how to access the API using PHP. These examples demonstrate a variety of available methods and content formats. While we do not cover every possible use of the API here, these examples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any means that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Example 1: read the ''agents'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the agents collection&lt;br /&gt;
// resource. We'll retrieve the data in CSV format.&lt;br /&gt;
$strResourcePath = 'agents';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 2: read the ''agents/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the resource for&lt;br /&gt;
// an agent with the ID 1234. We'll retrieve the data in XML format.&lt;br /&gt;
// Notice that the presence of the .xml extension will override the&lt;br /&gt;
// Accept header value ($strResponseFormat). Alternatively, you&lt;br /&gt;
// could leave off the extension and set the Accept header value&lt;br /&gt;
// ($strResponseFormat) to application/xml.&lt;br /&gt;
$strResourcePath = 'agents/1234.xml';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 3: add a new contact to the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be posting data to the contacts collection&lt;br /&gt;
// resource to create a new contact. We'll send data in JSON format,&lt;br /&gt;
// and retrieve data in XML format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'application/json';&lt;br /&gt;
$strResponseFormat = 'application/xml';&lt;br /&gt;
$strData = '{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a POST request&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 4: update an individual contact from the ''contacts/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be updating data for an existing contact resource.&lt;br /&gt;
// We'll send data in XML format, and retrieve data in CSV format.&lt;br /&gt;
$strResourcePath = 'contacts/123456';&lt;br /&gt;
$strRequestFormat = 'application/xml';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
$strData = '&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith-Johnson&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith.johnson@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// PUT is originally intended for uploading files,&lt;br /&gt;
// so we have to make our data look like a file.&lt;br /&gt;
// Open a file resource using the php://memory stream&lt;br /&gt;
$fh = fopen('php://memory', 'rw');&lt;br /&gt;
&lt;br /&gt;
// Write the data to the file&lt;br /&gt;
fwrite($fh, $strData);&lt;br /&gt;
&lt;br /&gt;
// Move back to the beginning of the file&lt;br /&gt;
rewind($fh);&lt;br /&gt;
&lt;br /&gt;
// Make this a PUT request&lt;br /&gt;
curl_setopt($ch, CURLOPT_PUT, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILE, $fh);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILESIZE, strlen($strData));&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the file resource&lt;br /&gt;
fclose($fh);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 5: delete all contacts from the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be deleting data from the contacts collection&lt;br /&gt;
// resource. We'll retrieve the data in JSON format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'application/json';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a DELETE request&lt;br /&gt;
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 01 Mar 2012 16:50:14 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Code_Examples</comments>		</item>
		<item>
			<title>Code Examples</title>
			<link>http://api.rezora.com/documentation/index.php?title=Code_Examples</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Undo revision 1341 by AngelSlayerL0AZ (Talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are examples of how to access the API using PHP. These examples demonstrate a variety of available methods and content formats. While we do not cover every possible use of the API here, these examples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any means that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Example 1: read the ''agents'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the agents collection&lt;br /&gt;
// resource. We'll retrieve the data in CSV format.&lt;br /&gt;
$strResourcePath = 'agents';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 2: read the ''agents/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the resource for&lt;br /&gt;
// an agent with the ID 1234. We'll retrieve the data in XML format.&lt;br /&gt;
// Notice that the presence of the .xml extension will override the&lt;br /&gt;
// Accept header value ($strResponseFormat). Alternatively, you&lt;br /&gt;
// could leave off the extension and set the Accept header value&lt;br /&gt;
// ($strResponseFormat) to application/xml.&lt;br /&gt;
$strResourcePath = 'agents/1234.xml';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 3: add a new contact to the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be posting data to the contacts collection&lt;br /&gt;
// resource to create a new contact. We'll send data in JSON format,&lt;br /&gt;
// and retrieve data in XML format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'application/json';&lt;br /&gt;
$strResponseFormat = 'application/xml';&lt;br /&gt;
$strData = '{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . EssaysExperts.Com is the company which first and main priority was, is and will be customers� satisfaction with the [http://www.essaysexperts.com essays online]. If you still have no idea where to buy your writing tasks, this company is the best option for you. ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a POST request&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 4: update an individual contact from the ''contacts/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be updating data for an existing contact resource.&lt;br /&gt;
// We'll send data in XML format, and retrieve data in CSV format.&lt;br /&gt;
$strResourcePath = 'contacts/123456';&lt;br /&gt;
$strRequestFormat = 'application/xml';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
$strData = '&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith-Johnson&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith.johnson@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// PUT is originally intended for uploading files,&lt;br /&gt;
// so we have to make our data look like a file.&lt;br /&gt;
// Open a file resource using the php://memory stream&lt;br /&gt;
$fh = fopen('php://memory', 'rw');&lt;br /&gt;
&lt;br /&gt;
// Write the data to the file&lt;br /&gt;
fwrite($fh, $strData);&lt;br /&gt;
&lt;br /&gt;
// Move back to the beginning of the file&lt;br /&gt;
rewind($fh);&lt;br /&gt;
&lt;br /&gt;
// Make this a PUT request&lt;br /&gt;
curl_setopt($ch, CURLOPT_PUT, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILE, $fh);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILESIZE, strlen($strData));&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the file resource&lt;br /&gt;
fclose($fh);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 5: delete all contacts from the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be deleting data from the contacts collection&lt;br /&gt;
// resource. We'll retrieve the data in JSON format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'application/json';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a DELETE request&lt;br /&gt;
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 01 Mar 2012 16:49:51 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Code_Examples</comments>		</item>
		<item>
			<title>Code Examples</title>
			<link>http://api.rezora.com/documentation/index.php?title=Code_Examples</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Reverted edits by AngelSlayerL0AZ (Talk) to last revision by WikiSysop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are examples of how to access the API using PHP. These examples demonstrate a variety of available methods and content formats. While we do not cover every possible use of the API here, these examples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any means that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Example 1: read the ''agents'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the agents collection&lt;br /&gt;
// resource. We'll retrieve the data in CSV format.&lt;br /&gt;
$strResourcePath = 'agents';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 2: read the ''agents/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the resource for&lt;br /&gt;
// an agent with the ID 1234. We'll retrieve the data in XML format.&lt;br /&gt;
// Notice that the presence of the .xml extension will override the&lt;br /&gt;
// Accept header value ($strResponseFormat). Alternatively, you&lt;br /&gt;
// could leave off the extension and set the Accept header value&lt;br /&gt;
// ($strResponseFormat) to application/xml.&lt;br /&gt;
$strResourcePath = 'agents/1234.xml';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 3: add a new contact to the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be posting data to the contacts collection&lt;br /&gt;
// resource to create a new contact. We'll send data in JSON format,&lt;br /&gt;
// and retrieve data in XML format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'application/json';&lt;br /&gt;
$strResponseFormat = 'application/xml';&lt;br /&gt;
$strData = '{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . EssaysExperts.Com is the company which first and main priority was, is and will be customers� satisfaction with the [http://www.essaysexperts.com essays online]. EssaysExperts.Com is the company which first and main priority was, is and will be customers� satisfaction with the [http://www.essaysexperts.com/essays-online.html essays online]. If you still have no idea where to buy your writing tasks, this company is the best option for you. If you still have no idea where to buy your writing tasks, this company is the best option for you. ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a POST request&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 4: update an individual contact from the ''contacts/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be updating data for an existing contact resource.&lt;br /&gt;
// We'll send data in XML format, and retrieve data in CSV format.&lt;br /&gt;
$strResourcePath = 'contacts/123456';&lt;br /&gt;
$strRequestFormat = 'application/xml';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
$strData = '&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith-Johnson&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith.johnson@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// PUT is originally intended for uploading files,&lt;br /&gt;
// so we have to make our data look like a file.&lt;br /&gt;
// Open a file resource using the php://memory stream&lt;br /&gt;
$fh = fopen('php://memory', 'rw');&lt;br /&gt;
&lt;br /&gt;
// Write the data to the file&lt;br /&gt;
fwrite($fh, $strData);&lt;br /&gt;
&lt;br /&gt;
// Move back to the beginning of the file&lt;br /&gt;
rewind($fh);&lt;br /&gt;
&lt;br /&gt;
// Make this a PUT request&lt;br /&gt;
curl_setopt($ch, CURLOPT_PUT, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILE, $fh);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILESIZE, strlen($strData));&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the file resource&lt;br /&gt;
fclose($fh);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 5: delete all contacts from the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be deleting data from the contacts collection&lt;br /&gt;
// resource. We'll retrieve the data in JSON format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'application/json';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a DELETE request&lt;br /&gt;
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Thu, 01 Mar 2012 16:46:52 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Code_Examples</comments>		</item>
		<item>
			<title>Common Behaviors</title>
			<link>http://api.rezora.com/documentation/index.php?title=Common_Behaviors</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Reverted edits by Zhyaoxiaiw (Talk) to last revision by WikiSysop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Access Permissions ==&lt;br /&gt;
Accessing the API requires a username and password, provided by Rezora. Note that this is not the same as your username and password to the Rezora system itself. To obtain a username and password, contact your Rezora Account Manager.&lt;br /&gt;
&lt;br /&gt;
There are two distinct levels of access to the API, which correspond to user types on the Rezora system in general:&lt;br /&gt;
* Company-level&lt;br /&gt;
* Agent-level&lt;br /&gt;
&lt;br /&gt;
API credentials for a company-level account only grant access to company-level resources, and credentials for an agent-level account only grant access to agent-level resources.&lt;br /&gt;
&lt;br /&gt;
== Usage Limitations ==&lt;br /&gt;
Currently, there is no usage limit in place for the API. However, we do track usage, and reserve the right to institute limitations in the future. In the mean time, we ask that you develop your applications in such a way as to make the fewest API calls necessary to accomplish your goals, and to spread out the calls over time. Your consideration is appreciated.&lt;br /&gt;
&lt;br /&gt;
== URI (Uniform Resource Identifier) ==&lt;br /&gt;
The Rezora REST API uses the URI to identify the resource you are attempting to consume.&lt;br /&gt;
&lt;br /&gt;
 '''''URI Template:''''' PROTOCOL://DOMAIN/VERSION/RESOURCE_DESIGNATOR.RESPONSE_FORMAT&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents/1234.xml&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The URI consists of the following components:&lt;br /&gt;
&lt;br /&gt;
=== Protocol (required) ===&lt;br /&gt;
The API currently supports the basic HTTP protocol, but will likely switch to HTTPS in future versions to further ensure security.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;big&amp;gt;'''http'''&amp;lt;/big&amp;gt;&amp;lt;nowiki&amp;gt;://api.rezora.com/v1/agents/1234.xml&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Domain (required) ===&lt;br /&gt;
The domain of the API is expected to be permanent, and will not change with future versions.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''api.rezora.com'''&amp;lt;/big&amp;gt;/v1/agents/1234.xml&lt;br /&gt;
&lt;br /&gt;
=== Version (required) ===&lt;br /&gt;
The URI for the API includes a version indicator, used to specify the version of the API for which your application is programmed. This will allow us to continue to offer previous versions of the API without interruption as future versions are released.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''v1'''&amp;lt;/big&amp;gt;/agents/1234.xml&lt;br /&gt;
&lt;br /&gt;
=== Resource Designator (required) ===&lt;br /&gt;
The resource designator portion of the URI is the part which uniquely identifies the resource you wish to consume. It may be comprised of multiple components separated by forward slashes (/). For example, to reference the resource containing all agents in your brokerage, your resource designator would be &amp;quot;agents&amp;quot;. To reference the resource for a specific agent, you would include the agent's ID in the resource designator: &amp;quot;agents/1234&amp;quot;. URIs for all available resources are given on the individual [[Resource_Definitions|Resource Definition]] pages.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''agents/1234'''&amp;lt;/big&amp;gt;.xml&lt;br /&gt;
&lt;br /&gt;
=== Response Format (optional) ===&lt;br /&gt;
The response format indicator is an optional file extension added to the end of the [[Common_Behaviors#Resource_Designator_.28required.29|resource designator]]. Supported values are JSON, XML, and CSV. A response format indicator included in the URI will supersede the value of an ACCEPT header (described below), if present. If no response format indicator is included in the URI, and no [[Common_Behaviors#Accept_.28required.29|ACCEPT header]] is included with the request, the response format will default to CSV.&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents/1234.&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''xml'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== HTTP Request Headers ==&lt;br /&gt;
The Rezora REST API makes use of several headers sent with the HTTP request for such purposes as authentication, indicating what action is to be taken with the resource specified in the URI, and indicating in what format the data will take in both the request and response.&lt;br /&gt;
&lt;br /&gt;
 '''''Example Request:''''' &lt;br /&gt;
 GET /v1/agents/1234.xml HTTP/1.1&lt;br /&gt;
 Authorization: Digest username=&amp;quot;YOUR_USERNAME&amp;quot;, realm=&amp;quot;Rezora API&amp;quot;, nonce=&amp;quot;4c487da82df10&amp;quot;, &lt;br /&gt;
  uri=&amp;quot;/v1/agents/1234.xml&amp;quot;, cnonce=&amp;quot;MjMxATNz&amp;quot;, nc=00000001, qop=&amp;quot;auth&amp;quot;, &lt;br /&gt;
  response=&amp;quot;a6767615fab72a0c9d64d4b01df69db2&amp;quot;, opaque=&amp;quot;e24302732637d79c3b77fa62483ec0b7&amp;quot;&lt;br /&gt;
 Host: api.rezora.com&lt;br /&gt;
 Accept: text/csv&lt;br /&gt;
 Content-type: text/plain&lt;br /&gt;
&lt;br /&gt;
The API makes use of the following headers:&lt;br /&gt;
&lt;br /&gt;
=== Method (required) ===&lt;br /&gt;
The Rezora REST API makes use of the standard HTTP methods (GET, POST, PUT, and DELETE) to determine the action you wish to perform with the resource you have specified in the URI. Note that not all resources will support all four methods. The actions associated with each method are as follows:&lt;br /&gt;
;GET&lt;br /&gt;
: A request sent using the HTTP GET method is used to retrieve or read the data for the specified resource.&lt;br /&gt;
;POST&lt;br /&gt;
: A request sent using the HTTP POST method is used to create a new resource of the type specified in the URI.&lt;br /&gt;
;PUT&lt;br /&gt;
: A request sent using the HTTP PUT method is used to update an existing resource, as specified in the URI.&lt;br /&gt;
;DELETE&lt;br /&gt;
: A request sent using the HTTP DELETE method is used to delete the resource indicated in the URI.&lt;br /&gt;
&lt;br /&gt;
=== Authorization (required) ===&lt;br /&gt;
The Rezora REST API uses HTTP digest access authentication to validate your username and password before providing access to the requested resource.&lt;br /&gt;
&lt;br /&gt;
=== Accept (required) ===&lt;br /&gt;
The HTTP ACCEPT header is used to specify the desired format of the response data from the API. The available options are application/xml, application/xml, and text/csv. This option is overridden by the presence of a [[Common_Behaviors#Response_Format_.28optional.29|response format indicator (file extension)]] in the URI.&lt;br /&gt;
&lt;br /&gt;
=== Content-type (required) ===&lt;br /&gt;
The HTTP CONTENT-TYPE header is used to specify the format of data being sent as part of the request. The available options are application/xml, application/xml, and text/plain. Note that, while the Content-type header is required for all request methods, data is only sent with POST and PUT requests.&lt;br /&gt;
&lt;br /&gt;
== HTTP Response Headers ==&lt;br /&gt;
The Rezora REST API provides useful information in several headers sent with the HTTP response. &lt;br /&gt;
&lt;br /&gt;
 '''''Example Response Headers:'''''&lt;br /&gt;
 HTTP/1.1 200 OK&lt;br /&gt;
 Date: Sun, 11 Jul 2010 23:00:10 GMT&lt;br /&gt;
 Server: Apache/2.2.12 (Ubuntu)&lt;br /&gt;
 X-Powered-By: PHP/5.2.10-2ubuntu6.4&lt;br /&gt;
 Set-Cookie: PHPSESSID=e3a81e530b701165d368b77c9ddc6ab6; path=/&lt;br /&gt;
 Expires: Thu, 19 Nov 1981 08:52:00 GMT&lt;br /&gt;
 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0&lt;br /&gt;
 Pragma: no-cache&lt;br /&gt;
 Transfer-Encoding: chunked&lt;br /&gt;
 Content-Type: text/csv; charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
The first line of the HTTP headers includes a numeric code, which is used to indicate the status of your request.&lt;br /&gt;
&lt;br /&gt;
 '''''Example Status Header:'''''&lt;br /&gt;
 HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
A list of status codes used by the API and their meanings is provided below.&lt;br /&gt;
&lt;br /&gt;
==== Status Codes ====&lt;br /&gt;
;200&lt;br /&gt;
: The request was successfully processed.&lt;br /&gt;
;204&lt;br /&gt;
: The request was formatted correctly, but no data was found for the specified resource.&lt;br /&gt;
;400&lt;br /&gt;
: Your data has failed a validation test.&lt;br /&gt;
;401&lt;br /&gt;
: Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.&lt;br /&gt;
;404&lt;br /&gt;
: The resource you have requested does not exist.&lt;br /&gt;
;405&lt;br /&gt;
: The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.&lt;br /&gt;
;500&lt;br /&gt;
: The API experienced an internal error while attempting to process your request.&lt;br /&gt;
;501&lt;br /&gt;
: The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.&lt;br /&gt;
&lt;br /&gt;
=== Content-type ===&lt;br /&gt;
The HTTP CONTENT-TYPE header is used to indicate the format of data being sent as part of the response. The format is determined by either the [[Common_Behaviors#Accept_.28required.29|ACCEPT HTTP request header]] or the [[Common_Behaviors#Response_Format_.28optional.29|response format indicator (file extension)]] in the request URI. If no ACCEPT header or response format indicator are present in the request, the default response format is text/csv.&lt;br /&gt;
&lt;br /&gt;
 '''''Example Header:'''''&lt;br /&gt;
 Content-Type: text/csv; charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
== About Output Data ==&lt;br /&gt;
All dates are displayed as UTC (GMT), unless otherwise noted. All output data is UTF-8 encoded. Data in JSON and XML formats follow the standard rules of escaping reserved characters, encoding entities, etc. as indicated by their respective standards.  As there is no standard for the CSV format, here are the formatting rules we are using for our output:&lt;br /&gt;
&lt;br /&gt;
* '''Field delimiter:''' |&lt;br /&gt;
* '''Line terminator:''' \r\n&lt;br /&gt;
* '''Quoting:''' all fields are quoted&lt;br /&gt;
* '''Quote character:''' &amp;quot;&lt;br /&gt;
* '''Escape Character:''' \&lt;/div&gt;</description>
			<pubDate>Thu, 01 Mar 2012 14:20:36 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Common_Behaviors</comments>		</item>
		<item>
			<title>Code Examples</title>
			<link>http://api.rezora.com/documentation/index.php?title=Code_Examples</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are examples of how to access the API using PHP. These examples demonstrate a variety of available methods and content formats. While we do not cover every possible use of the API here, these examples are meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any means that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Example 1: read the ''agents'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the agents collection&lt;br /&gt;
// resource. We'll retrieve the data in CSV format.&lt;br /&gt;
$strResourcePath = 'agents';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 2: read the ''agents/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the resource for&lt;br /&gt;
// an agent with the ID 1234. We'll retrieve the data in XML format.&lt;br /&gt;
// Notice that the presence of the .xml extension will override the&lt;br /&gt;
// Accept header value ($strResponseFormat). Alternatively, you&lt;br /&gt;
// could leave off the extension and set the Accept header value&lt;br /&gt;
// ($strResponseFormat) to application/xml.&lt;br /&gt;
$strResourcePath = 'agents/1234.xml';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 3: add a new contact to the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be posting data to the contacts collection&lt;br /&gt;
// resource to create a new contact. We'll send data in JSON format,&lt;br /&gt;
// and retrieve data in XML format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'application/json';&lt;br /&gt;
$strResponseFormat = 'application/xml';&lt;br /&gt;
$strData = '{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . EssaysExperts.Com is the company which first and main priority was, is and will be customers� satisfaction with the [http://www.essaysexperts.com essays online]. EssaysExperts.Com is the company which first and main priority was, is and will be customers� satisfaction with the [http://www.essaysexperts.com/essays-online.html essays online]. If you still have no idea where to buy your writing tasks, this company is the best option for you. If you still have no idea where to buy your writing tasks, this company is the best option for you. ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a POST request&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 4: update an individual contact from the ''contacts/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be updating data for an existing contact resource.&lt;br /&gt;
// We'll send data in XML format, and retrieve data in CSV format.&lt;br /&gt;
$strResourcePath = 'contacts/123456';&lt;br /&gt;
$strRequestFormat = 'application/xml';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
$strData = '&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith-Johnson&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith.johnson@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// PUT is originally intended for uploading files,&lt;br /&gt;
// so we have to make our data look like a file.&lt;br /&gt;
// Open a file resource using the php://memory stream&lt;br /&gt;
$fh = fopen('php://memory', 'rw');&lt;br /&gt;
&lt;br /&gt;
// Write the data to the file&lt;br /&gt;
fwrite($fh, $strData);&lt;br /&gt;
&lt;br /&gt;
// Move back to the beginning of the file&lt;br /&gt;
rewind($fh);&lt;br /&gt;
&lt;br /&gt;
// Make this a PUT request&lt;br /&gt;
curl_setopt($ch, CURLOPT_PUT, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILE, $fh);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILESIZE, strlen($strData));&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the file resource&lt;br /&gt;
fclose($fh);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 5: delete all contacts from the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be deleting data from the contacts collection&lt;br /&gt;
// resource. We'll retrieve the data in JSON format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'application/json';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a DELETE request&lt;br /&gt;
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Wed, 08 Feb 2012 01:12:56 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Code_Examples</comments>		</item>
		<item>
			<title>Resource Definitions:MLSs/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:MLSs/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'The ''mlss/ID'' resource references an individual MLS, where &amp;quot;ID&amp;quot; is the MLS's unique identifier within the Rezora system.   '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''mlss/ID'' resource references an individual MLS, where &amp;quot;ID&amp;quot; is the MLS's unique identifier within the Rezora system.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/mlss/comlmls&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
Returns a list of account settings for the specified agent. The response includes the following fields:&lt;br /&gt;
* org_id&lt;br /&gt;
* mls_name&lt;br /&gt;
&lt;br /&gt;
=== Example Response - XML ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;mlss version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;mls&amp;gt;&lt;br /&gt;
  &amp;lt;org_id&amp;gt;comlmls&amp;lt;/org_id&amp;gt;&lt;br /&gt;
  &amp;lt;mls_name&amp;gt;Colorado - Metrolist&amp;lt;/mls_name&amp;gt;&lt;br /&gt;
 &amp;lt;/mls&amp;gt;&lt;br /&gt;
&amp;lt;/mlss&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - JSON ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;org_id&amp;quot;:&amp;quot;comlmls&amp;quot;,&lt;br /&gt;
  &amp;quot;mls_name&amp;quot;:&amp;quot;Colorado - Metrolist&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - CSV ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;org_id&amp;quot;|&amp;quot;mls_name&amp;quot;&lt;br /&gt;
&amp;quot;comlmls&amp;quot;|&amp;quot;Colorado - Metrolist&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Wed, 08 Feb 2012 01:10:29 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:MLSs/ID</comments>		</item>
		<item>
			<title>Resource Definitions:MLSs</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:MLSs</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''MLSs'' resource is a collection of all MLSs associated with your company.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/mlss&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of MLSs. Each MLS record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* org_id&lt;br /&gt;
* mls_name&lt;br /&gt;
&lt;br /&gt;
=== Example Response - XML ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;mlss version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;mls&amp;gt;&lt;br /&gt;
  &amp;lt;org_id&amp;gt;comlmls&amp;lt;/org_id&amp;gt;&lt;br /&gt;
  &amp;lt;mls_name&amp;gt;Colorado - Metrolist&amp;lt;/mls_name&amp;gt;&lt;br /&gt;
 &amp;lt;/mls&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/mlss&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - JSON ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;org_id&amp;quot;:&amp;quot;comlmls&amp;quot;,&lt;br /&gt;
  &amp;quot;mls_name&amp;quot;:&amp;quot;Colorado - Metrolist&amp;quot;&lt;br /&gt;
 },&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - CSV ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;org_id&amp;quot;|&amp;quot;mls_name&amp;quot;&lt;br /&gt;
&amp;quot;comlmls&amp;quot;|&amp;quot;Colorado - Metrolist&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Wed, 08 Feb 2012 01:05:00 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:MLSs</comments>		</item>
		<item>
			<title>Resource Definitions:MLSs</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:MLSs</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'test'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;test&lt;/div&gt;</description>
			<pubDate>Wed, 08 Feb 2012 00:52:06 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:MLSs</comments>		</item>
		<item>
			<title>Resource Definitions</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* Company Resources */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section defines the resources made available through the API. These include descriptions of the resource, a list of the methods supported, a list of the the data fields contained in the resource, and sample request and response data, where appropriate. The resources below are grouped into two sets, based on the type of user allowed to access them. The available resources are:&lt;br /&gt;
&lt;br /&gt;
== Company Resources ==&lt;br /&gt;
* [[Resource_Definitions:Agents|Agents]]&lt;br /&gt;
* [[Resource_Definitions:Agents/ID|Agents/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups|Groups]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID|Groups/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID/Agents|Groups/ID/Agents]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID/Agents/ID|Groups/ID/Agents/ID]]&lt;br /&gt;
* [[Resource_Definitions:MLSs|MLSs]]&lt;br /&gt;
* [[Resource_Definitions:MLSs/ID|MLSs/ID]]&lt;br /&gt;
&lt;br /&gt;
== Agent Resources ==&lt;br /&gt;
* [[Resource_Definitions:Contacts|Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Contacts/ID|Contacts/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists|Lists]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID|Lists/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts|Lists/ID/Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts/ID|Lists/ID/Contacts/ID]]&lt;/div&gt;</description>
			<pubDate>Wed, 08 Feb 2012 00:51:44 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Resource_Definitions</comments>		</item>
		<item>
			<title>Resource Definitions:Contacts</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Contacts</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''contacts'' resource is a collection of all contacts associated with your agent account.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special contact, known as the &amp;quot;self contact.&amp;quot; This contact has a contact_self value of 1, while all other contacts have a contact_self value of 0. The self contact cannot be deleted. The delete all functionality deletes all contacts with a contact_self value of 0, but leaves the self contact intact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/contacts&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of contacts. Each contact record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contact_id&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
* contact_date&lt;br /&gt;
* contact_self - ''possible values: 0, 1 (cannot delete)''&lt;br /&gt;
* contact_unsubscribe - ''possible values: 0 (subscribed), 1 (unsubscribed)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
  &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
  &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
  &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
  &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_date&amp;gt;2010-07-16 22:34:01&amp;lt;/contact_date&amp;gt;&lt;br /&gt;
  &amp;lt;contact_self&amp;gt;0&amp;lt;/contact_self&amp;gt;&lt;br /&gt;
  &amp;lt;contact_unsubscribe&amp;gt;0&amp;lt;/contact_unsubscribe&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_date&amp;quot;:&amp;quot;2010-07-16 22:34:01&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_self&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_unsubscribe&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;|&amp;quot;contact_name&amp;quot;|&amp;quot;contact_email&amp;quot;|&amp;quot;contact_type&amp;quot;|&amp;quot;contact_title&amp;quot;|&amp;quot;contact_company&amp;quot;|&amp;quot;contact_phone_home&amp;quot;|&amp;quot;contact_phone_work&amp;quot;|&amp;quot;contact_phone_mobile&amp;quot;|&amp;quot;contact_phone_fax&amp;quot;|&amp;quot;contact_business_street&amp;quot;|&amp;quot;contact_business_street2&amp;quot;|&amp;quot;contact_business_city&amp;quot;|&amp;quot;contact_business_state&amp;quot;|&amp;quot;contact_business_zip&amp;quot;|&amp;quot;contact_home_street&amp;quot;|&amp;quot;contact_home_street2&amp;quot;|&amp;quot;contact_home_city&amp;quot;|&amp;quot;contact_home_state&amp;quot;|&amp;quot;contact_home_zip&amp;quot;|&amp;quot;contact_date&amp;quot;|&amp;quot;contact_self&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;Jane Smith&amp;quot;|&amp;quot;jane.smith@company.com&amp;quot;|&amp;quot;Active&amp;quot;|&amp;quot;Consultant&amp;quot;|&amp;quot;Acme Consulting&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;303-555-1237&amp;quot;|&amp;quot;123 Church Street&amp;quot;|&amp;quot;Suite 12&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;124 Church Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;2010-07-16 22:34:01&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new contact, and returns the new contact ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be a valid email address, must be unique''&lt;br /&gt;
* contact_type - ''accepted values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_name=Jane+Smith&amp;amp;contact_email=jane.smith%40company.com&amp;amp;contact_type=Active&amp;amp;contact_title=Consultant&amp;amp;contact_company=Acme+Consulting&amp;amp;contact_phone_home=303-555-1234&amp;amp;contact_phone_work=303-555-1235&amp;amp;contact_phone_mobile=303-555-1236&amp;amp;contact_phone_fax=303-555-1237&amp;amp;contact_business_street=123+Church+Street&amp;amp;contact_business_street2=Suite+12&amp;amp;contact_business_city=Shady+Acres&amp;amp;contact_business_state=CO&amp;amp;contact_business_zip=12345&amp;amp;contact_home_street=124+Church+Street&amp;amp;contact_home_street2=&amp;amp;contact_home_city=Shady+Acres&amp;amp;contact_home_state=CO&amp;amp;contact_home_zip=12345&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL contacts (except for the self contact), and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 03 Feb 2012 21:48:46 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Contacts</comments>		</item>
		<item>
			<title>Resource Definitions:Contacts</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Contacts</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* JSON Response */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''contacts'' resource is a collection of all contacts associated with your agent account.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special contact, known as the &amp;quot;self contact.&amp;quot; This contact has a contact_self value of 1, while all other contacts have a contact_self value of 0. The self contact cannot be deleted. The delete all functionality deletes all contacts with a contact_self value of 0, but leaves the self contact in tact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/contacts&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of contacts. Each contact record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contact_id&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
* contact_date&lt;br /&gt;
* contact_self - ''possible values: 0, 1 (cannot delete)''&lt;br /&gt;
* contact_unsubscribe - ''possible values: 0 (subscribed), 1 (unsubscribed)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
  &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
  &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
  &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
  &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_date&amp;gt;2010-07-16 22:34:01&amp;lt;/contact_date&amp;gt;&lt;br /&gt;
  &amp;lt;contact_self&amp;gt;0&amp;lt;/contact_self&amp;gt;&lt;br /&gt;
  &amp;lt;contact_unsubscribe&amp;gt;0&amp;lt;/contact_unsubscribe&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_date&amp;quot;:&amp;quot;2010-07-16 22:34:01&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_self&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_unsubscribe&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;|&amp;quot;contact_name&amp;quot;|&amp;quot;contact_email&amp;quot;|&amp;quot;contact_type&amp;quot;|&amp;quot;contact_title&amp;quot;|&amp;quot;contact_company&amp;quot;|&amp;quot;contact_phone_home&amp;quot;|&amp;quot;contact_phone_work&amp;quot;|&amp;quot;contact_phone_mobile&amp;quot;|&amp;quot;contact_phone_fax&amp;quot;|&amp;quot;contact_business_street&amp;quot;|&amp;quot;contact_business_street2&amp;quot;|&amp;quot;contact_business_city&amp;quot;|&amp;quot;contact_business_state&amp;quot;|&amp;quot;contact_business_zip&amp;quot;|&amp;quot;contact_home_street&amp;quot;|&amp;quot;contact_home_street2&amp;quot;|&amp;quot;contact_home_city&amp;quot;|&amp;quot;contact_home_state&amp;quot;|&amp;quot;contact_home_zip&amp;quot;|&amp;quot;contact_date&amp;quot;|&amp;quot;contact_self&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;Jane Smith&amp;quot;|&amp;quot;jane.smith@company.com&amp;quot;|&amp;quot;Active&amp;quot;|&amp;quot;Consultant&amp;quot;|&amp;quot;Acme Consulting&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;303-555-1237&amp;quot;|&amp;quot;123 Church Street&amp;quot;|&amp;quot;Suite 12&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;124 Church Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;2010-07-16 22:34:01&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new contact, and returns the new contact ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be a valid email address, must be unique''&lt;br /&gt;
* contact_type - ''accepted values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_name=Jane+Smith&amp;amp;contact_email=jane.smith%40company.com&amp;amp;contact_type=Active&amp;amp;contact_title=Consultant&amp;amp;contact_company=Acme+Consulting&amp;amp;contact_phone_home=303-555-1234&amp;amp;contact_phone_work=303-555-1235&amp;amp;contact_phone_mobile=303-555-1236&amp;amp;contact_phone_fax=303-555-1237&amp;amp;contact_business_street=123+Church+Street&amp;amp;contact_business_street2=Suite+12&amp;amp;contact_business_city=Shady+Acres&amp;amp;contact_business_state=CO&amp;amp;contact_business_zip=12345&amp;amp;contact_home_street=124+Church+Street&amp;amp;contact_home_street2=&amp;amp;contact_home_city=Shady+Acres&amp;amp;contact_home_state=CO&amp;amp;contact_home_zip=12345&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL contacts (except for the self contact), and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 03 Feb 2012 21:40:37 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Contacts</comments>		</item>
		<item>
			<title>Resource Definitions:Contacts/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Contacts/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* GET */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''contacts/ID'' resource is an individual contact entry associated with your agent account, where &amp;quot;ID&amp;quot; is the contact's contact_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/contacts/123456&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual contact. The contact record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contact_id&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
* contact_date&lt;br /&gt;
* contact_self - ''possible values: 0, 1 (cannot delete)''&lt;br /&gt;
* contact_unsubscribe - ''possible values: 0 (subscribed), 1 (unsubscribed)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
  &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
  &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
  &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
  &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_date&amp;gt;2010-07-16 22:34:01&amp;lt;/contact_date&amp;gt;&lt;br /&gt;
  &amp;lt;contact_self&amp;gt;0&amp;lt;/contact_self&amp;gt;&lt;br /&gt;
  &amp;lt;contact_unsubscribe&amp;gt;0&amp;lt;/contact_unsubscribe&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_date&amp;quot;:&amp;quot;2010-07-16 22:34:01&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_self&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_unsubscribe&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;|&amp;quot;contact_name&amp;quot;|&amp;quot;contact_email&amp;quot;|&amp;quot;contact_type&amp;quot;|&amp;quot;contact_title&amp;quot;|&amp;quot;contact_company&amp;quot;|&amp;quot;contact_phone_home&amp;quot;|&amp;quot;contact_phone_work&amp;quot;|&amp;quot;contact_phone_mobile&amp;quot;|&amp;quot;contact_phone_fax&amp;quot;|&amp;quot;contact_business_street&amp;quot;|&amp;quot;contact_business_street2&amp;quot;|&amp;quot;contact_business_city&amp;quot;|&amp;quot;contact_business_state&amp;quot;|&amp;quot;contact_business_zip&amp;quot;|&amp;quot;contact_home_street&amp;quot;|&amp;quot;contact_home_street2&amp;quot;|&amp;quot;contact_home_city&amp;quot;|&amp;quot;contact_home_state&amp;quot;|&amp;quot;contact_home_zip&amp;quot;|&amp;quot;contact_date&amp;quot;|&amp;quot;contact_self&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;Jane Smith&amp;quot;|&amp;quot;jane.smith@company.com&amp;quot;|&amp;quot;Active&amp;quot;|&amp;quot;Consultant&amp;quot;|&amp;quot;Acme Consulting&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;303-555-1237&amp;quot;|&amp;quot;123 Church Street&amp;quot;|&amp;quot;Suite 12&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;124 Church Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;2010-07-16 22:34:01&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PUT ==&lt;br /&gt;
Updates an existing contact, and returns a success code. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be a valid email address, must be unique''&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_name=Jane+Smith&amp;amp;contact_email=jane.smith%40company.com&amp;amp;contact_type=Active&amp;amp;contact_title=Consultant&amp;amp;contact_company=Acme+Consulting&amp;amp;contact_phone_home=303-555-1234&amp;amp;contact_phone_work=303-555-1235&amp;amp;contact_phone_mobile=303-555-1236&amp;amp;contact_phone_fax=303-555-1237&amp;amp;contact_business_street=123+Church+Street&amp;amp;contact_business_street2=Suite+12&amp;amp;contact_business_city=Shady+Acres&amp;amp;contact_business_state=CO&amp;amp;contact_business_zip=12345&amp;amp;contact_home_street=124+Church+Street&amp;amp;contact_home_street2=&amp;amp;contact_home_city=Shady+Acres&amp;amp;contact_home_state=CO&amp;amp;contact_home_zip=12345&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual contact, and returns a success code. Note the you CANNOT delete the self contact (contact_self = 1). &lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 03 Feb 2012 21:39:39 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Contacts/ID</comments>		</item>
		<item>
			<title>Resource Definitions:Contacts</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Contacts</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* GET */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''contacts'' resource is a collection of all contacts associated with your agent account.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special contact, known as the &amp;quot;self contact.&amp;quot; This contact has a contact_self value of 1, while all other contacts have a contact_self value of 0. The self contact cannot be deleted. The delete all functionality deletes all contacts with a contact_self value of 0, but leaves the self contact in tact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/contacts&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of contacts. Each contact record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contact_id&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
* contact_date&lt;br /&gt;
* contact_self - ''possible values: 0, 1 (cannot delete)''&lt;br /&gt;
* contact_unsubscribe - ''possible values: 0 (subscribed), 1 (unsubscribed)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
  &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
  &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
  &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
  &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_date&amp;gt;2010-07-16 22:34:01&amp;lt;/contact_date&amp;gt;&lt;br /&gt;
  &amp;lt;contact_self&amp;gt;0&amp;lt;/contact_self&amp;gt;&lt;br /&gt;
  &amp;lt;contact_unsubscribe&amp;gt;0&amp;lt;/contact_unsubscribe&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_date&amp;quot;:&amp;quot;2010-07-16 22:34:01&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_self&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
  &amp;quot;contact_unsubscribe&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;|&amp;quot;contact_name&amp;quot;|&amp;quot;contact_email&amp;quot;|&amp;quot;contact_type&amp;quot;|&amp;quot;contact_title&amp;quot;|&amp;quot;contact_company&amp;quot;|&amp;quot;contact_phone_home&amp;quot;|&amp;quot;contact_phone_work&amp;quot;|&amp;quot;contact_phone_mobile&amp;quot;|&amp;quot;contact_phone_fax&amp;quot;|&amp;quot;contact_business_street&amp;quot;|&amp;quot;contact_business_street2&amp;quot;|&amp;quot;contact_business_city&amp;quot;|&amp;quot;contact_business_state&amp;quot;|&amp;quot;contact_business_zip&amp;quot;|&amp;quot;contact_home_street&amp;quot;|&amp;quot;contact_home_street2&amp;quot;|&amp;quot;contact_home_city&amp;quot;|&amp;quot;contact_home_state&amp;quot;|&amp;quot;contact_home_zip&amp;quot;|&amp;quot;contact_date&amp;quot;|&amp;quot;contact_self&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;Jane Smith&amp;quot;|&amp;quot;jane.smith@company.com&amp;quot;|&amp;quot;Active&amp;quot;|&amp;quot;Consultant&amp;quot;|&amp;quot;Acme Consulting&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;303-555-1237&amp;quot;|&amp;quot;123 Church Street&amp;quot;|&amp;quot;Suite 12&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;124 Church Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;2010-07-16 22:34:01&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new contact, and returns the new contact ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be a valid email address, must be unique''&lt;br /&gt;
* contact_type - ''accepted values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_name=Jane+Smith&amp;amp;contact_email=jane.smith%40company.com&amp;amp;contact_type=Active&amp;amp;contact_title=Consultant&amp;amp;contact_company=Acme+Consulting&amp;amp;contact_phone_home=303-555-1234&amp;amp;contact_phone_work=303-555-1235&amp;amp;contact_phone_mobile=303-555-1236&amp;amp;contact_phone_fax=303-555-1237&amp;amp;contact_business_street=123+Church+Street&amp;amp;contact_business_street2=Suite+12&amp;amp;contact_business_city=Shady+Acres&amp;amp;contact_business_state=CO&amp;amp;contact_business_zip=12345&amp;amp;contact_home_street=124+Church+Street&amp;amp;contact_home_street2=&amp;amp;contact_home_city=Shady+Acres&amp;amp;contact_home_state=CO&amp;amp;contact_home_zip=12345&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL contacts (except for the self contact), and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 03 Feb 2012 21:36:19 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Contacts</comments>		</item>
		<item>
			<title>Resource Definitions:Agents/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Agents/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* GET */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''agents/ID'' resource references an individual agent account, where &amp;quot;ID&amp;quot; is the agent's user_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents/1234&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
Returns a list of account settings for the specified agent. The response includes the following fields:&lt;br /&gt;
* user_id&lt;br /&gt;
* user_email&lt;br /&gt;
* user_status_id - ''possible values: 1 (active), 2 (suspended), 3 (trial), 4 (pending), 5 (free), 6 (deactivated)''&lt;br /&gt;
* user_fname&lt;br /&gt;
* user_lname&lt;br /&gt;
* user_company_name&lt;br /&gt;
* user_email_work&lt;br /&gt;
* user_website&lt;br /&gt;
* user_phone_work&lt;br /&gt;
* user_phone_home&lt;br /&gt;
* user_phone_mobile&lt;br /&gt;
* user_phone_fax&lt;br /&gt;
* user_photo_path&lt;br /&gt;
* user_home_street&lt;br /&gt;
* user_home_suite&lt;br /&gt;
* user_home_city&lt;br /&gt;
* user_home_state&lt;br /&gt;
* user_home_zip&lt;br /&gt;
* user_company_website&lt;br /&gt;
* user_company_street&lt;br /&gt;
* user_company_suite&lt;br /&gt;
* user_company_city&lt;br /&gt;
* user_company_state&lt;br /&gt;
* user_company_zip&lt;br /&gt;
* user_company_logo_path&lt;br /&gt;
* user_tagline&lt;br /&gt;
* user_bio&lt;br /&gt;
* user_date&lt;br /&gt;
* user_report_daily - ''possible values: 0, 1 (receives daily status email)''&lt;br /&gt;
* user_report_weekly - ''possible values: 0, 1 (receives weekly status email)''&lt;br /&gt;
* user_report_monthly - ''possible values: 0, 1 (receives monthly status email)''&lt;br /&gt;
* user_sitename&lt;br /&gt;
* user_directory_hidden - ''possible values: 0, 1 (not displayed on agent directory page)''&lt;br /&gt;
* brokerage_employee_id&lt;br /&gt;
* key_username&lt;br /&gt;
&lt;br /&gt;
=== Example Response - XML ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;agent&amp;gt;&lt;br /&gt;
  &amp;lt;user_id&amp;gt;1234&amp;lt;/user_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_email&amp;gt;john.smith@company.com&amp;lt;/user_email&amp;gt;&lt;br /&gt;
  &amp;lt;user_status_id&amp;gt;1&amp;lt;/user_status_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_fname&amp;gt;John&amp;lt;/user_fname&amp;gt;&lt;br /&gt;
  &amp;lt;user_lname&amp;gt;Smith&amp;lt;/user_lname&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_name&amp;gt;Shady Acres Brokerage&amp;lt;/user_company_name&amp;gt;&lt;br /&gt;
  &amp;lt;user_email_work&amp;gt;john.smith@company.com&amp;lt;/user_email_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_work&amp;gt;303-555-1234&amp;lt;/user_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_home&amp;gt;&amp;lt;/user_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_mobile&amp;gt;303-555-1235&amp;lt;/user_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_fax&amp;gt;303-555-1236&amp;lt;/user_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;user_photo_path&amp;gt;1234_photo.jpg&amp;lt;/user_photo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_street&amp;gt;123 Main Street&amp;lt;/user_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_suite&amp;gt;&amp;lt;/user_home_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_city&amp;gt;Shady Acres&amp;lt;/user_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_state&amp;gt;CO&amp;lt;/user_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_zip&amp;gt;12345&amp;lt;/user_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_company_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_street&amp;gt;124 Main Street&amp;lt;/user_company_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_suite&amp;gt;5&amp;lt;/user_company_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_city&amp;gt;Shady Acres&amp;lt;/user_company_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_state&amp;gt;CO&amp;lt;/user_company_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_zip&amp;gt;12345&amp;lt;/user_company_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_logo_path&amp;gt;sab_logo.gif&amp;lt;/user_company_logo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_tagline&amp;gt;&amp;lt;/user_tagline&amp;gt;&lt;br /&gt;
  &amp;lt;user_bio&amp;gt;&amp;lt;/user_bio&amp;gt;&lt;br /&gt;
  &amp;lt;user_date&amp;gt;2009-07-13 11:25:23&amp;lt;/user_date&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_daily&amp;gt;0&amp;lt;/user_report_daily&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_weekly&amp;gt;1&amp;lt;/user_report_weekly&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_monthly&amp;gt;0&amp;lt;/user_report_monthly&amp;gt;&lt;br /&gt;
  &amp;lt;user_sitename&amp;gt;&amp;lt;/user_sitename&amp;gt;&lt;br /&gt;
  &amp;lt;user_directory_hidden&amp;gt;0&amp;lt;/user_directory_hidden&amp;gt;&lt;br /&gt;
  &amp;lt;brokerage_employee_id&amp;gt;&amp;lt;/brokerage_employee_id&amp;gt;&lt;br /&gt;
  &amp;lt;key_username&amp;gt;&amp;lt;/key_username&amp;gt;&lt;br /&gt;
 &amp;lt;/agent&amp;gt;&lt;br /&gt;
&amp;lt;/agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - JSON ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_status_id&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_fname&amp;quot;:&amp;quot;John&amp;quot;,&lt;br /&gt;
  &amp;quot;user_lname&amp;quot;:&amp;quot;Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_name&amp;quot;:&amp;quot;hady Acres Brokerage&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email_work&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_work&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_home&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_mobile&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_fax&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;user_photo_path&amp;quot;:&amp;quot;1234_photo.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_street&amp;quot;:&amp;quot;123 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_suite&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_street&amp;quot;:&amp;quot;124 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_suite&amp;quot;:&amp;quot;5&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_logo_path&amp;quot;:&amp;quot;sab_logo.gif&amp;quot;,&lt;br /&gt;
  &amp;quot;user_tagline&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_bio&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_date&amp;quot;:&amp;quot;2009-07-13 11:25:23&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_daily&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_weekly&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_monthly&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_sitename&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_directory_hidden&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;brokerage_employee_id&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;key_username&amp;quot;:&amp;quot;&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - CSV ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;user_id&amp;quot;|&amp;quot;user_email&amp;quot;|&amp;quot;user_status_id&amp;quot;|&amp;quot;user_fname&amp;quot;|&amp;quot;user_lname&amp;quot;|&amp;quot;user_company_name&amp;quot;|&amp;quot;user_email_work&amp;quot;|&amp;quot;user_website&amp;quot;|&amp;quot;user_phone_work&amp;quot;|&amp;quot;user_phone_home&amp;quot;|&amp;quot;user_phone_mobile&amp;quot;|&amp;quot;user_phone_fax&amp;quot;|&amp;quot;user_photo_path&amp;quot;|&amp;quot;user_home_street&amp;quot;|&amp;quot;user_home_suite&amp;quot;|&amp;quot;user_home_city&amp;quot;|&amp;quot;user_home_state&amp;quot;|&amp;quot;user_home_zip&amp;quot;|&amp;quot;user_company_website&amp;quot;|&amp;quot;user_company_street&amp;quot;|&amp;quot;user_company_suite&amp;quot;|&amp;quot;user_company_city&amp;quot;|&amp;quot;user_company_state&amp;quot;|&amp;quot;user_company_zip&amp;quot;|&amp;quot;user_company_logo_path&amp;quot;|&amp;quot;user_tagline&amp;quot;|&amp;quot;user_bio&amp;quot;|&amp;quot;user_date&amp;quot;|&amp;quot;user_report_daily&amp;quot;|&amp;quot;user_report_weekly&amp;quot;|&amp;quot;user_report_monthly&amp;quot;|&amp;quot;user_sitename&amp;quot;|&amp;quot;user_directory_hidden&amp;quot;|&amp;quot;brokerage_employee_id&amp;quot;|&amp;quot;key_username&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;John&amp;quot;|&amp;quot;Smith&amp;quot;|&amp;quot;Shady Acres Brokerage&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;1234_photo.jpg&amp;quot;|&amp;quot;123 Main Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;124 Main Street&amp;quot;|&amp;quot;5&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;sab_logo.gif&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;2009-07-13 11:25:23&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 22 Nov 2011 20:58:09 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Agents/ID</comments>		</item>
		<item>
			<title>Resource Definitions:Agents</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Agents</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* GET */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''agents'' resource is a collection of all agent accounts associated with your company.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of agents. Each agent record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* user_id&lt;br /&gt;
* user_email&lt;br /&gt;
* user_status_id - ''possible values: 1 (active), 2 (suspended), 3 (trial), 4 (pending), 5 (free), 6 (deactivated)''&lt;br /&gt;
* user_fname&lt;br /&gt;
* user_lname&lt;br /&gt;
* user_company_name&lt;br /&gt;
* user_email_work&lt;br /&gt;
* user_website&lt;br /&gt;
* user_phone_work&lt;br /&gt;
* user_phone_home&lt;br /&gt;
* user_phone_mobile&lt;br /&gt;
* user_phone_fax&lt;br /&gt;
* user_photo_path&lt;br /&gt;
* user_home_street&lt;br /&gt;
* user_home_suite&lt;br /&gt;
* user_home_city&lt;br /&gt;
* user_home_state&lt;br /&gt;
* user_home_zip&lt;br /&gt;
* user_company_website&lt;br /&gt;
* user_company_street&lt;br /&gt;
* user_company_suite&lt;br /&gt;
* user_company_city&lt;br /&gt;
* user_company_state&lt;br /&gt;
* user_company_zip&lt;br /&gt;
* user_company_logo_path&lt;br /&gt;
* user_tagline&lt;br /&gt;
* user_bio&lt;br /&gt;
* user_date&lt;br /&gt;
* user_report_daily - ''possible values: 0, 1 (receives daily status email)''&lt;br /&gt;
* user_report_weekly - ''possible values: 0, 1 (receives weekly status email)''&lt;br /&gt;
* user_report_monthly - ''possible values: 0, 1 (receives monthly status email)''&lt;br /&gt;
* user_sitename&lt;br /&gt;
* user_directory_hidden - ''possible values: 0, 1 (not displayed on agent directory page)''&lt;br /&gt;
* brokerage_employee_id&lt;br /&gt;
* key_username&lt;br /&gt;
&lt;br /&gt;
=== Example Response - XML ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;agent&amp;gt;&lt;br /&gt;
  &amp;lt;user_id&amp;gt;1234&amp;lt;/user_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_email&amp;gt;john.smith@company.com&amp;lt;/user_email&amp;gt;&lt;br /&gt;
  &amp;lt;user_status_id&amp;gt;1&amp;lt;/user_status_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_fname&amp;gt;John&amp;lt;/user_fname&amp;gt;&lt;br /&gt;
  &amp;lt;user_lname&amp;gt;Smith&amp;lt;/user_lname&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_name&amp;gt;Shady Acres Brokerage&amp;lt;/user_company_name&amp;gt;&lt;br /&gt;
  &amp;lt;user_email_work&amp;gt;john.smith@company.com&amp;lt;/user_email_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_work&amp;gt;303-555-1234&amp;lt;/user_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_home&amp;gt;&amp;lt;/user_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_mobile&amp;gt;303-555-1235&amp;lt;/user_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_fax&amp;gt;303-555-1236&amp;lt;/user_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;user_photo_path&amp;gt;1234_photo.jpg&amp;lt;/user_photo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_street&amp;gt;123 Main Street&amp;lt;/user_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_suite&amp;gt;&amp;lt;/user_home_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_city&amp;gt;Shady Acres&amp;lt;/user_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_state&amp;gt;CO&amp;lt;/user_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_zip&amp;gt;12345&amp;lt;/user_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_company_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_street&amp;gt;124 Main Street&amp;lt;/user_company_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_suite&amp;gt;5&amp;lt;/user_company_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_city&amp;gt;Shady Acres&amp;lt;/user_company_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_state&amp;gt;CO&amp;lt;/user_company_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_zip&amp;gt;12345&amp;lt;/user_company_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_logo_path&amp;gt;sab_logo.gif&amp;lt;/user_company_logo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_tagline&amp;gt;&amp;lt;/user_tagline&amp;gt;&lt;br /&gt;
  &amp;lt;user_bio&amp;gt;&amp;lt;/user_bio&amp;gt;&lt;br /&gt;
  &amp;lt;user_date&amp;gt;2009-07-13 11:25:23&amp;lt;/user_date&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_daily&amp;gt;0&amp;lt;/user_report_daily&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_weekly&amp;gt;1&amp;lt;/user_report_weekly&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_monthly&amp;gt;0&amp;lt;/user_report_monthly&amp;gt;&lt;br /&gt;
  &amp;lt;user_sitename&amp;gt;&amp;lt;/user_sitename&amp;gt;&lt;br /&gt;
  &amp;lt;user_directory_hidden&amp;gt;0&amp;lt;/user_directory_hidden&amp;gt;&lt;br /&gt;
  &amp;lt;brokerage_employee_id&amp;gt;&amp;lt;/brokerage_employee_id&amp;gt;&lt;br /&gt;
  &amp;lt;key_username&amp;gt;&amp;lt;/key_username&amp;gt;&lt;br /&gt;
 &amp;lt;/agent&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - JSON ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_status_id&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_fname&amp;quot;:&amp;quot;John&amp;quot;,&lt;br /&gt;
  &amp;quot;user_lname&amp;quot;:&amp;quot;Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_name&amp;quot;:&amp;quot;hady Acres Brokerage&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email_work&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_work&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_home&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_mobile&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_fax&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;user_photo_path&amp;quot;:&amp;quot;1234_photo.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_street&amp;quot;:&amp;quot;123 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_suite&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_street&amp;quot;:&amp;quot;124 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_suite&amp;quot;:&amp;quot;5&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_logo_path&amp;quot;:&amp;quot;sab_logo.gif&amp;quot;,&lt;br /&gt;
  &amp;quot;user_tagline&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_bio&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_date&amp;quot;:&amp;quot;2009-07-13 11:25:23&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_daily&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_weekly&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_monthly&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_sitename&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_directory_hidden&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;brokerage_employee_id&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;key_username&amp;quot;:&amp;quot;&amp;quot;&lt;br /&gt;
 },&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - CSV ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;user_id&amp;quot;|&amp;quot;user_email&amp;quot;|&amp;quot;user_status_id&amp;quot;|&amp;quot;user_fname&amp;quot;|&amp;quot;user_lname&amp;quot;|&amp;quot;user_company_name&amp;quot;|&amp;quot;user_email_work&amp;quot;|&amp;quot;user_website&amp;quot;|&amp;quot;user_phone_work&amp;quot;|&amp;quot;user_phone_home&amp;quot;|&amp;quot;user_phone_mobile&amp;quot;|&amp;quot;user_phone_fax&amp;quot;|&amp;quot;user_photo_path&amp;quot;|&amp;quot;user_home_street&amp;quot;|&amp;quot;user_home_suite&amp;quot;|&amp;quot;user_home_city&amp;quot;|&amp;quot;user_home_state&amp;quot;|&amp;quot;user_home_zip&amp;quot;|&amp;quot;user_company_website&amp;quot;|&amp;quot;user_company_street&amp;quot;|&amp;quot;user_company_suite&amp;quot;|&amp;quot;user_company_city&amp;quot;|&amp;quot;user_company_state&amp;quot;|&amp;quot;user_company_zip&amp;quot;|&amp;quot;user_company_logo_path&amp;quot;|&amp;quot;user_tagline&amp;quot;|&amp;quot;user_bio&amp;quot;|&amp;quot;user_date&amp;quot;|&amp;quot;user_report_daily&amp;quot;|&amp;quot;user_report_weekly&amp;quot;|&amp;quot;user_report_monthly&amp;quot;|&amp;quot;user_sitename&amp;quot;|&amp;quot;user_directory_hidden&amp;quot;|&amp;quot;brokerage_employee_id&amp;quot;|&amp;quot;key_username&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;John&amp;quot;|&amp;quot;Smith&amp;quot;|&amp;quot;Shady Acres Brokerage&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;1234_photo.jpg&amp;quot;|&amp;quot;123 Main Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;124 Main Street&amp;quot;|&amp;quot;5&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;sab_logo.gif&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;2009-07-13 11:25:23&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 22 Nov 2011 20:37:15 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Agents</comments>		</item>
		<item>
			<title>Code Examples</title>
			<link>http://api.rezora.com/documentation/index.php?title=Code_Examples</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Below are examples of how to access the API using PHP. These examples demonstrate a variety of available methods and content formats. While we do not cover every possible use of the API here, these examples meant to be indicative of all API calls.&lt;br /&gt;
&lt;br /&gt;
All examples use the cURL library for handling the HTTP request. There are other methods available in PHP (and other languages, of course), and any means that allows you to send and receive the properly formatted requests and responses is perfectly acceptable.&lt;br /&gt;
&lt;br /&gt;
== Example 1: read the ''agents'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the agents collection&lt;br /&gt;
// resource. We'll retrieve the data in CSV format.&lt;br /&gt;
$strResourcePath = 'agents';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 2: read the ''agents/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be reading data from the resource for&lt;br /&gt;
// an agent with the ID 1234. We'll retrieve the data in XML format.&lt;br /&gt;
// Notice that the presence of the .xml extension will override the&lt;br /&gt;
// Accept header value ($strResponseFormat). Alternatively, you&lt;br /&gt;
// could leave off the extension and set the Accept header value&lt;br /&gt;
// ($strResponseFormat) to application/xml.&lt;br /&gt;
$strResourcePath = 'agents/1234.xml';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 3: add a new contact to the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be posting data to the contacts collection&lt;br /&gt;
// resource to create a new contact. We'll send data in JSON format,&lt;br /&gt;
// and retrieve data in XML format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'application/json';&lt;br /&gt;
$strResponseFormat = 'application/xml';&lt;br /&gt;
$strData = '{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a POST request&lt;br /&gt;
curl_setopt($ch, CURLOPT_POST, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_POSTFIELDS, $strData);&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 4: update an individual contact from the ''contacts/ID'' resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be updating data for an existing contact resource.&lt;br /&gt;
// We'll send data in XML format, and retrieve data in CSV format.&lt;br /&gt;
$strResourcePath = 'contacts/123456';&lt;br /&gt;
$strRequestFormat = 'application/xml';&lt;br /&gt;
$strResponseFormat = 'text/csv';&lt;br /&gt;
$strData = '&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith-Johnson&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith.johnson@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// PUT is originally intended for uploading files,&lt;br /&gt;
// so we have to make our data look like a file.&lt;br /&gt;
// Open a file resource using the php://memory stream&lt;br /&gt;
$fh = fopen('php://memory', 'rw');&lt;br /&gt;
&lt;br /&gt;
// Write the data to the file&lt;br /&gt;
fwrite($fh, $strData);&lt;br /&gt;
&lt;br /&gt;
// Move back to the beginning of the file&lt;br /&gt;
rewind($fh);&lt;br /&gt;
&lt;br /&gt;
// Make this a PUT request&lt;br /&gt;
curl_setopt($ch, CURLOPT_PUT, true);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILE, $fh);&lt;br /&gt;
curl_setopt($ch, CURLOPT_INFILESIZE, strlen($strData));&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the file resource&lt;br /&gt;
fclose($fh);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example 5: delete all contacts from the ''contacts'' collection resource ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
// Set some universal configuration variables. These will be&lt;br /&gt;
// the same for all your API requests for a particular account.&lt;br /&gt;
$strUsername = 'YOUR_API_USERNAME';&lt;br /&gt;
$strPassword = 'YOUR_API_PASSWORD';&lt;br /&gt;
$strBaseURI = 'http://api.rezora.com/v1/';&lt;br /&gt;
&lt;br /&gt;
// Set some configuration variables specific to the task at hand.&lt;br /&gt;
// In this example, we'll be deleting data from the contacts collection&lt;br /&gt;
// resource. We'll retrieve the data in JSON format.&lt;br /&gt;
$strResourcePath = 'contacts';&lt;br /&gt;
$strRequestFormat = 'text/plain';&lt;br /&gt;
$strResponseFormat = 'application/json';&lt;br /&gt;
&lt;br /&gt;
// Open a cURL resource&lt;br /&gt;
$ch = curl_init();&lt;br /&gt;
&lt;br /&gt;
// Set the necessary parameters&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);&lt;br /&gt;
curl_setopt($ch, CURLOPT_USERPWD, $strUsername . ':' . $strPassword);&lt;br /&gt;
curl_setopt($ch, CURLOPT_URL, $strBaseURI . $strResourcePath);&lt;br /&gt;
curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: ' . $strResponseFormat, 'Content-type: ' . $strRequestFormat));&lt;br /&gt;
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt;
&lt;br /&gt;
// Make this a DELETE request&lt;br /&gt;
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');&lt;br /&gt;
&lt;br /&gt;
// Make the request and output the response.&lt;br /&gt;
echo curl_exec($ch);&lt;br /&gt;
&lt;br /&gt;
// Close the cURL resource&lt;br /&gt;
curl_close($ch);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</description>
			<pubDate>Fri, 10 Sep 2010 15:10:15 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Code_Examples</comments>		</item>
		<item>
			<title>Common Behaviors</title>
			<link>http://api.rezora.com/documentation/index.php?title=Common_Behaviors</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;/* Access Permissions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Access Permissions ==&lt;br /&gt;
Accessing the API requires a username and password, provided by Rezora. Note that this is not the same as your username and password to the Rezora system itself. To obtain a username and password, contact your Rezora Account Manager.&lt;br /&gt;
&lt;br /&gt;
There are two distinct levels of access to the API, which correspond to user types on the Rezora system in general:&lt;br /&gt;
* Company-level&lt;br /&gt;
* Agent-level&lt;br /&gt;
&lt;br /&gt;
API credentials for a company-level account only grant access to company-level resources, and credentials for an agent-level account only grant access to agent-level resources.&lt;br /&gt;
&lt;br /&gt;
== Usage Limitations ==&lt;br /&gt;
Currently, there is no usage limit in place for the API. However, we do track usage, and reserve the right to institute limitations in the future. In the mean time, we ask that you develop your applications in such a way as to make the fewest API calls necessary to accomplish your goals, and to spread out the calls over time. Your consideration is appreciated.&lt;br /&gt;
&lt;br /&gt;
== URI (Uniform Resource Identifier) ==&lt;br /&gt;
The Rezora REST API uses the URI to identify the resource you are attempting to consume.&lt;br /&gt;
&lt;br /&gt;
 '''''URI Template:''''' PROTOCOL://DOMAIN/VERSION/RESOURCE_DESIGNATOR.RESPONSE_FORMAT&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents/1234.xml&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The URI consists of the following components:&lt;br /&gt;
&lt;br /&gt;
=== Protocol (required) ===&lt;br /&gt;
The API currently supports the basic HTTP protocol, but will likely switch to HTTPS in future versions to further ensure security.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;big&amp;gt;'''http'''&amp;lt;/big&amp;gt;&amp;lt;nowiki&amp;gt;://api.rezora.com/v1/agents/1234.xml&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Domain (required) ===&lt;br /&gt;
The domain of the API is expected to be permanent, and will not change with future versions.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''api.rezora.com'''&amp;lt;/big&amp;gt;/v1/agents/1234.xml&lt;br /&gt;
&lt;br /&gt;
=== Version (required) ===&lt;br /&gt;
The URI for the API includes a version indicator, used to specify the version of the API for which your application is programmed. This will allow us to continue to offer previous versions of the API without interruption as future versions are released.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''v1'''&amp;lt;/big&amp;gt;/agents/1234.xml&lt;br /&gt;
&lt;br /&gt;
=== Resource Designator (required) ===&lt;br /&gt;
The resource designator portion of the URI is the part which uniquely identifies the resource you wish to consume. It may be comprised of multiple components separated by forward slashes (/). For example, to reference the resource containing all agents in your brokerage, your resource designator would be &amp;quot;agents&amp;quot;. To reference the resource for a specific agent, you would include the agent's ID in the resource designator: &amp;quot;agents/1234&amp;quot;. URIs for all available resources are given on the individual [[Resource_Definitions|Resource Definition]] pages.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''agents/1234'''&amp;lt;/big&amp;gt;.xml&lt;br /&gt;
&lt;br /&gt;
=== Response Format (optional) ===&lt;br /&gt;
The response format indicator is an optional file extension added to the end of the [[Common_Behaviors#Resource_Designator_.28required.29|resource designator]]. Supported values are JSON, XML, and CSV. A response format indicator included in the URI will supersede the value of an ACCEPT header (described below), if present. If no response format indicator is included in the URI, and no [[Common_Behaviors#Accept_.28required.29|ACCEPT header]] is included with the request, the response format will default to CSV.&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents/1234.&amp;lt;/nowiki&amp;gt;&amp;lt;big&amp;gt;'''xml'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== HTTP Request Headers ==&lt;br /&gt;
The Rezora REST API makes use of several headers sent with the HTTP request for such purposes as authentication, indicating what action is to be taken with the resource specified in the URI, and indicating in what format the data will take in both the request and response.&lt;br /&gt;
&lt;br /&gt;
 '''''Example Request:''''' &lt;br /&gt;
 GET /v1/agents/1234.xml HTTP/1.1&lt;br /&gt;
 Authorization: Digest username=&amp;quot;YOUR_USERNAME&amp;quot;, realm=&amp;quot;Rezora API&amp;quot;, nonce=&amp;quot;4c487da82df10&amp;quot;, &lt;br /&gt;
  uri=&amp;quot;/v1/agents/1234.xml&amp;quot;, cnonce=&amp;quot;MjMxATNz&amp;quot;, nc=00000001, qop=&amp;quot;auth&amp;quot;, &lt;br /&gt;
  response=&amp;quot;a6767615fab72a0c9d64d4b01df69db2&amp;quot;, opaque=&amp;quot;e24302732637d79c3b77fa62483ec0b7&amp;quot;&lt;br /&gt;
 Host: api.rezora.com&lt;br /&gt;
 Accept: text/csv&lt;br /&gt;
 Content-type: text/plain&lt;br /&gt;
&lt;br /&gt;
The API makes use of the following headers:&lt;br /&gt;
&lt;br /&gt;
=== Method (required) ===&lt;br /&gt;
The Rezora REST API makes use of the standard HTTP methods (GET, POST, PUT, and DELETE) to determine the action you wish to perform with the resource you have specified in the URI. Note that not all resources will support all four methods. The actions associated with each method are as follows:&lt;br /&gt;
;GET&lt;br /&gt;
: A request sent using the HTTP GET method is used to retrieve or read the data for the specified resource.&lt;br /&gt;
;POST&lt;br /&gt;
: A request sent using the HTTP POST method is used to create a new resource of the type specified in the URI.&lt;br /&gt;
;PUT&lt;br /&gt;
: A request sent using the HTTP PUT method is used to update an existing resource, as specified in the URI.&lt;br /&gt;
;DELETE&lt;br /&gt;
: A request sent using the HTTP DELETE method is used to delete the resource indicated in the URI.&lt;br /&gt;
&lt;br /&gt;
=== Authorization (required) ===&lt;br /&gt;
The Rezora REST API uses HTTP digest access authentication to validate your username and password before providing access to the requested resource.&lt;br /&gt;
&lt;br /&gt;
=== Accept (required) ===&lt;br /&gt;
The HTTP ACCEPT header is used to specify the desired format of the response data from the API. The available options are application/xml, application/xml, and text/csv. This option is overridden by the presence of a [[Common_Behaviors#Response_Format_.28optional.29|response format indicator (file extension)]] in the URI.&lt;br /&gt;
&lt;br /&gt;
=== Content-type (required) ===&lt;br /&gt;
The HTTP CONTENT-TYPE header is used to specify the format of data being sent as part of the request. The available options are application/xml, application/xml, and text/plain. Note that, while the Content-type header is required for all request methods, data is only sent with POST and PUT requests.&lt;br /&gt;
&lt;br /&gt;
== HTTP Response Headers ==&lt;br /&gt;
The Rezora REST API provides useful information in several headers sent with the HTTP response. &lt;br /&gt;
&lt;br /&gt;
 '''''Example Response Headers:'''''&lt;br /&gt;
 HTTP/1.1 200 OK&lt;br /&gt;
 Date: Sun, 11 Jul 2010 23:00:10 GMT&lt;br /&gt;
 Server: Apache/2.2.12 (Ubuntu)&lt;br /&gt;
 X-Powered-By: PHP/5.2.10-2ubuntu6.4&lt;br /&gt;
 Set-Cookie: PHPSESSID=e3a81e530b701165d368b77c9ddc6ab6; path=/&lt;br /&gt;
 Expires: Thu, 19 Nov 1981 08:52:00 GMT&lt;br /&gt;
 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0&lt;br /&gt;
 Pragma: no-cache&lt;br /&gt;
 Transfer-Encoding: chunked&lt;br /&gt;
 Content-Type: text/csv; charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
=== Status ===&lt;br /&gt;
The first line of the HTTP headers includes a numeric code, which is used to indicate the status of your request.&lt;br /&gt;
&lt;br /&gt;
 '''''Example Status Header:'''''&lt;br /&gt;
 HTTP/1.1 200 OK&lt;br /&gt;
&lt;br /&gt;
A list of status codes used by the API and their meanings is provided below.&lt;br /&gt;
&lt;br /&gt;
==== Status Codes ====&lt;br /&gt;
;200&lt;br /&gt;
: The request was successfully processed.&lt;br /&gt;
;204&lt;br /&gt;
: The request was formatted correctly, but no data was found for the specified resource.&lt;br /&gt;
;400&lt;br /&gt;
: Your data has failed a validation test.&lt;br /&gt;
;401&lt;br /&gt;
: Either your username or password are incorrect, or you are attempting to access a resource that is not available for your user type.&lt;br /&gt;
;404&lt;br /&gt;
: The resource you have requested does not exist.&lt;br /&gt;
;405&lt;br /&gt;
: The method you are attempting to use (GET, POST, PUT, or DELETE) is not allowed for the resource you have requested.&lt;br /&gt;
;500&lt;br /&gt;
: The API experienced an internal error while attempting to process your request.&lt;br /&gt;
;501&lt;br /&gt;
: The method you are attempting to use (GET, POST, PUT, or DELETE) has not yet been implemented, but may be in a future release.&lt;br /&gt;
&lt;br /&gt;
=== Content-type ===&lt;br /&gt;
The HTTP CONTENT-TYPE header is used to indicate the format of data being sent as part of the response. The format is determined by either the [[Common_Behaviors#Accept_.28required.29|ACCEPT HTTP request header]] or the [[Common_Behaviors#Response_Format_.28optional.29|response format indicator (file extension)]] in the request URI. If no ACCEPT header or response format indicator are present in the request, the default response format is text/csv.&lt;br /&gt;
&lt;br /&gt;
 '''''Example Header:'''''&lt;br /&gt;
 Content-Type: text/csv; charset=UTF-8&lt;br /&gt;
&lt;br /&gt;
== About Output Data ==&lt;br /&gt;
All dates are displayed as UTC (GMT), unless otherwise noted. All output data is UTF-8 encoded. Data in JSON and XML formats follow the standard rules of escaping reserved characters, encoding entities, etc. as indicated by their respective standards.  As there is no standard for the CSV format, here are the formatting rules we are using for our output:&lt;br /&gt;
&lt;br /&gt;
* '''Field delimiter:''' |&lt;br /&gt;
* '''Line terminator:''' \r\n&lt;br /&gt;
* '''Quoting:''' all fields are quoted&lt;br /&gt;
* '''Quote character:''' &amp;quot;&lt;br /&gt;
* '''Escape Character:''' \&lt;/div&gt;</description>
			<pubDate>Fri, 10 Sep 2010 15:09:11 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Common_Behaviors</comments>		</item>
		<item>
			<title>Resource Definitions:Groups/ID/Agents/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Groups/ID/Agents/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'The ''groups/ID/agents/ID'' resource is an individual agent-to-group association between the designated group and agent, where the first &amp;quot;ID&amp;quot; is the groups's group_id number and …'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''groups/ID/agents/ID'' resource is an individual agent-to-group association between the designated group and agent, where the first &amp;quot;ID&amp;quot; is the groups's group_id number and the second &amp;quot;ID&amp;quot; is the agent's agent_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/groups/123/agents/12345&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual agent-to-group association between the designated group and agent. The association record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* usertogroup_id&lt;br /&gt;
* user_id&lt;br /&gt;
* group_id&lt;br /&gt;
* usertogroup_timestamp&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;group_agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group_agent&amp;gt;&lt;br /&gt;
  &amp;lt;usertogroup_id&amp;gt;123456&amp;lt;/usertogroup_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_id&amp;gt;12345&amp;lt;/user_id&amp;gt;&lt;br /&gt;
  &amp;lt;group_id&amp;gt;123&amp;lt;/group_id&amp;gt;&lt;br /&gt;
  &amp;lt;usertogroup_timestamp&amp;gt;2010-07-21 16:46:01&amp;lt;/usertogroup_timestamp&amp;gt;&lt;br /&gt;
 &amp;lt;/group_agent&amp;gt;&lt;br /&gt;
&amp;lt;/group_agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;usertogroup_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;group_id&amp;quot;:&amp;quot;123&amp;quot;,&lt;br /&gt;
  &amp;quot;usertogroup_timestamp&amp;quot;:&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;usertogroup_id&amp;quot;|&amp;quot;user_id&amp;quot;|&amp;quot;group_id&amp;quot;|&amp;quot;usertogroup_timestamp&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;123&amp;quot;|&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual agent-to-group association between the designated group and agent, and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;group_agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group_agent&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/group_agent&amp;gt;&lt;br /&gt;
&amp;lt;/group_agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:59:26 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Groups/ID/Agents/ID</comments>		</item>
		<item>
			<title>Resource Definitions</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section defines the resources made available through the API. These include descriptions of the resource, a list of the methods supported, a list of the the data fields contained in the resource, and sample request and response data, where appropriate. The resources below are grouped into two sets, based on the type of user allowed to access them. The available resources are:&lt;br /&gt;
&lt;br /&gt;
== Company Resources ==&lt;br /&gt;
* [[Resource_Definitions:Agents|Agents]]&lt;br /&gt;
* [[Resource_Definitions:Agents/ID|Agents/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups|Groups]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID|Groups/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID/Agents|Groups/ID/Agents]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID/Agents/ID|Groups/ID/Agents/ID]]&lt;br /&gt;
&lt;br /&gt;
== Agent Resources ==&lt;br /&gt;
* [[Resource_Definitions:Contacts|Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Contacts/ID|Contacts/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists|Lists]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID|Lists/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts|Lists/ID/Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts/ID|Lists/ID/Contacts/ID]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:59:17 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Resource_Definitions</comments>		</item>
		<item>
			<title>Resource Definitions:Groups/ID/Agents</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Groups/ID/Agents</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'The ''groups/ID/agents'' resource is a collection of all agent-to-group associations for the designated group, where &amp;quot;ID&amp;quot; is the group's group_id number.   '''''Example URI:'''''…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''groups/ID/agents'' resource is a collection of all agent-to-group associations for the designated group, where &amp;quot;ID&amp;quot; is the group's group_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/groups/123/agents&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of agent-to-group associations for the designated group. Each association record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* usertogroup_id&lt;br /&gt;
* user_id&lt;br /&gt;
* group_id&lt;br /&gt;
* usertogroup_timestamp&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;group_agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group_agent&amp;gt;&lt;br /&gt;
  &amp;lt;usertogroup_id&amp;gt;1234567&amp;lt;/usertogroup_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_id&amp;gt;12345&amp;lt;/user_id&amp;gt;&lt;br /&gt;
  &amp;lt;group_id&amp;gt;123&amp;lt;/group_id&amp;gt;&lt;br /&gt;
  &amp;lt;usertogroup_timestamp&amp;gt;2010-07-21 16:46:01&amp;lt;/usertogroup_timestamp&amp;gt;&lt;br /&gt;
 &amp;lt;/group_agent&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/group_agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;usertogroup_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;group_id&amp;quot;:&amp;quot;123&amp;quot;,&lt;br /&gt;
  &amp;quot;usertogroup_timestamp&amp;quot;:&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;usertogroup_id&amp;quot;|&amp;quot;user_id&amp;quot;|&amp;quot;group_id&amp;quot;|&amp;quot;usertogroup_timestamp&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;123&amp;quot;|&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new agent-to-group association for the designated group, and returns the new association ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* user_id '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be unique within this group''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;user_id&amp;gt;12346&amp;lt;/user_id&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;12346&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
user_id=12346&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;group_agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group_agent&amp;gt;&lt;br /&gt;
  &amp;lt;usertogroup_id&amp;gt;123457&amp;lt;/usertogroup_id&amp;gt;&lt;br /&gt;
 &amp;lt;/group_agent&amp;gt;&lt;br /&gt;
&amp;lt;/group_agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;usertogroup_id&amp;quot;:&amp;quot;123457&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;usertogroup_id&amp;quot;&lt;br /&gt;
&amp;quot;123457&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL agent-to-group associations for the designated group, and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;group_agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group_agent&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/group_agent&amp;gt;&lt;br /&gt;
&amp;lt;/group_agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:54:06 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Groups/ID/Agents</comments>		</item>
		<item>
			<title>Resource Definitions</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section defines the resources made available through the API. These include descriptions of the resource, a list of the methods supported, a list of the the data fields contained in the resource, and sample request and response data, where appropriate. The resources below are grouped into two sets, based on the type of user allowed to access them. The available resources are:&lt;br /&gt;
&lt;br /&gt;
== Company Resources ==&lt;br /&gt;
* [[Resource_Definitions:Agents|Agents]]&lt;br /&gt;
* [[Resource_Definitions:Agents/ID|Agents/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups|Groups]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID|Groups/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID/Agents|Groups/ID/Agents]]&lt;br /&gt;
&lt;br /&gt;
== Agent Resources ==&lt;br /&gt;
* [[Resource_Definitions:Contacts|Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Contacts/ID|Contacts/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists|Lists]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID|Lists/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts|Lists/ID/Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts/ID|Lists/ID/Contacts/ID]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:53:57 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Resource_Definitions</comments>		</item>
		<item>
			<title>Resource Definitions:Groups/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Groups/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'The ''groups/ID'' resource is an individual group associated with your company account, where &amp;quot;ID&amp;quot; is the group's group_id number.   '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rez…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''groups/ID'' resource is an individual group associated with your company account, where &amp;quot;ID&amp;quot; is the group's group_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/groups/123&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual group. The group record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* group_id&lt;br /&gt;
* group_name&lt;br /&gt;
* group_timestamp&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;groups version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group&amp;gt;&lt;br /&gt;
  &amp;lt;group_id&amp;gt;123&amp;lt;/group_id&amp;gt;&lt;br /&gt;
  &amp;lt;group_name&amp;gt;East Branch Office&amp;lt;/group_name&amp;gt;&lt;br /&gt;
  &amp;lt;group_timestamp&amp;gt;2010-07-21 16:28:52&amp;lt;/group_timestamp&amp;gt;&lt;br /&gt;
 &amp;lt;/group&amp;gt;&lt;br /&gt;
&amp;lt;/groups&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;group_id&amp;quot;:&amp;quot;123&amp;quot;,&lt;br /&gt;
  &amp;quot;group_name&amp;quot;:&amp;quot;East Branch Office&amp;quot;,&lt;br /&gt;
  &amp;quot;group_timestamp&amp;quot;:&amp;quot;2010-07-21 16:28:52&amp;quot;,&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;group_id&amp;quot;|&amp;quot;group_name&amp;quot;|&amp;quot;group_timestamp&amp;quot;&lt;br /&gt;
&amp;quot;123&amp;quot;|&amp;quot;East Branch Office&amp;quot;|&amp;quot;2010-07-21 16:28:52&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PUT ==&lt;br /&gt;
Updates an existing group, and returns a success code. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* group_name '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' ''(must be unique)''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;group_name&amp;gt;Eastern Branch Office&amp;lt;/group_name&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;group_name&amp;quot;:&amp;quot;Eastern Branch Office&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
group_name=Eastern+Branch+Office&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;groups version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/group&amp;gt;&lt;br /&gt;
&amp;lt;/groups&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual group, and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;groups version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/group&amp;gt;&lt;br /&gt;
&amp;lt;/groups&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:43:01 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Groups/ID</comments>		</item>
		<item>
			<title>Resource Definitions</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section defines the resources made available through the API. These include descriptions of the resource, a list of the methods supported, a list of the the data fields contained in the resource, and sample request and response data, where appropriate. The resources below are grouped into two sets, based on the type of user allowed to access them. The available resources are:&lt;br /&gt;
&lt;br /&gt;
== Company Resources ==&lt;br /&gt;
* [[Resource_Definitions:Agents|Agents]]&lt;br /&gt;
* [[Resource_Definitions:Agents/ID|Agents/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups|Groups]]&lt;br /&gt;
* [[Resource_Definitions:Groups/ID|Groups/ID]]&lt;br /&gt;
&lt;br /&gt;
== Agent Resources ==&lt;br /&gt;
* [[Resource_Definitions:Contacts|Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Contacts/ID|Contacts/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists|Lists]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID|Lists/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts|Lists/ID/Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts/ID|Lists/ID/Contacts/ID]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:42:52 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Resource_Definitions</comments>		</item>
		<item>
			<title>Resource Definitions:Lists/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Lists/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''lists/ID'' resource is an individual distribution list associated with your agent account, where &amp;quot;ID&amp;quot; is the list's list_id number.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special list, known as the Primary Sphere. This list has a list_type value of 1, while all other lists have a list_type value of 0. The Primary Sphere cannot be updated or deleted. The delete all functionality deletes all lists with a list_type value of 0, but leaves the Primary Sphere in tact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/lists/1234&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual distribution list. The distribution list record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* list_id&lt;br /&gt;
* list_name&lt;br /&gt;
* list_date&lt;br /&gt;
* list_type - ''possible values: 0, 1 (cannnot delete)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;list_id&amp;gt;1234&amp;lt;/list_id&amp;gt;&lt;br /&gt;
  &amp;lt;list_name&amp;gt;Current Prospects&amp;lt;/list_name&amp;gt;&lt;br /&gt;
  &amp;lt;list_date&amp;gt;2010-07-21 16:28:52&amp;lt;/list_date&amp;gt;&lt;br /&gt;
  &amp;lt;list_type&amp;gt;0&amp;lt;/list_type&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;list_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;list_name&amp;quot;:&amp;quot;Current Prospects&amp;quot;,&lt;br /&gt;
  &amp;quot;list_date&amp;quot;:&amp;quot;2010-07-21 16:28:52&amp;quot;,&lt;br /&gt;
  &amp;quot;list_type&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;list_id&amp;quot;|&amp;quot;list_name&amp;quot;|&amp;quot;list_date&amp;quot;|&amp;quot;list_type&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;Current Prospects&amp;quot;|&amp;quot;2010-07-21 16:28:52&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PUT ==&lt;br /&gt;
Updates an existing distribution list, and returns a success code. Note the you CANNOT update a Primary Sphere list (list_type = 1). You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* list_name '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' ''(must be unique)''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;list_name&amp;gt;Hot Leads&amp;lt;/list_name&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;list_name&amp;quot;:&amp;quot;Hot Leads&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
list_name=Hot+Leads&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual distribution list, and returns a success code. Note the you CANNOT delete a Primary Sphere list (list_type = 1).&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:36:02 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Lists/ID</comments>		</item>
		<item>
			<title>Resource Definitions:Groups</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Groups</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'The ''groups'' resource is a collection of all groups associated with your company account.   '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/groups&amp;lt;/nowiki&amp;gt;  Available m…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''groups'' resource is a collection of all groups associated with your company account.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/groups&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of groups. Each group record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* group_id&lt;br /&gt;
* group_name&lt;br /&gt;
* group_timestamp&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;groups version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group&amp;gt;&lt;br /&gt;
  &amp;lt;group_id&amp;gt;123&amp;lt;/group_id&amp;gt;&lt;br /&gt;
  &amp;lt;group_name&amp;gt;East Branch Office&amp;lt;/group_name&amp;gt;&lt;br /&gt;
  &amp;lt;group_timestamp&amp;gt;2010-07-21 16:28:52&amp;lt;/group_timestamp&amp;gt;&lt;br /&gt;
 &amp;lt;/group&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/groups&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;group_id&amp;quot;:&amp;quot;123&amp;quot;,&lt;br /&gt;
  &amp;quot;group_name&amp;quot;:&amp;quot;East Branch Office&amp;quot;,&lt;br /&gt;
  &amp;quot;group_timestamp&amp;quot;:&amp;quot;2010-07-21 16:28:52&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;group_id&amp;quot;|&amp;quot;group_name&amp;quot;|&amp;quot;group_timestamp&amp;quot;&lt;br /&gt;
&amp;quot;123&amp;quot;|&amp;quot;East Branch Office&amp;quot;|&amp;quot;2010-07-21 16:28:52&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new group, and returns the new group ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* group_name '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be unique''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;group_name&amp;gt;West Branch Office&amp;lt;/group_name&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;group_name&amp;quot;:&amp;quot;West Branch Office&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
group_name=West+Branch+Office&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;groups version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group&amp;gt;&lt;br /&gt;
  &amp;lt;group_id&amp;gt;124&amp;lt;/group_id&amp;gt;&lt;br /&gt;
 &amp;lt;/group&amp;gt;&lt;br /&gt;
&amp;lt;/groups&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;group_id&amp;quot;:&amp;quot;124&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;group_id&amp;quot;&lt;br /&gt;
&amp;quot;124&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL groups and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;groups version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;group&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/group&amp;gt;&lt;br /&gt;
&amp;lt;/groups&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:33:40 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Groups</comments>		</item>
		<item>
			<title>Resource Definitions</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section defines the resources made available through the API. These include descriptions of the resource, a list of the methods supported, a list of the the data fields contained in the resource, and sample request and response data, where appropriate. The resources below are grouped into two sets, based on the type of user allowed to access them. The available resources are:&lt;br /&gt;
&lt;br /&gt;
== Company Resources ==&lt;br /&gt;
* [[Resource_Definitions:Agents|Agents]]&lt;br /&gt;
* [[Resource_Definitions:Agents/ID|Agents/ID]]&lt;br /&gt;
* [[Resource_Definitions:Groups|Groups]]&lt;br /&gt;
&lt;br /&gt;
== Agent Resources ==&lt;br /&gt;
* [[Resource_Definitions:Contacts|Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Contacts/ID|Contacts/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists|Lists]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID|Lists/ID]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts|Lists/ID/Contacts]]&lt;br /&gt;
* [[Resource_Definitions:Lists/ID/Contacts/ID|Lists/ID/Contacts/ID]]&lt;/div&gt;</description>
			<pubDate>Tue, 03 Aug 2010 04:33:16 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Talk:Resource_Definitions</comments>		</item>
		<item>
			<title>Category:Agent Resources</title>
			<link>http://api.rezora.com/documentation/index.php?title=Category:Agent_Resources</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with 'Agent resources are accessible only with agent-level credentials. Agent resources provide data and functionality that are specific to agent-level accounts on the Rezora system.'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Agent resources are accessible only with agent-level credentials. Agent resources provide data and functionality that are specific to agent-level accounts on the Rezora system.&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:17:02 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Category_talk:Agent_Resources</comments>		</item>
		<item>
			<title>Category:Resource Definitions</title>
			<link>http://api.rezora.com/documentation/index.php?title=Category:Resource_Definitions</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This section defines all resources made available through the Rezora REST API. These include descriptions of the resource, a list of the methods supported, a list of the the data fields returned, and sample request response data, where appropriate.&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:16:13 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Category_talk:Resource_Definitions</comments>		</item>
		<item>
			<title>Resource Definitions:Lists/ID/Contacts/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Lists/ID/Contacts/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''lists/ID/contacts/ID'' resource is an individual contact-to-list association between the designated distribution list and contact, where the first &amp;quot;ID&amp;quot; is the list's list_id number and the second &amp;quot;ID&amp;quot; is the contact's contact_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/lists/1234/contacts/123456&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual contact-to-list association between the designated distribution list and contact. The association record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contacttolist_id&lt;br /&gt;
* contact_id&lt;br /&gt;
* list_id&lt;br /&gt;
* contacttolist_date&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;list_contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list_contact&amp;gt;&lt;br /&gt;
  &amp;lt;contacttolist_id&amp;gt;1234567&amp;lt;/contacttolist_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;list_id&amp;gt;1234&amp;lt;/list_id&amp;gt;&lt;br /&gt;
  &amp;lt;contacttolist_date&amp;gt;2010-07-21 16:46:01&amp;lt;/contacttolist_date&amp;gt;&lt;br /&gt;
 &amp;lt;/list_contact&amp;gt;&lt;br /&gt;
&amp;lt;/list_contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contacttolist_id&amp;quot;:&amp;quot;1234567&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;list_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contacttolist_date&amp;quot;:&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contacttolist_id&amp;quot;|&amp;quot;contact_id&amp;quot;|&amp;quot;list_id&amp;quot;|&amp;quot;contacttolist_date&amp;quot;&lt;br /&gt;
&amp;quot;1234567&amp;quot;|&amp;quot;123456&amp;quot;|&amp;quot;1234&amp;quot;|&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual contact-to-list association between the designated distribution list and contact, and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;list_contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list_contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list_contact&amp;gt;&lt;br /&gt;
&amp;lt;/list_contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:14:25 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Lists/ID/Contacts/ID</comments>		</item>
		<item>
			<title>Resource Definitions:Lists/ID/Contacts</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Lists/ID/Contacts</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''lists/ID/contacts'' resource is a collection of all contact-to-list associations for the designated distribution list, where &amp;quot;ID&amp;quot; is the list's list_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/lists/1234/contacts&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of contact-to-list associations for the designated distribution list. Each association record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contacttolist_id&lt;br /&gt;
* contact_id&lt;br /&gt;
* list_id&lt;br /&gt;
* contacttolist_date&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;list_contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list_contact&amp;gt;&lt;br /&gt;
  &amp;lt;contacttolist_id&amp;gt;1234567&amp;lt;/contacttolist_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;list_id&amp;gt;1234&amp;lt;/list_id&amp;gt;&lt;br /&gt;
  &amp;lt;contacttolist_date&amp;gt;2010-07-21 16:46:01&amp;lt;/contacttolist_date&amp;gt;&lt;br /&gt;
 &amp;lt;/list_contact&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/list_contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contacttolist_id&amp;quot;:&amp;quot;1234567&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;list_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contacttolist_date&amp;quot;:&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contacttolist_id&amp;quot;|&amp;quot;contact_id&amp;quot;|&amp;quot;list_id&amp;quot;|&amp;quot;contacttolist_date&amp;quot;&lt;br /&gt;
&amp;quot;1234567&amp;quot;|&amp;quot;123456&amp;quot;|&amp;quot;1234&amp;quot;|&amp;quot;2010-07-21 16:46:01&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new contact-to-list association for the designated distribution list, and returns the new association ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_id '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be unique within this distribution list''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_id&amp;gt;123457&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123457&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_id=123457&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;list_contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list_contact&amp;gt;&lt;br /&gt;
  &amp;lt;contacttolist_id&amp;gt;1234568&amp;lt;/contacttolist_id&amp;gt;&lt;br /&gt;
 &amp;lt;/list_contact&amp;gt;&lt;br /&gt;
&amp;lt;/list_contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contacttolist_id&amp;quot;:&amp;quot;1234568&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contacttolist_id&amp;quot;&lt;br /&gt;
&amp;quot;1234568&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL contact-to-list associations for the designated distribution list, and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;list_contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list_contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list_contact&amp;gt;&lt;br /&gt;
&amp;lt;/list_contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:14:12 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Lists/ID/Contacts</comments>		</item>
		<item>
			<title>Resource Definitions:Lists/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Lists/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''lists/ID'' resource is an individual distribution list associated with your agent account, where &amp;quot;ID&amp;quot; is the list's list_id number.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special list, known as the Primary Sphere. This list has a list_type value of 1, while all other lists have a list_type value of 0. The Primary Sphere cannot be updated or deleted. The delete all functionality deletes all lists with a list_type value of 0, but leaves the Primary Sphere in tact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/lists/1234&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual distribution. The distribution list record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* list_id&lt;br /&gt;
* list_name&lt;br /&gt;
* list_date&lt;br /&gt;
* list_type - ''possible values: 0, 1 (cannnot delete)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;list_id&amp;gt;1234&amp;lt;/list_id&amp;gt;&lt;br /&gt;
  &amp;lt;list_name&amp;gt;Current Prospects&amp;lt;/list_name&amp;gt;&lt;br /&gt;
  &amp;lt;list_date&amp;gt;2010-07-21 16:28:52&amp;lt;/list_date&amp;gt;&lt;br /&gt;
  &amp;lt;list_type&amp;gt;0&amp;lt;/list_type&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;list_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;list_name&amp;quot;:&amp;quot;Current Prospects&amp;quot;,&lt;br /&gt;
  &amp;quot;list_date&amp;quot;:&amp;quot;2010-07-21 16:28:52&amp;quot;,&lt;br /&gt;
  &amp;quot;list_type&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;list_id&amp;quot;|&amp;quot;list_name&amp;quot;|&amp;quot;list_date&amp;quot;|&amp;quot;list_type&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;Current Prospects&amp;quot;|&amp;quot;2010-07-21 16:28:52&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PUT ==&lt;br /&gt;
Updates an existing distribution list, and returns a success code. Note the you CANNOT update a Primary Sphere list (list_type = 1). You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* list_name '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' ''(must be unique)''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;list_name&amp;gt;Hot Leads&amp;lt;/list_name&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;list_name&amp;quot;:&amp;quot;Hot Leads&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
list_name=Hot+Leads&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual distribution list, and returns a success code. Note the you CANNOT delete a Primary Sphere list (list_type = 1).&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:13:58 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Lists/ID</comments>		</item>
		<item>
			<title>Resource Definitions:Lists</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Lists</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''lists'' resource is a collection of all distribution lists associated with your agent account.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special list, known as the Primary Sphere. This list has a list_type value of 1, while all other lists have a list_type value of 0. The Primary Sphere cannot be updated or deleted. The delete all functionality deletes all lists with a list_type value of 0, but leaves the Primary Sphere in tact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/lists&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of distribution lists. Each list record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* list_id&lt;br /&gt;
* list_name&lt;br /&gt;
* list_date&lt;br /&gt;
* list_type - ''possible values: 0, 1 (cannot update or delete)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;list_id&amp;gt;1234&amp;lt;/list_id&amp;gt;&lt;br /&gt;
  &amp;lt;list_name&amp;gt;Current Prospects&amp;lt;/list_name&amp;gt;&lt;br /&gt;
  &amp;lt;list_date&amp;gt;2010-07-21 16:28:52&amp;lt;/list_date&amp;gt;&lt;br /&gt;
  &amp;lt;list_type&amp;gt;0&amp;lt;/list_type&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;list_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;list_name&amp;quot;:&amp;quot;Current Prospects&amp;quot;,&lt;br /&gt;
  &amp;quot;list_date&amp;quot;:&amp;quot;2010-07-21 16:28:52&amp;quot;,&lt;br /&gt;
  &amp;quot;list_type&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;list_id&amp;quot;|&amp;quot;list_name&amp;quot;|&amp;quot;list_date&amp;quot;|&amp;quot;list_type&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;Current Prospects&amp;quot;|&amp;quot;2010-07-21 16:28:52&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new list, and returns the new list ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* list_name '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be unique''&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;list_name&amp;gt;New Leads&amp;lt;/list_name&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;list_name&amp;quot;:&amp;quot;New Leads&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
list_name=New+Leads&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;list_id&amp;gt;1235&amp;lt;/list_id&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;list_id&amp;quot;:&amp;quot;1235&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;list_id&amp;quot;&lt;br /&gt;
&amp;quot;1235&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL distribution lists (except for the Primary Sphere), and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;lists version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;list&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/list&amp;gt;&lt;br /&gt;
&amp;lt;/lists&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:13:44 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Lists</comments>		</item>
		<item>
			<title>Resource Definitions:Contacts/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Contacts/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''contacts/ID'' resource is an individual contact entry associated with your agent account, where &amp;quot;ID&amp;quot; is the contact's contact_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/contacts/123456&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns an individual contact. The contact record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contact_id&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
* contact_date&lt;br /&gt;
* contact_self - ''possible values: 0, 1 (cannot delete)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
  &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
  &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
  &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
  &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_date&amp;gt;2010-07-16 22:34:01&amp;lt;/contact_date&amp;gt;&lt;br /&gt;
  &amp;lt;contact_self&amp;gt;0&amp;lt;/contact_self&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_date&amp;quot;:&amp;quot;2010-07-16 22:34:01&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_self&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;|&amp;quot;contact_name&amp;quot;|&amp;quot;contact_email&amp;quot;|&amp;quot;contact_type&amp;quot;|&amp;quot;contact_title&amp;quot;|&amp;quot;contact_company&amp;quot;|&amp;quot;contact_phone_home&amp;quot;|&amp;quot;contact_phone_work&amp;quot;|&amp;quot;contact_phone_mobile&amp;quot;|&amp;quot;contact_phone_fax&amp;quot;|&amp;quot;contact_business_street&amp;quot;|&amp;quot;contact_business_street2&amp;quot;|&amp;quot;contact_business_city&amp;quot;|&amp;quot;contact_business_state&amp;quot;|&amp;quot;contact_business_zip&amp;quot;|&amp;quot;contact_home_street&amp;quot;|&amp;quot;contact_home_street2&amp;quot;|&amp;quot;contact_home_city&amp;quot;|&amp;quot;contact_home_state&amp;quot;|&amp;quot;contact_home_zip&amp;quot;|&amp;quot;contact_date&amp;quot;|&amp;quot;contact_self&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;Jane Smith&amp;quot;|&amp;quot;jane.smith@company.com&amp;quot;|&amp;quot;Active&amp;quot;|&amp;quot;Consultant&amp;quot;|&amp;quot;Acme Consulting&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;303-555-1237&amp;quot;|&amp;quot;123 Church Street&amp;quot;|&amp;quot;Suite 12&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;124 Church Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;2010-07-16 22:34:01&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== PUT ==&lt;br /&gt;
Updates an existing contact, and returns a success code. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be a valid email address, must be unique''&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_name=Jane+Smith&amp;amp;contact_email=jane.smith%40company.com&amp;amp;contact_type=Active&amp;amp;contact_title=Consultant&amp;amp;contact_company=Acme+Consulting&amp;amp;contact_phone_home=303-555-1234&amp;amp;contact_phone_work=303-555-1235&amp;amp;contact_phone_mobile=303-555-1236&amp;amp;contact_phone_fax=303-555-1237&amp;amp;contact_business_street=123+Church+Street&amp;amp;contact_business_street2=Suite+12&amp;amp;contact_business_city=Shady+Acres&amp;amp;contact_business_state=CO&amp;amp;contact_business_zip=12345&amp;amp;contact_home_street=124+Church+Street&amp;amp;contact_home_street2=&amp;amp;contact_home_city=Shady+Acres&amp;amp;contact_home_state=CO&amp;amp;contact_home_zip=12345&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes an individual contact, and returns a success code. Note the you CANNOT delete the self contact (contact_self = 1). &lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:13:26 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Contacts/ID</comments>		</item>
		<item>
			<title>Resource Definitions:Contacts</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Contacts</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''contacts'' resource is a collection of all contacts associated with your agent account.&lt;br /&gt;
&lt;br /&gt;
Each agent account has one special contact, known as the &amp;quot;self contact.&amp;quot; This contact has a contact_self value of 1, while all other contacts have a contact_self value of 0. The self contact cannot be deleted. The delete all functionality deletes all contacts with a contact_self value of 0, but leaves the self contact in tact.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/contacts&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of contacts. Each contact record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* contact_id&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email&lt;br /&gt;
* contact_type - ''possible values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
* contact_date&lt;br /&gt;
* contact_self - ''possible values: 0, 1 (cannot delete)''&lt;br /&gt;
&lt;br /&gt;
=== Example Responses ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
  &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
  &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
  &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
  &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
  &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;contact_date&amp;gt;2010-07-16 22:34:01&amp;lt;/contact_date&amp;gt;&lt;br /&gt;
  &amp;lt;contact_self&amp;gt;0&amp;lt;/contact_self&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_date&amp;quot;:&amp;quot;2010-07-16 22:34:01&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_self&amp;quot;:&amp;quot;0&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;|&amp;quot;contact_name&amp;quot;|&amp;quot;contact_email&amp;quot;|&amp;quot;contact_type&amp;quot;|&amp;quot;contact_title&amp;quot;|&amp;quot;contact_company&amp;quot;|&amp;quot;contact_phone_home&amp;quot;|&amp;quot;contact_phone_work&amp;quot;|&amp;quot;contact_phone_mobile&amp;quot;|&amp;quot;contact_phone_fax&amp;quot;|&amp;quot;contact_business_street&amp;quot;|&amp;quot;contact_business_street2&amp;quot;|&amp;quot;contact_business_city&amp;quot;|&amp;quot;contact_business_state&amp;quot;|&amp;quot;contact_business_zip&amp;quot;|&amp;quot;contact_home_street&amp;quot;|&amp;quot;contact_home_street2&amp;quot;|&amp;quot;contact_home_city&amp;quot;|&amp;quot;contact_home_state&amp;quot;|&amp;quot;contact_home_zip&amp;quot;|&amp;quot;contact_date&amp;quot;|&amp;quot;contact_self&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;|&amp;quot;Jane Smith&amp;quot;|&amp;quot;jane.smith@company.com&amp;quot;|&amp;quot;Active&amp;quot;|&amp;quot;Consultant&amp;quot;|&amp;quot;Acme Consulting&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;303-555-1237&amp;quot;|&amp;quot;123 Church Street&amp;quot;|&amp;quot;Suite 12&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;124 Church Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;2010-07-16 22:34:01&amp;quot;|&amp;quot;0&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
Adds a new contact, and returns the new contact ID. You may include the following fields (required fields marked with a red asterisk ('''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''')):&lt;br /&gt;
&lt;br /&gt;
* contact_name&lt;br /&gt;
* contact_email '''&amp;lt;span style=&amp;quot;color: #f00;&amp;quot;&amp;gt;*&amp;lt;/span&amp;gt;''' - ''must be a valid email address, must be unique''&lt;br /&gt;
* contact_type - ''accepted values: Hot, Active, Inactive, empty string (indicates no type)''&lt;br /&gt;
* contact_title&lt;br /&gt;
* contact_company&lt;br /&gt;
* contact_phone_home&lt;br /&gt;
* contact_phone_work&lt;br /&gt;
* contact_phone_mobile&lt;br /&gt;
* contact_phone_fax&lt;br /&gt;
* contact_business_street&lt;br /&gt;
* contact_business_street2&lt;br /&gt;
* contact_business_city&lt;br /&gt;
* contact_business_state&lt;br /&gt;
* contact_business_zip&lt;br /&gt;
* contact_home_street&lt;br /&gt;
* contact_home_street2&lt;br /&gt;
* contact_home_city&lt;br /&gt;
* contact_home_state&lt;br /&gt;
* contact_home_zip&lt;br /&gt;
&lt;br /&gt;
=== Example Request Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;data&amp;gt;&lt;br /&gt;
 &amp;lt;contact_name&amp;gt;Jane Smith&amp;lt;/contact_name&amp;gt;&lt;br /&gt;
 &amp;lt;contact_email&amp;gt;jane.smith@company.com&amp;lt;/contact_email&amp;gt;&lt;br /&gt;
 &amp;lt;contact_type&amp;gt;Active&amp;lt;/contact_type&amp;gt;&lt;br /&gt;
 &amp;lt;contact_title&amp;gt;Consultant&amp;lt;/contact_title&amp;gt;&lt;br /&gt;
 &amp;lt;contact_company&amp;gt;Acme Consulting&amp;lt;/contact_company&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_home&amp;gt;303-555-1234&amp;lt;/contact_phone_home&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_work&amp;gt;303-555-1235&amp;lt;/contact_phone_work&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_mobile&amp;gt;303-555-1236&amp;lt;/contact_phone_mobile&amp;gt;&lt;br /&gt;
 &amp;lt;contact_phone_fax&amp;gt;303-555-1237&amp;lt;/contact_phone_fax&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street&amp;gt;123 Church Street&amp;lt;/contact_business_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_street2&amp;gt;Suite 12&amp;lt;/contact_business_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_city&amp;gt;Shady Acres&amp;lt;/contact_business_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_state&amp;gt;CO&amp;lt;/contact_business_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_business_zip&amp;gt;12345&amp;lt;/contact_business_zip&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street&amp;gt;124 Church Street&amp;lt;/contact_home_street&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_street2&amp;gt;&amp;lt;/contact_home_street2&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_city&amp;gt;Shady Acres&amp;lt;/contact_home_city&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_state&amp;gt;CO&amp;lt;/contact_home_state&amp;gt;&lt;br /&gt;
 &amp;lt;contact_home_zip&amp;gt;12345&amp;lt;/contact_home_zip&amp;gt;&lt;br /&gt;
&amp;lt;/data&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Request ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
 &amp;quot;data&amp;quot;:{&lt;br /&gt;
  &amp;quot;contact_name&amp;quot;:&amp;quot;Jane Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_email&amp;quot;:&amp;quot;jane.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_type&amp;quot;:&amp;quot;Active&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_title&amp;quot;:&amp;quot;Consultant&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_company&amp;quot;:&amp;quot;Acme Consulting&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_home&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_work&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_mobile&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_phone_fax&amp;quot;:&amp;quot;303-555-1237&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street&amp;quot;:&amp;quot;123 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_street2&amp;quot;:&amp;quot;Suite 12&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_business_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street&amp;quot;:&amp;quot;124 Church Street&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_street2&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;contact_home_zip&amp;quot;:&amp;quot;12345&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== TEXT Request ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
contact_name=Jane+Smith&amp;amp;contact_email=jane.smith%40company.com&amp;amp;contact_type=Active&amp;amp;contact_title=Consultant&amp;amp;contact_company=Acme+Consulting&amp;amp;contact_phone_home=303-555-1234&amp;amp;contact_phone_work=303-555-1235&amp;amp;contact_phone_mobile=303-555-1236&amp;amp;contact_phone_fax=303-555-1237&amp;amp;contact_business_street=123+Church+Street&amp;amp;contact_business_street2=Suite+12&amp;amp;contact_business_city=Shady+Acres&amp;amp;contact_business_state=CO&amp;amp;contact_business_zip=12345&amp;amp;contact_home_street=124+Church+Street&amp;amp;contact_home_street2=&amp;amp;contact_home_city=Shady+Acres&amp;amp;contact_home_state=CO&amp;amp;contact_home_zip=12345&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;contact_id&amp;gt;123456&amp;lt;/contact_id&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;contact_id&amp;quot;:&amp;quot;123456&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;contact_id&amp;quot;&lt;br /&gt;
&amp;quot;123456&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DELETE ==&lt;br /&gt;
Permanently removes ALL contacts (except for the self contact), and returns a success code.&lt;br /&gt;
&lt;br /&gt;
=== Example Response Data ===&lt;br /&gt;
&lt;br /&gt;
==== XML Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;contacts version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;contact&amp;gt;&lt;br /&gt;
  &amp;lt;status&amp;gt;200&amp;lt;/status&amp;gt;&lt;br /&gt;
 &amp;lt;/contact&amp;gt;&lt;br /&gt;
&amp;lt;/contacts&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== JSON Response ====&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;status&amp;quot;:&amp;quot;200&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== CSV Response ====&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;status&amp;quot;&lt;br /&gt;
&amp;quot;200&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Agent Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:13:03 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Contacts</comments>		</item>
		<item>
			<title>Resource Definitions:Agents/ID</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Agents/ID</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''agents/ID'' resource references an individual agent account, where &amp;quot;ID&amp;quot; is the agent's user_id number.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents/1234&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
Returns a list of account settings for the specified agent. The response includes the following fields:&lt;br /&gt;
* user_id&lt;br /&gt;
* user_email&lt;br /&gt;
* user_status_id - ''possible values: 1 (active), 2 (suspended), 3 (trial), 4 (pending), 5 (free), 6 (deactivated)''&lt;br /&gt;
* user_fname&lt;br /&gt;
* user_lname&lt;br /&gt;
* user_company_name&lt;br /&gt;
* user_email_work&lt;br /&gt;
* user_website&lt;br /&gt;
* user_phone_work&lt;br /&gt;
* user_phone_home&lt;br /&gt;
* user_phone_mobile&lt;br /&gt;
* user_phone_fax&lt;br /&gt;
* user_photo_path&lt;br /&gt;
* user_home_street&lt;br /&gt;
* user_home_suite&lt;br /&gt;
* user_home_city&lt;br /&gt;
* user_home_state&lt;br /&gt;
* user_home_zip&lt;br /&gt;
* user_company_website&lt;br /&gt;
* user_company_street&lt;br /&gt;
* user_company_suite&lt;br /&gt;
* user_company_city&lt;br /&gt;
* user_company_state&lt;br /&gt;
* user_company_zip&lt;br /&gt;
* user_company_logo_path&lt;br /&gt;
* user_tagline&lt;br /&gt;
* user_bio&lt;br /&gt;
* user_date&lt;br /&gt;
* user_report_daily - ''possible values: 0, 1 (receives daily status email)''&lt;br /&gt;
* user_report_weekly - ''possible values: 0, 1 (receives weekly status email)''&lt;br /&gt;
* user_report_monthly - ''possible values: 0, 1 (receives monthly status email)''&lt;br /&gt;
* user_sitename&lt;br /&gt;
* user_directory_hidden - ''possible values: 0, 1 (not displayed on agent directory page)''&lt;br /&gt;
* brokerage_employee_id&lt;br /&gt;
&lt;br /&gt;
=== Example Response - XML ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;agent&amp;gt;&lt;br /&gt;
  &amp;lt;user_id&amp;gt;1234&amp;lt;/user_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_email&amp;gt;john.smith@company.com&amp;lt;/user_email&amp;gt;&lt;br /&gt;
  &amp;lt;user_status_id&amp;gt;1&amp;lt;/user_status_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_fname&amp;gt;John&amp;lt;/user_fname&amp;gt;&lt;br /&gt;
  &amp;lt;user_lname&amp;gt;Smith&amp;lt;/user_lname&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_name&amp;gt;Shady Acres Brokerage&amp;lt;/user_company_name&amp;gt;&lt;br /&gt;
  &amp;lt;user_email_work&amp;gt;john.smith@company.com&amp;lt;/user_email_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_work&amp;gt;303-555-1234&amp;lt;/user_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_home&amp;gt;&amp;lt;/user_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_mobile&amp;gt;303-555-1235&amp;lt;/user_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_fax&amp;gt;303-555-1236&amp;lt;/user_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;user_photo_path&amp;gt;1234_photo.jpg&amp;lt;/user_photo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_street&amp;gt;123 Main Street&amp;lt;/user_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_suite&amp;gt;&amp;lt;/user_home_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_city&amp;gt;Shady Acres&amp;lt;/user_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_state&amp;gt;CO&amp;lt;/user_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_zip&amp;gt;12345&amp;lt;/user_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_company_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_street&amp;gt;124 Main Street&amp;lt;/user_company_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_suite&amp;gt;5&amp;lt;/user_company_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_city&amp;gt;Shady Acres&amp;lt;/user_company_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_state&amp;gt;CO&amp;lt;/user_company_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_zip&amp;gt;12345&amp;lt;/user_company_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_logo_path&amp;gt;sab_logo.gif&amp;lt;/user_company_logo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_tagline&amp;gt;&amp;lt;/user_tagline&amp;gt;&lt;br /&gt;
  &amp;lt;user_bio&amp;gt;&amp;lt;/user_bio&amp;gt;&lt;br /&gt;
  &amp;lt;user_date&amp;gt;2009-07-13 11:25:23&amp;lt;/user_date&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_daily&amp;gt;0&amp;lt;/user_report_daily&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_weekly&amp;gt;1&amp;lt;/user_report_weekly&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_monthly&amp;gt;0&amp;lt;/user_report_monthly&amp;gt;&lt;br /&gt;
  &amp;lt;user_sitename&amp;gt;&amp;lt;/user_sitename&amp;gt;&lt;br /&gt;
  &amp;lt;user_directory_hidden&amp;gt;0&amp;lt;/user_directory_hidden&amp;gt;&lt;br /&gt;
  &amp;lt;brokerage_employee_id&amp;gt;&amp;lt;/brokerage_employee_id&amp;gt;&lt;br /&gt;
 &amp;lt;/agent&amp;gt;&lt;br /&gt;
&amp;lt;/agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - JSON ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_status_id&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_fname&amp;quot;:&amp;quot;John&amp;quot;,&lt;br /&gt;
  &amp;quot;user_lname&amp;quot;:&amp;quot;Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_name&amp;quot;:&amp;quot;hady Acres Brokerage&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email_work&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_work&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_home&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_mobile&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_fax&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;user_photo_path&amp;quot;:&amp;quot;1234_photo.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_street&amp;quot;:&amp;quot;123 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_suite&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_street&amp;quot;:&amp;quot;124 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_suite&amp;quot;:&amp;quot;5&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_logo_path&amp;quot;:&amp;quot;sab_logo.gif&amp;quot;,&lt;br /&gt;
  &amp;quot;user_tagline&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_bio&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_date&amp;quot;:&amp;quot;2009-07-13 11:25:23&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_daily&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_weekly&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_monthly&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_sitename&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_directory_hidden&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;brokerage_employee_id&amp;quot;:&amp;quot;&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - CSV ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;user_id&amp;quot;|&amp;quot;user_email&amp;quot;|&amp;quot;user_status_id&amp;quot;|&amp;quot;user_fname&amp;quot;|&amp;quot;user_lname&amp;quot;|&amp;quot;user_company_name&amp;quot;|&amp;quot;user_email_work&amp;quot;|&amp;quot;user_website&amp;quot;|&amp;quot;user_phone_work&amp;quot;|&amp;quot;user_phone_home&amp;quot;|&amp;quot;user_phone_mobile&amp;quot;|&amp;quot;user_phone_fax&amp;quot;|&amp;quot;user_photo_path&amp;quot;|&amp;quot;user_home_street&amp;quot;|&amp;quot;user_home_suite&amp;quot;|&amp;quot;user_home_city&amp;quot;|&amp;quot;user_home_state&amp;quot;|&amp;quot;user_home_zip&amp;quot;|&amp;quot;user_company_website&amp;quot;|&amp;quot;user_company_street&amp;quot;|&amp;quot;user_company_suite&amp;quot;|&amp;quot;user_company_city&amp;quot;|&amp;quot;user_company_state&amp;quot;|&amp;quot;user_company_zip&amp;quot;|&amp;quot;user_company_logo_path&amp;quot;|&amp;quot;user_tagline&amp;quot;|&amp;quot;user_bio&amp;quot;|&amp;quot;user_date&amp;quot;|&amp;quot;user_report_daily&amp;quot;|&amp;quot;user_report_weekly&amp;quot;|&amp;quot;user_report_monthly&amp;quot;|&amp;quot;user_sitename&amp;quot;|&amp;quot;user_directory_hidden&amp;quot;|&amp;quot;brokerage_employee_id&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;John&amp;quot;|&amp;quot;Smith&amp;quot;|&amp;quot;Shady Acres Brokerage&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;1234_photo.jpg&amp;quot;|&amp;quot;123 Main Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;124 Main Street&amp;quot;|&amp;quot;5&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;sab_logo.gif&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;2009-07-13 11:25:23&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:11:29 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Agents/ID</comments>		</item>
		<item>
			<title>Category:Company Resources</title>
			<link>http://api.rezora.com/documentation/index.php?title=Category:Company_Resources</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Company resources are accessible only with company-level credentials. Company resources provide data and functionality that are specific to company-level accounts on the Rezora system.&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:10:56 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Category_talk:Company_Resources</comments>		</item>
		<item>
			<title>Category:Company Resources</title>
			<link>http://api.rezora.com/documentation/index.php?title=Category:Company_Resources</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;Created page with '== Company Resources ==  Company resources are accessible only with company-level credentials. Company resources provide data and functionality that are specific to company-level…'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Company Resources ==&lt;br /&gt;
&lt;br /&gt;
Company resources are accessible only with company-level credentials. Company resources provide data and functionality that are specific to company-level accounts on the Rezora system.&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:10:41 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Category_talk:Company_Resources</comments>		</item>
		<item>
			<title>Resource Definitions:Agents</title>
			<link>http://api.rezora.com/documentation/index.php?title=Resource_Definitions:Agents</link>
			<description>&lt;p&gt;WikiSysop:&amp;#32;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The ''agents'' resource is a collection of all agent accounts associated with your company.&lt;br /&gt;
&lt;br /&gt;
 '''''Example URI:''''' &amp;lt;nowiki&amp;gt;http://api.rezora.com/v1/agents&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Available methods are:&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
Returns a list of agents. Each agent record includes the following fields:&lt;br /&gt;
&lt;br /&gt;
* user_id&lt;br /&gt;
* user_email&lt;br /&gt;
* user_status_id - ''possible values: 1 (active), 2 (suspended), 3 (trial), 4 (pending), 5 (free), 6 (deactivated)''&lt;br /&gt;
* user_fname&lt;br /&gt;
* user_lname&lt;br /&gt;
* user_company_name&lt;br /&gt;
* user_email_work&lt;br /&gt;
* user_website&lt;br /&gt;
* user_phone_work&lt;br /&gt;
* user_phone_home&lt;br /&gt;
* user_phone_mobile&lt;br /&gt;
* user_phone_fax&lt;br /&gt;
* user_photo_path&lt;br /&gt;
* user_home_street&lt;br /&gt;
* user_home_suite&lt;br /&gt;
* user_home_city&lt;br /&gt;
* user_home_state&lt;br /&gt;
* user_home_zip&lt;br /&gt;
* user_company_website&lt;br /&gt;
* user_company_street&lt;br /&gt;
* user_company_suite&lt;br /&gt;
* user_company_city&lt;br /&gt;
* user_company_state&lt;br /&gt;
* user_company_zip&lt;br /&gt;
* user_company_logo_path&lt;br /&gt;
* user_tagline&lt;br /&gt;
* user_bio&lt;br /&gt;
* user_date&lt;br /&gt;
* user_report_daily - ''possible values: 0, 1 (receives daily status email)''&lt;br /&gt;
* user_report_weekly - ''possible values: 0, 1 (receives weekly status email)''&lt;br /&gt;
* user_report_monthly - ''possible values: 0, 1 (receives monthly status email)''&lt;br /&gt;
* user_sitename&lt;br /&gt;
* user_directory_hidden - ''possible values: 0, 1 (not displayed on agent directory page)''&lt;br /&gt;
* brokerage_employee_id&lt;br /&gt;
&lt;br /&gt;
=== Example Response - XML ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;agents version=&amp;quot;1.0&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;agent&amp;gt;&lt;br /&gt;
  &amp;lt;user_id&amp;gt;1234&amp;lt;/user_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_email&amp;gt;john.smith@company.com&amp;lt;/user_email&amp;gt;&lt;br /&gt;
  &amp;lt;user_status_id&amp;gt;1&amp;lt;/user_status_id&amp;gt;&lt;br /&gt;
  &amp;lt;user_fname&amp;gt;John&amp;lt;/user_fname&amp;gt;&lt;br /&gt;
  &amp;lt;user_lname&amp;gt;Smith&amp;lt;/user_lname&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_name&amp;gt;Shady Acres Brokerage&amp;lt;/user_company_name&amp;gt;&lt;br /&gt;
  &amp;lt;user_email_work&amp;gt;john.smith@company.com&amp;lt;/user_email_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_work&amp;gt;303-555-1234&amp;lt;/user_phone_work&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_home&amp;gt;&amp;lt;/user_phone_home&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_mobile&amp;gt;303-555-1235&amp;lt;/user_phone_mobile&amp;gt;&lt;br /&gt;
  &amp;lt;user_phone_fax&amp;gt;303-555-1236&amp;lt;/user_phone_fax&amp;gt;&lt;br /&gt;
  &amp;lt;user_photo_path&amp;gt;1234_photo.jpg&amp;lt;/user_photo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_street&amp;gt;123 Main Street&amp;lt;/user_home_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_suite&amp;gt;&amp;lt;/user_home_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_city&amp;gt;Shady Acres&amp;lt;/user_home_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_state&amp;gt;CO&amp;lt;/user_home_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_home_zip&amp;gt;12345&amp;lt;/user_home_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_website&amp;gt;www.shadyacresbrokerage.com&amp;lt;/user_company_website&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_street&amp;gt;124 Main Street&amp;lt;/user_company_street&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_suite&amp;gt;5&amp;lt;/user_company_suite&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_city&amp;gt;Shady Acres&amp;lt;/user_company_city&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_state&amp;gt;CO&amp;lt;/user_company_state&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_zip&amp;gt;12345&amp;lt;/user_company_zip&amp;gt;&lt;br /&gt;
  &amp;lt;user_company_logo_path&amp;gt;sab_logo.gif&amp;lt;/user_company_logo_path&amp;gt;&lt;br /&gt;
  &amp;lt;user_tagline&amp;gt;&amp;lt;/user_tagline&amp;gt;&lt;br /&gt;
  &amp;lt;user_bio&amp;gt;&amp;lt;/user_bio&amp;gt;&lt;br /&gt;
  &amp;lt;user_date&amp;gt;2009-07-13 11:25:23&amp;lt;/user_date&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_daily&amp;gt;0&amp;lt;/user_report_daily&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_weekly&amp;gt;1&amp;lt;/user_report_weekly&amp;gt;&lt;br /&gt;
  &amp;lt;user_report_monthly&amp;gt;0&amp;lt;/user_report_monthly&amp;gt;&lt;br /&gt;
  &amp;lt;user_sitename&amp;gt;&amp;lt;/user_sitename&amp;gt;&lt;br /&gt;
  &amp;lt;user_directory_hidden&amp;gt;0&amp;lt;/user_directory_hidden&amp;gt;&lt;br /&gt;
  &amp;lt;brokerage_employee_id&amp;gt;&amp;lt;/brokerage_employee_id&amp;gt;&lt;br /&gt;
 &amp;lt;/agent&amp;gt;&lt;br /&gt;
 ...&lt;br /&gt;
&amp;lt;/agents&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - JSON ===&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
[&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;user_id&amp;quot;:&amp;quot;1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_status_id&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_fname&amp;quot;:&amp;quot;John&amp;quot;,&lt;br /&gt;
  &amp;quot;user_lname&amp;quot;:&amp;quot;Smith&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_name&amp;quot;:&amp;quot;hady Acres Brokerage&amp;quot;,&lt;br /&gt;
  &amp;quot;user_email_work&amp;quot;:&amp;quot;john.smith@company.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_work&amp;quot;:&amp;quot;303-555-1234&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_home&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_mobile&amp;quot;:&amp;quot;303-555-1235&amp;quot;,&lt;br /&gt;
  &amp;quot;user_phone_fax&amp;quot;:&amp;quot;303-555-1236&amp;quot;,&lt;br /&gt;
  &amp;quot;user_photo_path&amp;quot;:&amp;quot;1234_photo.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_street&amp;quot;:&amp;quot;123 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_suite&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_home_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_website&amp;quot;:&amp;quot;www.shadyacresbrokerage.com&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_street&amp;quot;:&amp;quot;124 Main Street&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_suite&amp;quot;:&amp;quot;5&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_city&amp;quot;:&amp;quot;Shady Acres&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_state&amp;quot;:&amp;quot;CO&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_zip&amp;quot;:&amp;quot;12345&amp;quot;,&lt;br /&gt;
  &amp;quot;user_company_logo_path&amp;quot;:&amp;quot;sab_logo.gif&amp;quot;,&lt;br /&gt;
  &amp;quot;user_tagline&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_bio&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_date&amp;quot;:&amp;quot;2009-07-13 11:25:23&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_daily&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_weekly&amp;quot;:&amp;quot;1&amp;quot;,&lt;br /&gt;
  &amp;quot;user_report_monthly&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;user_sitename&amp;quot;:&amp;quot;&amp;quot;,&lt;br /&gt;
  &amp;quot;user_directory_hidden&amp;quot;:&amp;quot;0&amp;quot;,&lt;br /&gt;
  &amp;quot;brokerage_employee_id&amp;quot;:&amp;quot;&amp;quot;&lt;br /&gt;
 },&lt;br /&gt;
 ...&lt;br /&gt;
]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example Response - CSV ===&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: auto;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
&amp;quot;user_id&amp;quot;|&amp;quot;user_email&amp;quot;|&amp;quot;user_status_id&amp;quot;|&amp;quot;user_fname&amp;quot;|&amp;quot;user_lname&amp;quot;|&amp;quot;user_company_name&amp;quot;|&amp;quot;user_email_work&amp;quot;|&amp;quot;user_website&amp;quot;|&amp;quot;user_phone_work&amp;quot;|&amp;quot;user_phone_home&amp;quot;|&amp;quot;user_phone_mobile&amp;quot;|&amp;quot;user_phone_fax&amp;quot;|&amp;quot;user_photo_path&amp;quot;|&amp;quot;user_home_street&amp;quot;|&amp;quot;user_home_suite&amp;quot;|&amp;quot;user_home_city&amp;quot;|&amp;quot;user_home_state&amp;quot;|&amp;quot;user_home_zip&amp;quot;|&amp;quot;user_company_website&amp;quot;|&amp;quot;user_company_street&amp;quot;|&amp;quot;user_company_suite&amp;quot;|&amp;quot;user_company_city&amp;quot;|&amp;quot;user_company_state&amp;quot;|&amp;quot;user_company_zip&amp;quot;|&amp;quot;user_company_logo_path&amp;quot;|&amp;quot;user_tagline&amp;quot;|&amp;quot;user_bio&amp;quot;|&amp;quot;user_date&amp;quot;|&amp;quot;user_report_daily&amp;quot;|&amp;quot;user_report_weekly&amp;quot;|&amp;quot;user_report_monthly&amp;quot;|&amp;quot;user_sitename&amp;quot;|&amp;quot;user_directory_hidden&amp;quot;|&amp;quot;brokerage_employee_id&amp;quot;&lt;br /&gt;
&amp;quot;1234&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;John&amp;quot;|&amp;quot;Smith&amp;quot;|&amp;quot;Shady Acres Brokerage&amp;quot;|&amp;quot;john.smith@company.com&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;303-555-1234&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;303-555-1235&amp;quot;|&amp;quot;303-555-1236&amp;quot;|&amp;quot;1234_photo.jpg&amp;quot;|&amp;quot;123 Main Street&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;www.shadyacresbrokerage.com&amp;quot;|&amp;quot;124 Main Street&amp;quot;|&amp;quot;5&amp;quot;|&amp;quot;Shady Acres&amp;quot;|&amp;quot;CO&amp;quot;|&amp;quot;12345&amp;quot;|&amp;quot;sab_logo.gif&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;2009-07-13 11:25:23&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;1&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;|&amp;quot;0&amp;quot;|&amp;quot;&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[Category:Resource Definitions]]&lt;br /&gt;
[[Category:Company Resources]]&lt;/div&gt;</description>
			<pubDate>Fri, 23 Jul 2010 15:08:41 GMT</pubDate>			<dc:creator>WikiSysop</dc:creator>			<comments>http://api.rezora.com/documentation/index.php?title=Resource_Definitions_Talk:Agents</comments>		</item>
	</channel>
</rss>