<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">

    <channel>
    
    <title>Norada</title>
    <link>http://norada.com/index.php/index</link>
    <description />
    <dc:language>en</dc:language>
    <dc:creator>sireland@norada.com</dc:creator>
    <dc:rights>Copyright 2009</dc:rights>
    <dc:date>2009-09-30T18:35:06-07:00</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
    

    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/norada" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
      <title>Automatic Client Follow-up &amp;amp; Lead Nurturing</title>
      <link>http://norada.com/norada/entry/automatic_client_follow-up_lead_nurturing/</link>
      <guid>http://norada.com/norada/entry/automatic_client_follow-up_lead_nurturing/#When:18:35:06Z</guid>
      <description><![CDATA[<p>What's the difference between your favorite aunt and the underwhelming uncle?</p>
<p>Uncle Ted forgets your name and was last seen passed out at your wedding.  Aunt Katie was ecstatic to be at your graduation. She never misses a card for every birthday and Christmas.  She calls you often just to see what is new. You like and trust Aunt Katie because it is obvious she cares about you.  So you care about her.</p>
<p>Most businesses treat customer relationships like bumbling Uncle Ted, showing up and calling only when it's expected.  Wouldn’t it be awesome if you could be Aunt Katie to your clients?</p><p>In a perfect world, you would deliver personalized letters to your clients on a regular basis. Your individualized attention would create a positive image for you and your company. Open communication would quickly establish a friendly rapport, keep your product front-of-mind and gain clients' trust.  This isn't about teddy-bear hugs; people are inclined to buy from someone they remember, like and trust and <b>to you that's cash in the bank</b>.</p>
<p>It’s not a perfect world – but you have two options to nurture client relationships. You can:</p>
<ol>
  <li>Hire all those punctual and personal aunts out there<br><br></li>
  <li>Use Solve360’s scheduled email feature to automate much of that personal interaction</li>
</ol>
<div style="float: right; margin: 10px 10px 10px 10px;"><img src="http://norada.com/site/uploads/scheduledemail.png" style="border: 0;" alt="image" width="267" height="226" /></div>
<p>Before you post job openings for &ldquo;Communication-Savvy Aunts,&rdquo; look at what Solve360’s new Scheduled email feature can do for you.</p>
<p class="leading">A Simple and Automatic Follow-up</p>
<p>Lets say you just made a sale or completed a project.  While the ink is still wet, create a Scheduled email activity that will be delivered to your client exactly one month from now to thank your client for his or her business, confirm everything worked out and request a referral.</p>
<p>It really is that simple, it scales and it does make a difference.</p>
<p class="leading">Multi-Step Lead Nurturing Campaigns</p>
<p>Lets expand on the first example by using the Scheduled email activity to manage a company-wide personal lead nurturing campaign.  Let’s say you've established an ideal ten-step process for handling each new lead:</p>

<table id="leadnurturingexample">
  <tr><td style="width: 85px;">Day 1</td><td style="width: 450px;">Send an email welcome message with your personal contact information</td></tr>
  <tr><td>Day 3</td><td>Send an email with some tips on how to get started</td></tr>
  <tr><td>Day 4</td><td>Schedule a phone call</td></tr>
  <tr><td>Day 7</td><td>Send an email providing a list of tips on how to be successful with your service (benefits)</td></tr>
  <tr><td>Day 11</td><td>Send an email on how you compare to the competition (they're doing it anyway, so jump in with your answers)</td></tr>
  <tr><td>Day 14</td><td>Send an email that answers the questions frequently asked by new clients and some quotes</td></tr>
  <tr><td>Day 18</td>Send an email with a free report on how leveraging your service can help them blow away from their competitors<td></td></tr>
  <tr><td>Day 19</td><td>Schedule a follow-up meeting</td></tr>
  <tr><td>Day 22</td><td>Send an email with a case study</td></tr>
  <tr><td>Day 28</td><td>Schedule a follow-up meeting asking for their business</td></tr>
  <tr><td>Held</td><td>Send an email thanking them for their business!</td></tr>
  <tr><td>A Month Later</td><td>Thank your client for their business, confirm everything worked out and request a referral!</td></tr>
</table>

<p>That continuous &ldquo;personal&rdquo; follow-up would do an amazing job of converting leads to clients, but just before your keyboard-bound fingers fall off from fatigue, your head would explode from the stress.  Solve360 will systematically type and send those eight personal emails at exactly the right time and set up the three events in your calendar.  It’s simple to do:</p>
<ol>
  <li>On a new contact record, create a set of Scheduled email messages and events according to the sequence of your nurturing campaign.  Insert fields such as "First Name," "Last Name" and "Job Title" to personalize your Scheduled email messages. This simple step prevents you from using the over-used, generic  “Dear Valued Customer" opening.  Have you ever met Valued Customer? Imaginary friends are only OK when you’re a child.<br><br></li>
  <li>Save this set of activities as a template with its own name so you can attach a copy of the same set of activities to each new lead with one, simple click.</li>
</ol>
<p>Solve360 templates are blueprints of your work that you can reuse later. A template stores a set of scheduled email messages that can be applied to new prospects.  When you follow the same steps repeatedly, templates save you a lot of time by simply plugging and chugging new information.</p>
<p>Combining the scheduled email’s field names with a template adds value to your sales and marketing efforts. Your emails will have personal appeal, provoking those fuzzy feelings with your prospects and clients, yet all you did was insert a template of pre-defined activities.</p>
<p>Continuous contact without the continuous labor. Solve360 gives you more time to spend doing... err... Facebooking counts as work these days, right?</p>
<p class="leading">Some Background on Effective Lead Nurturing Campaigns</p>
<p>To create sustainable customer relationships, lead nurturing (aka CRM Drip Marketing and autoresponder) campaigns are your best friend. Why? They work.  Consider this: 80 percent of all sales occur after the fourth interaction. Shocking, especially considering that 90 percent of all salespeople quit after four interactions. (They were so close!)</p>
<div style="float: right; margin: 10px 10px 10px 10px;"><img src="http://norada.com/site/uploads/justforyou.png" style="border: 0;" alt="image" width="292" height="212" /></div>
<p>You don’t want to pester your prospects.  Effective lead nurturing campaigns are always carefully planned.  Some things to consider:</p>
<ul>
  <li>Keep a consistent message throughout and point to benefits.  The same theme should be present in all emails. Drive one point home instead of a bunch of pop flies that get you OUT.<br><br></li>
  <li>Provide value to your prospect by helping them understand the benefits of working with you through relevant examples, recent news about your company and industry, similar case study and answer frequently asked questions.  Make your messages to-the-point and useful to the reader.</li>
</ul>
<p>Lead nurturing campaigns must be carefully articulated to have maximum benefit.  But, with Solve’s new template and scheduled email features, you only have to perform the labor once!  When you have a campaign that works, put it on autopilot by telling Solve when to send your messages.  It’s like having your own communications assistant, typing away vigorously at the keyboard to boost your brand image and increase your sales through personal messages.</p>
<p>Show Uncle Ted the door and embrace modern business practices and systems to give your customers the attention they deserve.</p>
]]></description>
      <dc:subject>For New Visitors, For Current Customers</dc:subject>
      <dc:date>2009-09-30T18:35:06-07:00</dc:date>
    </item>

    <item>
      <title>Solve360 is Not for Everyone</title>
      <link>http://norada.com/norada/entry/solve360_is_not_for_everyone/</link>
      <guid>http://norada.com/norada/entry/solve360_is_not_for_everyone/#When:16:55:44Z</guid>
      <description><![CDATA[<p>Here are some reasons why <b>you should not buy our service</b>.</p>
<p class="leading">Your business is broken</p>
<p>No application or service can fix flawed business processes or team trust issues.  We're not going to miraculously cure your toxic work environment.  We're good, but we're not magicians.  Solutions require:</p>
<ol>
  <li>PEOPLE with the right attitude and competency,</li>
  <li>PROCESSES that get the job done and</li>
  <li>SIMPLE TECHNOLOGY that delivers expected benefits</li>
</ol><p class="leading">You will continue to try and drive your business hiding behind Outlook</p>
<p>If you think emailing spreadsheets and documents is &ldquo;sharing&rdquo; and with some synchronization magic it could work even better; good luck with that.  If a tool works for you then use it, but don’t be dogmatic.  Keep your unrelenting focus on the value you and your team create for your clients.  It’s not just about you.</p>
<p>Solve360 creates <b>network benefits</b> just like the fax machine and social networks.  Benefits are exponentially correlated to number of users and total use.  The more your company utilizes the features and potential of Solve360, the greater the impact it will have on your business.</p>
<p class="leading">You need to be sold on the benefits</p>
<p>You can't be serious? Staying on top of your clients is a no-brainer.  If you need a sales pitch to get you onside the doubt in your heart will turn Solve into the next marginalized idea.  Solve360 is at the vanguard of <b>a simpler and better way of working</b> and addresses the most important elements of your business:</p>
<ul>
  <li>It destroys bureaucracy and administration</li>
  <li>It improves transparency and coordination</li>
  <li>It facilitates relationships and connection</li>
</ul>
<p>For most companies, this means change.  If you are afraid of change then we can't help you.</p>
<p>Of course we'd love to have you as a client.  After all, we've worked pretty damn hard to make Solve360 not just a good product, but an amazing one, and we'd like a chance to work with you and your team to demonstrate that.  But it's only worthwhile if there's a chance that you will become so excited at the <b>performance improvements</b> in your organization that someday you'll <b>tell everyone who will listen</b> how well this nifty service you found is working out.</p>]]></description>
      <dc:subject>For New Visitors</dc:subject>
      <dc:date>2009-09-30T16:55:44-07:00</dc:date>
    </item>

    <item>
      <title>API Reference - Activity Reports</title>
      <link>http://norada.com/norada/entry/external_api_reference_activityreports/</link>
      <guid>http://norada.com/norada/entry/external_api_reference_activityreports/#When:20:11:17Z</guid>
      <description><![CDATA[&#123;embed="/norada/_apinav"&#125;

<p class="leading">Preamble</p>

<p>The Solve360 External API is implemented over HTTP and is <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank" title="RESTful">RESTful</a>.  Every item has its own URI and is manipulated in isolation.</p>

<p>You will normally send your Request data in <a href="http://en.wikipedia.org/wiki/XML" target="_blank" title="XML">XML</a> format, but we understand <a href="http://en.wikipedia.org/wiki/JSON" target="_blank" title="JSON">JSON</a> and <a href="http://www.w3.org/MarkUp/html-spec/html-spec_8.html" target="_blank" title="form encoded">form encoded</a> data just as well.  If you want to use a non-XML request format simply set the HTTP Content-type header to either application/json or application/x-www-form-urlencoded. conversely, we will normally send response data in XML form unless you set the HTTP Accepts header to application/json.</p>

<p>Remember, access to features and data is limited to the actual user account being used to access the API.</p><p class="leading">Interface Summary at https://secure.solve360.com</p>
<table class="apichart" cellspacing="0">
  <tr><th>URI</th><th>HTTP Methods</th></tr>
  <tr><td>/report/activities/</td><td>[GET]</td></tr>
  <tr><td>/report/nextactions/</td><td>[GET]</td></tr>
  <tr><td>/report/opportunities/</td><td>[GET]</td></tr>
  <tr><td>/report/timetracking/</td><td>[GET]</td></tr>
</table>

<p class="leading">Methods</p>

<div class="apimethod">Show</div>
<div class="apimethodaction">GET https://secure.solve360.com/{uri}</div>

<div class="apimethodsample">Request</div>
<p style="padding-left: 20px;"><a href="https://secure.solve360.com/report/timetracking/?start=2009-08-02&end=2009-08-08" target="_blank">https://secure.solve360.com/report/timetracking/?start=2009-08-02&end=2009-08-08</a></p>
<p style="padding-left: 20px;">Or</p>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">v&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;GET&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">o&nbsp;</span><span style="color: #DD0000">'result.xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;start&gt;2009-08-02&lt;/start&gt;&lt;end&gt;2009-08-08&lt;/end&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/report/timetracking/&nbsp;</span>
</span>
</code></div>
<p style="padding-left: 20px;">Or</p>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">v&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;GET&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">o&nbsp;</span><span style="color: #DD0000">'result.xml'&nbsp;'https://secure.solve360.com/report/timetracking/?start=2009-08-02&amp;end=2009-08-08'&nbsp;</span>
</span>
</code></div>
<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">timerecords</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">timerecord</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">137875</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">type</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">15</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">type</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">itemid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">137302</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">itemid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">itemtype</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">itemtype</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">tasklistid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">137853</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">tasklistid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">taskid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">137854</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">taskid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">owner</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">137201</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">owner</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">08</span><span style="color: #007700">-</span><span style="color: #0000BB">18T21</span><span style="color: #007700">:</span><span style="color: #0000BB">31</span><span style="color: #007700">:</span><span style="color: #0000BB">18</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">billable</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">billable</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">person</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">137201</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">person</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">hours</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2.5</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">hours</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">date</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">08</span><span style="color: #007700">-</span><span style="color: #0000BB">02T00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">date</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">invoiced</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">42263</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">invoiced</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">details</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Integrated&nbsp;Solve360&nbsp;with&nbsp;billing&nbsp;system</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">details</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">itemname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">John&nbsp;Smith</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">itemname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">tasklistname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">tasklist</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">tasklistname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">taskname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">one&nbsp;test&nbsp;task</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">taskname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">timerecord</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">timerecords</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>

<div class="apiparams">
  <p>Parameters</p>
  <div>
    <table class="apichart" cellspacing="0">
      <tr><th width="110">URI</th><th width="170">Description</th><th>Accepted values</th></tr>
      <tr><td>/report/activities</td><td>List activities that have been created, modified (or when specifying only tasks, completed), matching many different critera.</td><td><span class="multiplefield">types (integer [3, 4, 14, 32, 73])</span><br>last (string [created, updated, completed])<br><span class="multiplefield">users (integer [group id, user id])</span><br>start (date)<br>end (date)<br><span class="multiplefield">itemtypes (integer [1, 2, 40])</span><br><span class="multiplefield">categories (integer)</span></td></tr>
      <tr><td>/report/nextactions</td><td>List open tasks, events and milestones.</td><td>filter (integer [group id, user id])</td></tr>
      <tr><td>/report/opportunities</td><td>Lists opportunities by user and status criteria.</td><td>filter (integer [group id, user id])<br>status (string [discussion, pending, won, lost, on-hold])</td></tr>
      <tr><td>/report/timetracking</td><td>Lists time records matching a specific date range and status.</td><td>start (date)<br>end (date)<br>filter (string, [invoiced, billable, non-billable]</td></tr>
    </table>
    <p>May include multiple values separated by comma</p>
  </div>
  <div style="margin: 10px 20px 10px 50px;">
    <div class="multiplefieldlabel"></div> <span class="multiplefield">Multiple values supported separated by comma</span>
  </div>
</div>]]></description>
      <dc:subject />
      <dc:date>2009-08-18T20:11:17-07:00</dc:date>
    </item>

    <item>
      <title>API Reference - Examples</title>
      <link>http://norada.com/norada/entry/external_api_reference_examples/</link>
      <guid>http://norada.com/norada/entry/external_api_reference_examples/#When:14:08:58Z</guid>
      <description><![CDATA[<p>&#123;embed=&#8220;/norada/_apinav&#8221;&#125;</p><p class="leading">Example using XML, JSON, Form Encoded</p>

<p>Every kind of item can be created, updated or destroyed with three supported Content-Type formats: XML, JSON and Form-Encoded.&nbsp; The following example of creating web site activity for a contact demonstrates each format.

<p>XML</p><p>
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?xml&nbsp;version</span><span style="color: #007700">=</span><span style="color: #DD0000">"1.0"&nbsp;</span><span style="color: #0000BB">encoding</span><span style="color: #007700">=</span><span style="color: #DD0000">"utf-8"</span><span style="color: #0000BB">?&gt;<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">request</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">parent</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;parentId&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">parent</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">data</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">caption</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">website&nbsp;created&nbsp;from&nbsp;api</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">caption</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">url</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//test.site.com&lt;/url&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">data</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">request</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div><p></p>

<p>JSON:</p><p>
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;</span><span style="color: #DD0000">"parent"</span><span style="color: #007700">:</span><span style="color: #DD0000">"&#123;parentId&#125;"</span><span style="color: #007700">,</span><span style="color: #DD0000">"data"</span><span style="color: #007700">:</span><span style="color: #0000BB">&#123;</span><span style="color: #DD0000">"caption"</span><span style="color: #007700">:</span><span style="color: #DD0000">"website&nbsp;created&nbsp;from&nbsp;api"</span><span style="color: #007700">,</span><span style="color: #DD0000">"url"</span><span style="color: #007700">:</span><span style="color: #DD0000">"http:\/\/test.site.com"</span><span style="color: #0000BB">&#125;&#125;&nbsp;</span>
</span>
</code></div><p></p>

<p>Form-encoded (provided by html form):</p><p>
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">parent</span><span style="color: #007700">=</span><span style="color: #0000BB">&#123;parentId&#125;</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">data</span><span style="color: #007700">%</span><span style="color: #0000BB">5Bcaption</span><span style="color: #007700">%</span><span style="color: #0000BB">5D</span><span style="color: #007700">=</span><span style="color: #0000BB">website</span><span style="color: #007700">+</span><span style="color: #0000BB">created</span><span style="color: #007700">+</span><span style="color: #0000BB">from</span><span style="color: #007700">+</span><span style="color: #0000BB">api</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">data</span><span style="color: #007700">%</span><span style="color: #0000BB">5Burl</span><span style="color: #007700">%</span><span style="color: #0000BB">5D</span><span style="color: #007700">=</span><span style="color: #0000BB">http</span><span style="color: #007700">%</span><span style="color: #0000BB">3A</span><span style="color: #007700">%</span><span style="color: #0000BB">2F</span><span style="color: #007700">%</span><span style="color: #0000BB">2Ftest</span><span style="color: #007700">.</span><span style="color: #0000BB">site</span><span style="color: #007700">.</span><span style="color: #0000BB">com&nbsp;</span>
</span>
</code></div><p></p>

<p class="leading">Example of Batch Processing Activities</p>

<p>This example demonstrates filtering Project Blogs by category tags then adding six new Section activities for each one if they don&#8217;t already exist.&nbsp; Most of the example code is for handling communication with the server; the actual API logic is at the end and is fairly small.</p><p> </p>

<p></p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;&nbsp;&nbsp;ini_set</span><span style="color: #007700">(</span><span style="color: #DD0000">'display_errors'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'1'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">error_reporting</span><span style="color: #007700">(</span><span style="color: #0000BB">E_ALL</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'USER'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'TOKEN'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'&#123;userApiToken&#125;'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'HOST'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'https://secure.solve360.com'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'TIMEOUT'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">30</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'SECTION_TYPE_ID'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">57</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Helper&nbsp;functions<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;/**<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Helper&nbsp;function&nbsp;to&nbsp;convert&nbsp;our&nbsp;data&nbsp;array&nbsp;into&nbsp;xml&nbsp;format<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$data<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;SimpleXmlElement&nbsp;$xml<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;XML<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">arrayToXml</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">simplexml_load_string</span><span style="color: #007700">(</span><span style="color: #DD0000">'&lt;?xml&nbsp;version="1.0"&nbsp;encoding="utf-8"?&gt;&lt;data&nbsp;/&gt;'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">foreach(</span><span style="color: #0000BB">$data&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$key&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$value</span><span style="color: #007700">))&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$node&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">$key</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">arrayToXml</span><span style="color: #007700">(</span><span style="color: #0000BB">$value</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$node</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">addChild</span><span style="color: #007700">(</span><span style="color: #0000BB">$key</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$value</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">asXML</span><span style="color: #007700">();<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/**<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Function&nbsp;that&nbsp;makes&nbsp;request&nbsp;to&nbsp;the&nbsp;api&nbsp;and&nbsp;return&nbsp;xml&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$uri<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;string&nbsp;$restVerb<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@param&nbsp;array&nbsp;$data<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;SimpleXmlElement<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">function&nbsp;</span><span style="color: #0000BB">getXmlResponse</span><span style="color: #007700">(</span><span style="color: #0000BB">$uri</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$restVerb</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$data&nbsp;</span><span style="color: #007700">=&nbsp;array())<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Connect&nbsp;to&nbsp;the&nbsp;host<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$errno&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$errstr&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_socket_client</span><span style="color: #007700">(</span><span style="color: #DD0000">"tcp://"</span><span style="color: #007700">.</span><span style="color: #0000BB">HOST</span><span style="color: #007700">.</span><span style="color: #DD0000">":80"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errno</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errstr</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TIMEOUT</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">die(</span><span style="color: #DD0000">"cannot&nbsp;connect&nbsp;to&nbsp;host&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">HOST</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(empty(</span><span style="color: #0000BB">$data</span><span style="color: #007700">))&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">arrayToXml</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Prepare&nbsp;request&nbsp;body<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"$restVerb&nbsp;$uri&nbsp;HTTP/1.1\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Host:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">HOST</span><span style="color: #007700">.</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Authorization&nbsp;header<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Authorization:&nbsp;Basic&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">base64_encode</span><span style="color: #007700">(</span><span style="color: #0000BB">USER</span><span style="color: #007700">.</span><span style="color: #DD0000">":"</span><span style="color: #007700">.</span><span style="color: #0000BB">TOKEN</span><span style="color: #007700">).</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;We&nbsp;inform&nbsp;the&nbsp;server&nbsp;that&nbsp;we're&nbsp;sending&nbsp;data&nbsp;in&nbsp;xml&nbsp;format<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-Type:&nbsp;application/xml\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;We&nbsp;inform&nbsp;the&nbsp;server&nbsp;theat&nbsp;we&nbsp;are&nbsp;waiting&nbsp;for&nbsp;xml&nbsp;in&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Accept:&nbsp;application/xml\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-Length:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">).</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Connection:&nbsp;close\r\n\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /></span><span style="color: #FF8000">//echo&nbsp;$request;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Send&nbsp;request&nbsp;to&nbsp;the&nbsp;host<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fwrite</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">);&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">stream_set_timeout</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TIMEOUT</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$info&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_get_meta_data</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(!</span><span style="color: #0000BB">feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;!</span><span style="color: #0000BB">$info&#91;</span><span style="color: #DD0000">'timed_out'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$newLine&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_get_line</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$newLine</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"\r\n&nbsp;"</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">break;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$result&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">$newLine</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$info&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_get_meta_data</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$headers&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">0</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"\r\n\r\n"</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$body&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">substr</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;(</span><span style="color: #0000BB">strpos</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"\r\n\r\n"</span><span style="color: #007700">)&nbsp;+&nbsp;</span><span style="color: #0000BB">4</span><span style="color: #007700">));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$headers&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$headers</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Get&nbsp;xml&nbsp;from&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$matches&nbsp;</span><span style="color: #007700">=&nbsp;array();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">preg_match</span><span style="color: #007700">(</span><span style="color: #DD0000">"/(&lt;.*&gt;)/s"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$body</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$matches</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$matches&#91;1&#93;</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">$xml</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">simplexml_load_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$xml</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Something&nbsp;went&nbsp;wrong&nbsp;and&nbsp;we&nbsp;haven't&nbsp;got&nbsp;xml&nbsp;in&nbsp;the&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">die(</span><span style="color: #DD0000">'System&nbsp;error'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">return&nbsp;</span><span style="color: #0000BB">$xml</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Sections&nbsp;example&nbsp;main&nbsp;code<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;We&nbsp;need&nbsp;to&nbsp;know&nbsp;how&nbsp;many&nbsp;blogs&nbsp;we&nbsp;have<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$limit&nbsp;</span><span style="color: #007700">=&nbsp;(int)&nbsp;</span><span style="color: #0000BB">getXmlResponse</span><span style="color: #007700">(</span><span style="color: #DD0000">'/projectblogs/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'GET'</span><span style="color: #007700">,&nbsp;array(</span><span style="color: #DD0000">'limit'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">))-&gt;</span><span style="color: #0000BB">count</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Let's&nbsp;define&nbsp;categories&nbsp;ids&nbsp;for&nbsp;search<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$categoriesIds&nbsp;</span><span style="color: #007700">=&nbsp;array(</span><span style="color: #0000BB">&#123;categoryId&#125;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#123;categoryId&#125;</span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;NOTE:&nbsp;replace&nbsp;categories&nbsp;ids&nbsp;with&nbsp;yours!<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Compose&nbsp;search&nbsp;options<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$searchOptions&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'limit'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$limit</span><span style="color: #007700">,&nbsp;</span><span style="color: #FF8000">//&nbsp;we&nbsp;want&nbsp;to&nbsp;get&nbsp;all&nbsp;blogs&nbsp;that&nbsp;are&nbsp;needed&nbsp;at&nbsp;once<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'filterMode'&nbsp;&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'category'</span><span style="color: #007700">,&nbsp;</span><span style="color: #FF8000">//&nbsp;we&nbsp;need&nbsp;data&nbsp;filtered&nbsp;by&nbsp;category<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'filterValue'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">','</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$categoriesIds</span><span style="color: #007700">),&nbsp;</span><span style="color: #FF8000">//&nbsp;cagegories&nbsp;ids&nbsp;as&nbsp;value&nbsp;for&nbsp;filter<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'special'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">'AND'</span><span style="color: #007700">,&nbsp;</span><span style="color: #FF8000">//&nbsp;we&nbsp;need&nbsp;both&nbsp;categories&nbsp;to&nbsp;be&nbsp;set&nbsp;for&nbsp;a&nbsp;blog<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Get&nbsp;xml&nbsp;with&nbsp;search&nbsp;results<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$resultXml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getXmlResponse</span><span style="color: #007700">(</span><span style="color: #DD0000">'/projectblogs/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'GET'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$searchOptions</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Quite&nbsp;if&nbsp;there&nbsp;was&nbsp;an&nbsp;error<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">$resultXml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">status&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'success'</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail</span><span style="color: #007700">(</span><span style="color: #0000BB">USER</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Error&nbsp;while&nbsp;working&nbsp;with&nbsp;Solve360'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Error:&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$resultXml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errors</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">asXml</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die(</span><span style="color: #DD0000">'Error&nbsp;while&nbsp;working&nbsp;with&nbsp;Solve360'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$resultXml</span><span style="color: #007700">)&nbsp;&gt;&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;If&nbsp;there&nbsp;are&nbsp;some&nbsp;blogs&nbsp;for&nbsp;our&nbsp;search&nbsp;conditions<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Let's&nbsp;select&nbsp;blog&nbsp;ids&nbsp;for&nbsp;adding&nbsp;activities&nbsp;sections<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$blogsIds&nbsp;</span><span style="color: #007700">=&nbsp;array();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(</span><span style="color: #0000BB">$resultXml&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$projectBlog</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$projectBlog</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">id</span><span style="color: #007700">))&nbsp;</span><span style="color: #0000BB">&#123;&nbsp;</span><span style="color: #FF8000">//&nbsp;if&nbsp;it&nbsp;is&nbsp;not&nbsp;count&nbsp;or&nbsp;status&nbsp;field<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$blogsIds&#91;&#93;&nbsp;</span><span style="color: #007700">=&nbsp;(int)&nbsp;</span><span style="color: #0000BB">$projectBlog</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">id</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Prepare&nbsp;sections&nbsp;titles<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$sections&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'Calendar'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'Upcoming'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'Active'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'For&nbsp;Managment&nbsp;/&nbsp;Client&nbsp;Liason'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'For&nbsp;Booking&nbsp;Agents'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'Archive'<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;To&nbsp;save&nbsp;the&nbsp;order,&nbsp;reverse&nbsp;the&nbsp;array<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$sections&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">array_reverse</span><span style="color: #007700">(</span><span style="color: #0000BB">$sections</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;(</span><span style="color: #0000BB">$blogsIds&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$blogId</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$sectionsToAdd&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$sections</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;We&nbsp;should&nbsp;check&nbsp;if&nbsp;the&nbsp;seaction&nbsp;already&nbsp;exists<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$blog&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">getXmlResponse</span><span style="color: #007700">(</span><span style="color: #DD0000">'/projectblogs/'&nbsp;</span><span style="color: #007700">.&nbsp;(string)&nbsp;</span><span style="color: #0000BB">$blogId</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'GET'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;foreach&nbsp;((array)&nbsp;</span><span style="color: #0000BB">$blog</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">activities&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$blogActivity</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;((int)&nbsp;</span><span style="color: #0000BB">$blogActivity</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">typeid&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">SECTION_TYPE_ID</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">foreach&nbsp;(</span><span style="color: #0000BB">$sectionsToAdd&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$sectionKey&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$sectionTitle</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;((string)&nbsp;</span><span style="color: #0000BB">$blogActivity</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fields</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">title&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">$sectionTitle</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">unset(</span><span style="color: #0000BB">$sectionsToAdd&#91;$sectionKey&#93;</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Add&nbsp;activities&nbsp;to&nbsp;the&nbsp;blog<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">foreach&nbsp;(</span><span style="color: #0000BB">$sectionsToAdd&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$sectionTitle</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">getXmlResponse</span><span style="color: #007700">(</span><span style="color: #DD0000">'/projectblogs/separator/'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'POST'</span><span style="color: #007700">,&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'parent'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$blogId</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'data'&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&gt;&nbsp;array(</span><span style="color: #DD0000">'title'&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$sectionTitle</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">'success'</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div><p></p>

<p>
</p>]]></description>
      <dc:subject />
      <dc:date>2009-06-24T14:08:58-07:00</dc:date>
    </item>

    <item>
      <title>API Reference - Project Blogs</title>
      <link>http://norada.com/norada/entry/external_api_reference_projectblogs/</link>
      <guid>http://norada.com/norada/entry/external_api_reference_projectblogs/#When:14:03:50Z</guid>
      <description><![CDATA[<p>&#123;embed=&#8220;/norada/_apinav&#8221;&#125;</p>

<p class="leading">Preamble</p>

<p>The Solve360 External API is implemented over HTTP and is <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank" title="RESTful">RESTful</a>.&nbsp; Every item has its own URI and is manipulated in isolation.</p>

<p>You will normally send your Request data in <a href="http://en.wikipedia.org/wiki/XML" target="_blank" title="XML">XML</a> format, but we understand <a href="http://en.wikipedia.org/wiki/JSON" target="_blank" title="JSON">JSON</a> and <a href="http://www.w3.org/MarkUp/html-spec/html-spec_8.html" target="_blank" title="form encoded">form encoded</a> data just as well.&nbsp; If you want to use a non-XML request format simply set the HTTP Content-type header to either application/json or application/x-www-form-urlencoded. conversely, we will normally send response data in XML form unless you set the HTTP Accepts header to application/json.</p>

<p>Remember, access to features and data is limited to the actual user account being used to access the API.</p><p class="leading">Reference</p>

<p>The API methods and parameters are the same for Project Blogs as they are for Contacts.&nbsp; While this API documentation is in a preliminary state please refer to the Contacts page and simply replace the segment name /contacts/... with /projectblogs/...</p>]]></description>
      <dc:subject />
      <dc:date>2009-06-24T14:03:50-07:00</dc:date>
    </item>

    <item>
      <title>API Reference - Companies</title>
      <link>http://norada.com/norada/entry/external_api_reference_companies/</link>
      <guid>http://norada.com/norada/entry/external_api_reference_companies/#When:14:02:17Z</guid>
      <description><![CDATA[<p>&#123;embed=&#8220;/norada/_apinav&#8221;&#125;</p>

<p class="leading">Preamble</p>

<p>The Solve360 External API is implemented over HTTP and is <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank" title="RESTful">RESTful</a>.&nbsp; Every item has its own URI and is manipulated in isolation.</p>

<p>You will normally send your Request data in <a href="http://en.wikipedia.org/wiki/XML" target="_blank" title="XML">XML</a> format, but we understand <a href="http://en.wikipedia.org/wiki/JSON" target="_blank" title="JSON">JSON</a> and <a href="http://www.w3.org/MarkUp/html-spec/html-spec_8.html" target="_blank" title="form encoded">form encoded</a> data just as well.&nbsp; If you want to use a non-XML request format simply set the HTTP Content-type header to either application/json or application/x-www-form-urlencoded. conversely, we will normally send response data in XML form unless you set the HTTP Accepts header to application/json.</p>

<p>Remember, access to features and data is limited to the actual user account being used to access the API.</p><p class="leading">Reference</p>

<p>The API methods and parameters are the same for Companies as they are for Contacts.&nbsp; While this API documentation is in a preliminary state please refer to the Contacts page and simply replace the segment name /contacts/... with /companies/...</p>]]></description>
      <dc:subject />
      <dc:date>2009-06-24T14:02:17-07:00</dc:date>
    </item>

    <item>
      <title>API Reference - Contacts</title>
      <link>http://norada.com/norada/entry/external_api_reference_contacts/</link>
      <guid>http://norada.com/norada/entry/external_api_reference_contacts/#When:13:59:54Z</guid>
      <description><![CDATA[&#123;embed="/norada/_apinav"&#125;

&#123;embed="/norada/_apisummary"&#125;<p class="leading">Interface Summary at https://secure.solve360.com</p>
<table class="apichart" cellspacing="0">
  <tr><th>URI</th><th>HTTP Methods</th>
  <tr><td>/contacts/</td><td>[GET, POST]</td>
  <tr><td>/contacts/{contactId}/</td><td>[GET, PUT, DELETE]</td>
  <tr><td>/contacts/categories/</td><td>[POST, GET]</td>
  <tr><td>/contacts/{activitySegmentName}/</td><td>[POST]</td>
  <tr><td>/contacts/{activitySegmentName}/{activityId}/</td><td>[PUT, DELETE]</td>
</table>

<p class="leading">Methods</p>


<div class="apimethod">Create</div>
<div class="apimethodaction">POST https://secure.solve360.com/contacts</div>
<div class="apimethoddesc">Creates a new contact.</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;POST&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;firstname&gt;Aaron&lt;/firstname&gt;&lt;lastname&gt;Baileys&lt;/lastname&gt;&lt;categories&gt;&lt;add&gt;&lt;category&gt;315890&lt;/category&gt;&lt;/add&gt;&lt;/categories&gt;&lt;ownership&gt;83421&lt;/ownership&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts&nbsp;</span>
</span>
</code></div>
<div class="apiparams">
  <p>Parameters</p>
  <div>
    <ul>
      <li>there are no required fields</li>
      <li>ownership will be the id of the current user if not otherwise provided, to share the item set &lt;ownership&gt;{groupId}&lt;/ownership&gt;</li>
      <li>to add the item to one or more category tags use &lt;categories&gt;&lt;add&gt;&lt;category&gt;{categoryTagId}&lt;/category&gt;...&lt;/add&gt;&lt;/categories&gt;</li>
      <li>to link the item to one or more contacts, companies or project blogs use &lt;relateditems&gt;&lt;add&gt;&lt;relatedto&gt;&lt;id&gt;{relatedtoid}&lt;/id&gt;&lt;/relatedto&gt;...&lt;/add&gt;&lt;/relateditems&gt;</li>
    </ul>
  </div>
</div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">Update</div>
<div class="apimethodaction">PUT https://secure.solve360.com/contacts/{contactId}/</div>
<div class="apimethoddesc">Updates an existing contact.</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;PUT&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;businessemail&gt;support@workplate.com&lt;/businessemail&gt;&lt;categories&gt;&lt;add&gt;&lt;category&gt;53966&lt;/category&gt;&lt;/add&gt;&lt;/categories&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/31507&nbsp;</span>
</span>
</code></div>
<div class="apiparams">
  <p>Parameters</p>
  <div>
    <ul>
      <li>there are no required fields</li>
      <li>ownership will be the id of the current user if not otherwise provided, to share the item set &lt;ownership&gt;{groupId}&lt;/ownership&gt;</li>
      <li>to add or remove the item to one or more category tags use &lt;categories&gt;&lt;add&gt;&lt;category&gt;{categoryTagId}&lt;/category&gt; ...&lt;/add&gt;&lt;remove&gt;&lt;category&gt;{categoryTagId}&lt;/category&gt;...&lt;/remove&gt;&lt;/categories&gt;</li>
      <li>to link or unlink the item to one or more contacts, companies or project blogs use &lt;relateditems&gt;&lt;add&gt;&lt;relatedto&gt; &lt;id&gt;{relatedtoid}&lt;/id&gt;&lt;/relatedto&gt;...&lt;/add&gt;&lt;remove&gt;&lt;relatedto&gt;&lt;id&gt;{relatedtoid}&lt;/id&gt;&lt;/relatedto&gt;...&lt;/remove&gt;&lt;/relateditems&gt;</li>
    </ul>
  </div>
</div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">Show</div>
<div class="apimethodaction">GET https://secure.solve360.com/contacts/{contactId}/</div>
<div class="apimethoddesc">Shows all data related to an existing contact including companies, related-to, category tags and all activities (excluding email messages).</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;GET&nbsp;https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/31507&nbsp;</span>
</span>
</code></div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">item</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">31507</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron&nbsp;Baileys</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">20T14</span><span style="color: #007700">:</span><span style="color: #0000BB">49</span><span style="color: #007700">:</span><span style="color: #0000BB">39</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">20T15</span><span style="color: #007700">:</span><span style="color: #0000BB">13</span><span style="color: #007700">:</span><span style="color: #0000BB">07</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">20T15</span><span style="color: #007700">:</span><span style="color: #0000BB">12</span><span style="color: #007700">:</span><span style="color: #0000BB">09</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">ownership</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">12830</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">ownership</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">flagged</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">flagged</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">fields</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessphonedirect</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">382</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">853</span><span style="color: #007700">-</span><span style="color: #0000BB">8544</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessphonedirect</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">homephone</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">333</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">934</span><span style="color: #007700">-</span><span style="color: #0000BB">9392</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">homephone</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">cellularphone</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">333</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">828</span><span style="color: #007700">-</span><span style="color: #0000BB">4633</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">cellularphone</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessfax</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">111</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">222</span><span style="color: #007700">-</span><span style="color: #0000BB">3333</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessfax</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">firstname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">firstname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">custom329972</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">7363273</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">custom329972</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">assignedto</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">53936</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">assignedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessaddress</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1710</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">840&nbsp;7th&nbsp;Ave</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">SW<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calgary</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Alberta</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessaddress</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessphonemain</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">580</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">648</span><span style="color: #007700">-</span><span style="color: #0000BB">9094</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessphonemain</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">lastname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Baileys</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">lastname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">custom18432</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Farm</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">custom18432</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">jobtitle</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Maintenance&nbsp;Mechanic</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">jobtitle</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">background</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Referred&nbsp;by&nbsp;David</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">hes&nbsp;built&nbsp;three&nbsp;other&nbsp;homes&nbsp;in&nbsp;the&nbsp;valley</span><span style="color: #007700">.&lt;</span><span style="color: #0000BB">br</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">background</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessemail</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">support</span><span style="color: #007700">@</span><span style="color: #0000BB">workplate</span><span style="color: #007700">.</span><span style="color: #0000BB">com</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessemail</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">website</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">www</span><span style="color: #007700">.</span><span style="color: #0000BB">clientsite</span><span style="color: #007700">.</span><span style="color: #0000BB">com</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">website</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">fields</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">item</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">activities</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id603944</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">level</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">level</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">cn</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Task&nbsp;</span><span style="color: #007700">List&nbsp;</span><span style="color: #0000BB">Title</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">cn</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">20T14</span><span style="color: #007700">:</span><span style="color: #0000BB">59</span><span style="color: #007700">:</span><span style="color: #0000BB">18</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">20T15</span><span style="color: #007700">:</span><span style="color: #0000BB">32</span><span style="color: #007700">:</span><span style="color: #0000BB">37</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">20T15</span><span style="color: #007700">:</span><span style="color: #0000BB">12</span><span style="color: #007700">:</span><span style="color: #0000BB">09</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">flagged</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">22</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">parent</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">603938</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">parent</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">creatorid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">28230</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">creatorid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">creatorname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Steve&nbsp;Ireland</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">creatorname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">position</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">position</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">fields</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">completed</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">0</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">completed</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">description</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">task&nbsp;</span><span style="color: #007700">list&nbsp;</span><span style="color: #0000BB">description</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">description</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Task&nbsp;</span><span style="color: #007700">List&nbsp;</span><span style="color: #0000BB">Title</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">fields</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">modificatorid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">28230</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">modificatorid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">modificatorname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Gerald&nbsp;Black</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">modificatorname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">603944</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">id603944</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">activities</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">categories</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">568907</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;New&nbsp;</span><span style="color: #0000BB">Prospect</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">315890</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Qualified&nbsp;Prospect</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">categories</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">relateditems</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">45531</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Brenda&nbsp;Arnett</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Spouse</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">31358</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">40</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Systectro</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Employee</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">31477</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">40</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Inconactron&nbsp;Technology</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2001</span><span style="color: #007700">-</span><span style="color: #0000BB">2006</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">31404</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">40</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Exactratems&nbsp;Consulting</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Board&nbsp;member</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">46335</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">typeid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Steve&nbsp;Austin</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">brother</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">note</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">relatedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">relateditems</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>

<div class="apimethod">Destroy</div>
<div class="apimethodaction">DELETE https://secure.solve360.com/contacts/{contactId}/</div>
<div class="apimethoddesc">Deletes a contact.</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;DELETE&nbsp;https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/31507&nbsp;</span>
</span>
</code></div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">List</div>
<div class="apimethodaction">GET https://secure.solve360.com/contacts</div>
<div class="apimethoddesc">Returns a collection of contacts that match the requested criteria.</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">v&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;GET&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">o&nbsp;</span><span style="color: #DD0000">'result.xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;layout&gt;1&lt;/layout&gt;&lt;searchmode&gt;Cany&lt;/searchmode&gt;&lt;searchvalue&gt;aaron&lt;/searchvalue&gt;&lt;filtermode&gt;&lt;/filtermode&gt;&lt;filtervalue&gt;&lt;/filtervalue&gt;&lt;special&gt;&lt;/special&gt;&lt;limit&gt;100&lt;/limit&gt;&lt;start&gt;&lt;/start&gt;&lt;sortfield&gt;&lt;/sortfield&gt;&lt;sortdir&gt;&lt;/sortdir&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts&nbsp;</span>
</span>
</code></div>
<div class="apiparams">
  <p>Parameters</p>
  <div>
    <table class="apichart" cellspacing="0">
      <tr><th>Attribute</th><th>Description</th><th>Accepted values</th></tr>
      <tr><td>layout</td><td>Output summary fields or all fields</td><td>[0,1]</td></tr>
      <tr><td>searchmode</td><td>Sub filter search context</td><td>[Sany, Cany, Canyitem, Sanyitem, Canyjournal, Sanyjournal]<br/>S = field starts with, C = field contains</td></tr>
      <tr><td>searchvalue</td><td></td><td>{string}</td></tr>
      <tr><td>filtermode</td><td>Primary search context</td><td>[flagged, assigned, nocategory, viewed, created, updated, notviewed, notupdated, duetoday, duesoon, tasksoverdue, owner, category]</td></tr>
      <tr><td>filtervalue</td><td></td><td>{string}</td></tr>
      <tr><td>special</td><td>Result must match any specified categories or all specified categories</td><td>[AND, OR]</td></tr>
      <tr><td>limit</td><td>How many contacts to display per page</td><td>{integer}</td></tr>
      <tr><td>start</td><td>Page to start from</td><td>{integer}</td></tr>
      <tr><td>sortfield</td><td>Which field is used for sorting</td><td>[name, created, flagged, update_time]</td></tr>
      <tr><td>sortdir</td><td>Sort direction</td><td>[ASC, DESC]</td></tr>
    </table>
  </div>
</div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id31507</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">31507</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron&nbsp;Baileys</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">parentid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">84265</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">parentid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">flagged</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">flagged</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessphonedirect</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">382</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">853</span><span style="color: #007700">-</span><span style="color: #0000BB">8544</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessphonedirect</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessfax</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">111</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">222</span><span style="color: #007700">-</span><span style="color: #0000BB">3333</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessfax</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">cellularphone</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">333</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">828</span><span style="color: #007700">-</span><span style="color: #0000BB">4633</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">cellularphone</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">homephone</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">333</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">934</span><span style="color: #007700">-</span><span style="color: #0000BB">9392</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">homephone</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessphonemain</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">580</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">648</span><span style="color: #007700">-</span><span style="color: #0000BB">9094</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessphonemain</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessaddress</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1710</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">840&nbsp;7th&nbsp;Ave</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">SW<br />&nbsp;&nbsp;&nbsp;&nbsp;Calgary</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Alberta</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessaddress</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">assignedto</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">53936</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">assignedto</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">custom329972</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">7363273</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">custom329972</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">firstname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">firstname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">lastname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Baileys</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">lastname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">custom18432</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Farm</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">custom18432</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">jobtitle</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Maintenance&nbsp;Mechanic</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">jobtitle</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">background</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Referred&nbsp;by&nbsp;David</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">hes&nbsp;built&nbsp;three&nbsp;other&nbsp;homes&nbsp;in&nbsp;the&nbsp;valley</span><span style="color: #007700">.&lt;</span><span style="color: #0000BB">br</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">background</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessemail</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">support</span><span style="color: #007700">@</span><span style="color: #0000BB">workcompedge</span><span style="color: #007700">.</span><span style="color: #0000BB">com</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessemail</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">website</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">www</span><span style="color: #007700">.</span><span style="color: #0000BB">clientsite</span><span style="color: #007700">.</span><span style="color: #0000BB">com</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">website</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">company</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Exactratems&nbsp;Consulting</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Inconactron&nbsp;Technology</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Systectro<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">company</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2008</span><span style="color: #007700">-</span><span style="color: #0000BB">08</span><span style="color: #007700">-</span><span style="color: #0000BB">04T00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">10</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">23T00</span><span style="color: #007700">:</span><span style="color: #0000BB">50</span><span style="color: #007700">:</span><span style="color: #0000BB">35</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">06</span><span style="color: #007700">-</span><span style="color: #0000BB">18T21</span><span style="color: #007700">:</span><span style="color: #0000BB">53</span><span style="color: #007700">:</span><span style="color: #0000BB">24</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">id31507</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id34943</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">34943</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron&nbsp;Grant</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">parentid</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">28227</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">parentid</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">flagged</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">firstname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">firstname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessemail</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Aaron</span><span style="color: #007700">.</span><span style="color: #0000BB">E</span><span style="color: #007700">.</span><span style="color: #0000BB">Grant</span><span style="color: #007700">@</span><span style="color: #0000BB">spambob</span><span style="color: #007700">.</span><span style="color: #0000BB">com</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessemail</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">jobtitle</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Design&nbsp;Drafter&nbsp;Cad</span><span style="color: #007700">/</span><span style="color: #0000BB">Cam</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">jobtitle</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">lastname</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Grant</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">lastname</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessaddress</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">4437</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Grand&nbsp;Avenue<br />&nbsp;&nbsp;&nbsp;&nbsp;Winter&nbsp;Park&nbsp;FL&nbsp;32789<br />&nbsp;&nbsp;&nbsp;&nbsp;US</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessaddress</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">businessphonemain</span><span style="color: #007700">&gt;(</span><span style="color: #0000BB">407</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">713</span><span style="color: #007700">-</span><span style="color: #0000BB">0145</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">businessphonemain</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">company</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Acle</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">company</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2008</span><span style="color: #007700">-</span><span style="color: #0000BB">08</span><span style="color: #007700">-</span><span style="color: #0000BB">04T00</span><span style="color: #007700">:</span><span style="color: #0000BB">03</span><span style="color: #007700">:</span><span style="color: #0000BB">05</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">01</span><span style="color: #007700">-</span><span style="color: #0000BB">19T15</span><span style="color: #007700">:</span><span style="color: #0000BB">49</span><span style="color: #007700">:</span><span style="color: #0000BB">29</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">viewed</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2008</span><span style="color: #007700">-</span><span style="color: #0000BB">08</span><span style="color: #007700">-</span><span style="color: #0000BB">31T18</span><span style="color: #007700">:</span><span style="color: #0000BB">41</span><span style="color: #007700">:</span><span style="color: #0000BB">42</span><span style="color: #007700">+</span><span style="color: #0000BB">00</span><span style="color: #007700">:</span><span style="color: #0000BB">00</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">updated</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">id34943</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">count</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">21</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">count</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">Create Category Tags</div>
<div class="apimethodaction">POST https://secure.solve360.com/contacts/categories/</div>
<div class="apimethoddesc">Creates a category tag</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;POST&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;name&gt;A&nbsp;New&nbsp;Category&lt;/name&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/categories&nbsp;</span>
</span>
</code></div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">136957</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>

<div class="apimethod">List Category Tags</div>
<div class="apimethodaction">GET https://secure.solve360.com/contacts/categories/</div>
<div class="apimethoddesc">Returns a collection of available contact tags</div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">categories</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">315890</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">1.&nbsp;Lead</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">568907</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2.&nbsp;Prospect</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">355922</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">3.&nbsp;High&nbsp;Value&nbsp;Prospect</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">471194</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">4.&nbsp;Client</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">name</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">category</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">categories</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">Create Activity</div>
<div class="apimethodaction">POST https://secure.solve360.com/contacts/{activitySegmentName}/</div>
<div class="apimethoddesc">Creates a new activity linked to a parent item.  Refer to the &ldquo;Supported Activity Hierarchies&rdquo; chart below to see what each activity type can be linked to.</div>

<div class="apimethodsample">Request (e.g. create a task within tasklist having id 353687)</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;POST&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;parent&gt;353687&lt;/parent&gt;&lt;data&gt;&lt;title&gt;Inspect&nbsp;Property&lt;/title&gt;&lt;duedate&gt;2009-10-11&lt;/duedate&gt;&lt;priority&gt;3&lt;/priority&gt;&lt;/data&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/task&nbsp;</span>
</span>
</code></div>
<div class="apiparams">
  <p>Parameters</p>
  <div>
    <ul>
      <li>&lt;parent&gt;{parentId}&lt;/parent&gt; is the parent to which we attaching the activity to and is required</li>
    </ul>
  </div>
  <div style="margin: 10px 20px 10px 50px;">
    <p style="margin-left: 0;">Activity Definitions</p>
    <table class="apichart" cellspacing="0">
      <tr><th style="width: 90px;">Activity</th><th style="width: 90px;">Segment Name</th><th>Fields</th></tr>
      <tr><td>Call</td><td>call</td><td>details (text)<br/><span class="requiredfield">dateoccured</span> (datetime)<br/>duration (integer, minutes)</td></tr>
      <tr><td>Comment</td><td>comment</td><td><span class="requiredfield">posttext</span> (text)</td></tr>
     <tr><td>Event</td><td>event</td><td>title (text)<br/>details (text)<br/>completed (integer, [0, 1])<br/><span class="requiredfield">timestart</span> (date or datetime)<br/><span class="requiredfield">timeend</span> (date or datetime)<br/>location (text)<br/><span class="requiredfield">eventtype</span> (text, [keep, remove])<br/><span class="requiredfield">priority</span> (ingeter, [0-6])<br/>noticenow (integer, [0, 1])<br/><span class="requiredfield">remindtime</span> (integer, [0, 1])<br/>attendees (integers delimited by comma, [user id])<br/>externalattendees (email addresses delimited by comma)<br/>repeats (text, [{blank}, daily, weekly, monthly, yearly])<br/>repeatevery (integer when repeats != weekly)<br/>repeatuntil (date)<br/>repeatinterval (integers separated by comma when repeats = weekly, days of week 0-6)</td></tr>
      <tr><td>File</td><td>file</td><td>caption (text)<br/><span class="requiredfield">file</span> (must be uploaded as form-encoded data)</td></tr>
      <tr><td>Google Doc</td><td>googledoc</td><td>title (text)<br/>url (text)</td></tr>
      <tr><td>Linked Emails</td><td>linkedemails</td><td>(no fields are provided)</td></tr>
      <tr><td>Note</td><td>note</td><td><span class="requiredfield">details</span> (text)</td></tr>
      <tr><td>Opportunity</td><td>opportunity</td><td>description (text)<br/>valueunit (integer)<br/><span class="requiredfield">valuecurrency</span> (text, [USD, EUR, GBP, CAD, AUD, BRL, CHF, CNY, DKK, HKD, HRK, HUF, INR, JPY, MXN, MYR, NOK, NZD, RUB, SEK, SGD, THB, ZAR])<br/><span class="requiredfield">valueinterval</span> (text, [fixed price, per hour, per day, per week, per month, per quarter, per month, per quarter, per year])<br/>valueduration (integer)<br/><span class="requiredfield">stage</span> (integer, 0-100)<br/><span class="requiredfield">probability</span> (integer, 0-100)<br/><span class="requiredfield">closingdate</span> (date)<br/><span class="requiredfield">responsible</span> (integer, group or user id)<br/><span class="requiredfield">status</span> (text, [Discussion, Pending, Won, Lost, On-hold])</td></tr>
      <tr><td>Photo</td><td>photo</td><td>caption (text)<br/><span class="requiredfield">file</span></td></tr>
      <tr><td>Photo list</td><td>photolist</td><td>title (text)</td></tr>
      <tr><td>Separator</td><td>separator</td><td><span class="requiredfield">title</span> (text)<br/>hidesiblings (integer, [0, 1])</td></tr>
      <tr><td>Task</td><td>task</td><td>title (text)<br/>details (text)<br/>assignedto (integer, [group id, user id])<br/>duedate (date)<br/>completed (integer, [0, 1])<br/>sendnotification (integer, [0, 1])<br/>sendreminder (integer, [0, 1])<br/>priority (integer, [0-6])<br/>billed (integer, [0, 1])<br/>ignoreweekends (integer, [0, 1])<br/>timespent (integer)<br/>timespentmeasure (text, [days, hours, weeks])<br/>timeremains (integer)<br/>timeremainsmeasure (text, [days, hours, weeks])<br/>invoiced (text)<br/>notifyoncomplete (text, [email address(es) delimited by comma])</td></tr>
      <tr><td>Task list</td><td>tasklist</td><td>title (text)<br/>description (text)<br/>nodate (integer, [0, 1])<br/>milestonedate (date, if nodate = 1)<br/>completed (integer, [0, 1]</td></tr>
      <tr><td>Template of activities</td><td>template</td><td>templateid (integer, [template id])</td></tr>
      <tr><td>Time record</td><td>timerecord</td><td><span class="requiredfield">date (date)</span><br/>person (integer, [group id, user id])<br/>hours (number)<br/>billable (integer, [0, 1])<br/>details (text)<br/>invoiced (text)</td></tr>
      <tr><td>Website</td><td>website</td><td>caption (text)<br/>url (text)</td></tr>
    </table>
  </div>
  <div style="margin: 10px 20px 10px 50px;">
    <div class="requiredfieldlabel"></div> <span class="requiredfield">Required field</span>
  </div>
  <div style="margin: 10px 20px 10px 50px;">
    <p style="margin-left: 0;">Supported Activity Hierarchies</p>
    <table class="apichart" cellspacing="0">
      <tr><th>Parent {itemId} [&gt; Child] [&gt; Child]</th></tr>
      <tr><td>Contact &gt; Call &gt; Comment</td></tr>
      <tr><td>Contact &gt; Event &gt; Comment</td></tr>
      <tr><td>Contact &gt; File &gt; Comment</td></tr>
      <tr><td>Contact &gt; Google Doc &gt; Comment</td></tr>
      <tr><td>Contact &gt; Linked emails (one per parent) &gt; Comment</td></tr>
      <tr><td>Contact &gt; Note &gt; Comment</td></tr>
      <tr><td>Contact &gt; Opportunitiy &gt; Comment</td></tr>
      <tr><td>Contact &gt; Photolist &gt; Photo</td></tr>
      <tr><td>Contact &gt; Photolist &gt; Comment</td></tr>
      <tr><td>Contact &gt; Section &gt; Comment</td></tr>
      <tr><td>Contact &gt; Tasklist &gt; Task</td></tr>
      <tr><td>Contact &gt; Tasklist &gt; Task &gt; Time record</td></tr>
      <tr><td>Contact &gt; Tasklist &gt; Comment</td></tr>
      <tr><td>Contact &gt; Template of activities</td></tr>
      <tr><td>Contact &gt; Website &gt; Comment</td></tr>
    </table>
  </div>
</div>
<div style="clear: both;"></div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">589696</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">id</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">data</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Inspect&nbsp;Property</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">duedate</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">2009</span><span style="color: #007700">-</span><span style="color: #0000BB">10</span><span style="color: #007700">-</span><span style="color: #0000BB">11</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">duedate</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">priority</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">3</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">priority</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">data</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Jun&nbsp;15</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">2009&nbsp;22</span><span style="color: #007700">:</span><span style="color: #0000BB">19</span><span style="color: #007700">:</span><span style="color: #0000BB">29</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">created</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">Update Activity</div>
<div class="apimethodaction">PUT https://secure.solve360.com/contacts/{activitySegmentName}/{activityId}</div>
<div class="apimethoddesc">Updates an activity related to a contact.</div>

<div class="apimethodsample">Request (e.g. change due date and priority for task with id {activityId})</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;PUT&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">H&nbsp;</span><span style="color: #DD0000">'Content-Type:&nbsp;application/xml'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">d&nbsp;</span><span style="color: #DD0000">'&lt;request&gt;&lt;data&gt;&lt;duedate&gt;2009-12-11&lt;/duedate&gt;&lt;priority&gt;5&lt;/priority&gt;&lt;/data&gt;&lt;/request&gt;'&nbsp;</span><span style="color: #0000BB">https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/task/589696&nbsp;</span>
</span>
</code></div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">...<br />&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>


<div class="apimethod">Destroy Activity</div>
<div class="apimethodaction">DELETE https://secure.solve360.com/contacts/{activitySegmentName}/{activityId}/</div>
<div class="apimethoddesc">Deletes an activity related to a contact.</div>

<div class="apimethodsample">Request</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">curl&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">u&nbsp;</span><span style="color: #DD0000">'&#123;userEmail&#125;:&#123;userApiToken&#125;'&nbsp;</span><span style="color: #007700">-</span><span style="color: #0000BB">X&nbsp;DELETE&nbsp;https</span><span style="color: #007700">:</span><span style="color: #FF8000">//secure.solve360.com/contacts/task/589696&nbsp;</span>
</span>
</code></div>

<div class="apimethodsample">Response</div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;...<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">success</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">status</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">response</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>]]></description>
      <dc:subject />
      <dc:date>2009-06-24T13:59:54-07:00</dc:date>
    </item>

    <item>
      <title>API Introduction</title>
      <link>http://norada.com/norada/entry/external_api_introduction/</link>
      <guid>http://norada.com/norada/entry/external_api_introduction/#When:13:58:56Z</guid>
      <description><![CDATA[&#123;embed="/norada/_apinav"&#125;

<p class="leading">Introduction</p>

<!-- <p>This is preliminary information and subject to minor revisions.</p>  -->

<p>The Solve360 External <a href="http://en.wikipedia.org/wiki/API" target="_blank" title="Application Programming Interface">Application Programming Interface</a> or &ldquo;API&rdquo; provides clients who have access to some basic programming experience the ability to add, edit, delete and report on data in their Solve360 accounts without having to go through the Solve360 web interface.  With the API, you can integrate Solve360 with your web site and other applications you use and create some pretty spiffy custom reports.  This level of customization is provided so you can meet your team’s specific needs and automate as much of your work flow as possible.  The API is probably easier to use and way cooler than you might originally think.  It's also quite powerful; you’ll be working with some of the same tools that we use here everyday.  The possibilities are only limited by your imagination.</p><p class="leading">Authentication<p>
<p>Your code will authenticate to the API as a real Solve360 user account and will have access to everything that particular account has.  However, instead of logging in using the user's password your code will use the user's “API Token”.  The API Token is enabled on the Workspace, My Account, API Token page and is different for each user account.</p>
<img src="http://d1p8vlqvx8b65l.cloudfront.net/siteapitoken.png" alt="API Token"/>
<p>Often when authenticating using <a href="http://www.ietf.org/rfc/rfc2617.txt" target="_blank" title="HTTP Basic Authentication">HTTP Basic Authentication</a> (the method we use) you will be prompted for a username and password.  In these cases you would enter the user account’s email address as the username and the API Token as the password.</p>
<p>Just like your user account's password your API Token provides unlimited access to your account so be very diligent in keeping it secret and remember that the API Token can be removed or value reset at any time from the same page you first activated it.</p>

<p class="leading">Giving it a Spin</p>
Point your web browser at <a href="https://secure.solve360.com/contacts" target="_blank">https://secure.solve360.com/contacts</a> and when prompted to authenticate enter a valid Solve360 user account's email address and corresponding API Token.  After authenticating the server should return a list of all contacts that user account has access to in a machine readable format called <a href="http://en.wikipedia.org/wiki/XML" target="_blank">XML</a>.  Not so hard eh?!  Maybe to easy to be convincing so lets move on to a real-world example...</p>

<p class="leading">Creating a new contact in Solve360 directly from your website’s &ldquo;Contact Us&rdquo; form</p>
<p>Lets start by setting up the script that will receive the completed form from the website visitor and update Solve360.  The good news is we've already done the hard work for you.  You only need to edit two lines with your own account information and save the file on your server.  Everything else stays the same.  This file contain your API Token so it needs to be secure i.e. not readable by visitors.  Note to the inclined: We've chosen the to use only native PHP functions for this example so clients don't need to worry about installing special libraries on their server.  You may prefer to use <a href="http://en.wikipedia.org/wiki/CURL" target="_blank">CURL</a> and send data in XML format.</p>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;version&nbsp;1.1<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'USER'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'xxx@xxxxxxx'</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Edit&nbsp;your&nbsp;email&nbsp;address<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'TOKEN'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'</span><span style="color: #007700">);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Edit&nbsp;with&nbsp;your&nbsp;API&nbsp;Token<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'HOST'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'secure.solve360.com'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">define</span><span style="color: #007700">(</span><span style="color: #DD0000">'TIMEOUT'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">30</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Connection&nbsp;to&nbsp;the&nbsp;host<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$fp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fsockopen</span><span style="color: #007700">(</span><span style="color: #DD0000">"ssl://"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">HOST</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">443</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errno</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$errstr</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TIMEOUT</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">die(</span><span style="color: #DD0000">'Cannot&nbsp;connect&nbsp;to&nbsp;Solve360&nbsp;host'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Collect&nbsp;data&nbsp;submited&nbsp;from&nbsp;the&nbsp;form<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$data&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$_SERVER&#91;</span><span style="color: #DD0000">'QUERY_STRING'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;add&nbsp;some&nbsp;special&nbsp;tags&nbsp;or&nbsp;set&nbsp;the&nbsp;owner&nbsp;for&nbsp;the&nbsp;contact&nbsp;to&nbsp;a&nbsp;group&nbsp;you&nbsp;can<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;modify&nbsp;the&nbsp;user's&nbsp;input.&nbsp;You&nbsp;can&nbsp;find&nbsp;ids&nbsp;of&nbsp;groups&nbsp;and&nbsp;users&nbsp;in&nbsp;Workspace&nbsp;/&nbsp;My&nbsp;Account&nbsp;/&nbsp;API&nbsp;Reference<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;To&nbsp;enable&nbsp;this&nbsp;option,&nbsp;uncomment&nbsp;the&nbsp;following:<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Grab&nbsp;data&nbsp;from&nbsp;query&nbsp;string<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dataArray&nbsp;=&nbsp;array();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parse_str($data,&nbsp;$dataArray);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Specify&nbsp;a&nbsp;different&nbsp;ownership&nbsp;i.e.&nbsp;share&nbsp;the&nbsp;item<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dataArray&#91;'ownership'&#93;&nbsp;=&nbsp;&#123;ownership&#125;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Add&nbsp;categories<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dataArray&#91;'categories'&#93;&nbsp;=&nbsp;array('add'&nbsp;=&gt;&nbsp;array(&#123;categoryId&#125;,&#123;categoryId&#125;,&#123;categoryId&#125;));<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Convert&nbsp;our&nbsp;data&nbsp;array&nbsp;back&nbsp;to&nbsp;query&nbsp;string<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;http_build_query($dataArray);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Adding&nbsp;the&nbsp;contact&nbsp;request<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Prepare&nbsp;request&nbsp;body<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"POST&nbsp;/contacts/&nbsp;HTTP/1.1\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Host:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">HOST</span><span style="color: #007700">.</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Authorization&nbsp;header<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Authorization:&nbsp;Basic&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">base64_encode</span><span style="color: #007700">(</span><span style="color: #0000BB">USER</span><span style="color: #007700">.</span><span style="color: #DD0000">":"</span><span style="color: #007700">.</span><span style="color: #0000BB">TOKEN</span><span style="color: #007700">).</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;We&nbsp;inform&nbsp;the&nbsp;server&nbsp;that&nbsp;we're&nbsp;sending&nbsp;data&nbsp;in&nbsp;form&nbsp;encoded&nbsp;format<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-Type:&nbsp;application/x-www-form-urlencoded\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;We&nbsp;inform&nbsp;the&nbsp;server&nbsp;theat&nbsp;we&nbsp;are&nbsp;waiting&nbsp;for&nbsp;xml&nbsp;formatted&nbsp;data&nbsp;in&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Accept:&nbsp;application/xml\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Content-Length:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">strlen</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">).</span><span style="color: #DD0000">"\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"Connection:&nbsp;close\r\n\r\n"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$request&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">$data</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Send&nbsp;request&nbsp;to&nbsp;the&nbsp;host<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fwrite</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$request</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">stream_set_timeout</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">TIMEOUT</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$info&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_get_meta_data</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Read&nbsp;the&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$response&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(!</span><span style="color: #0000BB">feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">)&nbsp;&amp;&amp;&nbsp;!</span><span style="color: #0000BB">$info&#91;</span><span style="color: #DD0000">'timed_out'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$newLine&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_get_line</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">1024</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"\n"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$response&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #0000BB">$newLine</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$newLine</span><span style="color: #007700">)&nbsp;===&nbsp;</span><span style="color: #DD0000">'0'</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">break;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$info&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">stream_get_meta_data</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Get&nbsp;xml&nbsp;from&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$results&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">explode</span><span style="color: #007700">(</span><span style="color: #DD0000">'&lt;?xml'</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$response</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!empty(</span><span style="color: #0000BB">$results&#91;1&#93;</span><span style="color: #007700">))&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">simplexml_load_string</span><span style="color: #007700">(</span><span style="color: #DD0000">"&lt;?xml&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">$results&#91;</span><span style="color: #DD0000">'1'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Get&nbsp;new&nbsp;contact&nbsp;params&nbsp;from&nbsp;the&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$newContactName&nbsp;</span><span style="color: #007700">=&nbsp;(string)&nbsp;</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">item</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">name</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$newContactId&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">=&nbsp;(int)&nbsp;</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">item</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">id</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Mail&nbsp;the&nbsp;user&nbsp;with&nbsp;the&nbsp;result&nbsp;information<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">mail</span><span style="color: #007700">(</span><span style="color: #0000BB">USER</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'New&nbsp;contact&nbsp;added&nbsp;to&nbsp;Solve360'</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'New&nbsp;contact&nbsp;"'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$newContactName&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'"&nbsp;with&nbsp;id&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$newContactId&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">'&nbsp;was&nbsp;added&nbsp;to&nbsp;Solve360'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;&nbsp;</span><span style="color: #007700">else&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;Something&nbsp;went&nbsp;wrong&nbsp;and&nbsp;we&nbsp;haven't&nbsp;got&nbsp;xml&nbsp;in&nbsp;the&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">die(</span><span style="color: #DD0000">'System&nbsp;error'</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">if&nbsp;(isset(</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errors</span><span style="color: #007700">))&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail</span><span style="color: #007700">(</span><span style="color: #0000BB">USER</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Error&nbsp;while&nbsp;adding&nbsp;contact&nbsp;to&nbsp;Solve360'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'Error:&nbsp;'&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errors</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">asXml</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die&nbsp;(</span><span style="color: #0000BB">$xml</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">errors</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">asXml</span><span style="color: #007700">());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">/*<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;Inserting&nbsp;a&nbsp;template&nbsp;request<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;If&nbsp;you&nbsp;want&nbsp;you&nbsp;may&nbsp;insert&nbsp;a&nbsp;template&nbsp;into&nbsp;the&nbsp;contact&nbsp;you&nbsp;just&nbsp;created<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;You&nbsp;may&nbsp;find&nbsp;ids&nbsp;of&nbsp;your&nbsp;templates&nbsp;in&nbsp;Workspace&nbsp;/&nbsp;My&nbsp;Account&nbsp;/&nbsp;API&nbsp;Reference<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;To&nbsp;enable&nbsp;this&nbsp;feature&nbsp;just&nbsp;uncomment&nbsp;the&nbsp;following&nbsp;request<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;/*<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Start&nbsp;of&nbsp;template&nbsp;request<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Connection&nbsp;to&nbsp;the&nbsp;host<br />&nbsp;&nbsp;&nbsp;&nbsp;$fp&nbsp;=&nbsp;fsockopen("ssl://"&nbsp;.&nbsp;HOST,&nbsp;443,&nbsp;$errno,&nbsp;$errstr,&nbsp;TIMEOUT);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!$fp)&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die('Cannot&nbsp;connect&nbsp;to&nbsp;Solve360&nbsp;host');<br />&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Template&nbsp;id<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$templateId&nbsp;=&nbsp;174321;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Forming&nbsp;new&nbsp;data<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$dataArray&nbsp;=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'parent'&nbsp;=&gt;&nbsp;$newContactId,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'data'&nbsp;&nbsp;&nbsp;=&gt;&nbsp;array&nbsp;(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'templateid'&nbsp;=&gt;&nbsp;$templateId<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$data&nbsp;=&nbsp;http_build_query($dataArray);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Prepare&nbsp;request&nbsp;body<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;=&nbsp;"POST&nbsp;/contacts/template&nbsp;HTTP/1.1\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;"Host:&nbsp;".HOST."\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Authorization&nbsp;header<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;"Authorization:&nbsp;Basic&nbsp;".base64_encode(USER.":".TOKEN)."\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;We&nbsp;inform&nbsp;the&nbsp;server&nbsp;that&nbsp;we're&nbsp;sending&nbsp;data&nbsp;in&nbsp;form&nbsp;encoded&nbsp;format<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;"Content-Type:&nbsp;application/x-www-form-urlencoded\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;We&nbsp;inform&nbsp;the&nbsp;server&nbsp;theat&nbsp;we&nbsp;are&nbsp;waiting&nbsp;for&nbsp;xml&nbsp;formatted&nbsp;data&nbsp;in&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;"Accept:&nbsp;application/xml\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;"Content-Length:&nbsp;".strlen($data)."\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;"Connection:&nbsp;close\r\n\r\n";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$request&nbsp;.=&nbsp;$data;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Send&nbsp;request&nbsp;to&nbsp;the&nbsp;host<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fwrite($fp,&nbsp;$request);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stream_set_timeout($fp,&nbsp;TIMEOUT);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$info&nbsp;=&nbsp;stream_get_meta_data($fp);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Read&nbsp;the&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;=&nbsp;'';<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(!feof($fp)&nbsp;&amp;&amp;&nbsp;!$info&#91;'timed_out'&#93;)&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$newLine&nbsp;=&nbsp;stream_get_line($fp,&nbsp;1024,&nbsp;"\n");<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$response&nbsp;.=&nbsp;$newLine;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(trim($newLine)&nbsp;===&nbsp;'0')&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$info&nbsp;=&nbsp;stream_get_meta_data($fp);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fclose($fp);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Get&nbsp;xml&nbsp;from&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$results&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;explode('&lt;?xml',&nbsp;$response);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(!empty($results&#91;1&#93;))&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml&nbsp;=&nbsp;simplexml_load_string("&lt;?xml&nbsp;".$results&#91;'1'&#93;);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Mail&nbsp;the&nbsp;user&nbsp;with&nbsp;the&nbsp;result&nbsp;information<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail(USER,&nbsp;'Template&nbsp;is&nbsp;inserted&nbsp;into&nbsp;"'&nbsp;.&nbsp;$newContactName&nbsp;.&nbsp;'"&nbsp;contact&nbsp;in&nbsp;Solve360',&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Template&nbsp;with&nbsp;id&nbsp;'&nbsp;.&nbsp;$templateId&nbsp;.&nbsp;'&nbsp;was&nbsp;inserted&nbsp;into&nbsp;contact&nbsp;'&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;'&nbsp;with&nbsp;id&nbsp;'&nbsp;.&nbsp;$newContactId);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;else&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;Something&nbsp;went&nbsp;wrong&nbsp;and&nbsp;we&nbsp;haven't&nbsp;got&nbsp;xml&nbsp;in&nbsp;the&nbsp;response<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die('System&nbsp;error');<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(isset($xml-&gt;errors))&nbsp;&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mail(USER,&nbsp;'Error&nbsp;while&nbsp;insert&nbsp;template&nbsp;into&nbsp;contact&nbsp;Solve360',&nbsp;'Error:&nbsp;'&nbsp;.&nbsp;$xml-&gt;errors-&gt;asXml());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;die&nbsp;($xml-&gt;errors-&gt;asXml());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;End&nbsp;of&nbsp;template&nbsp;request<br />&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;*/<br /><br /></span><span style="color: #0000BB">?&gt;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">meta&nbsp;http</span><span style="color: #007700">-</span><span style="color: #0000BB">equiv</span><span style="color: #007700">=</span><span style="color: #DD0000">"Content-Type"&nbsp;</span><span style="color: #0000BB">content</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/html;&nbsp;charset=utf-8"&nbsp;</span><span style="color: #007700">/&gt;<br />&lt;/</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Result</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Thank&nbsp;you</span><span style="color: #007700">,&nbsp;&lt;</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&lt;?php&nbsp;</span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">$newContactName&nbsp;?&gt;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;!&nbsp;</span><span style="color: #0000BB">Your&nbsp;data&nbsp;was&nbsp;successfully&nbsp;saved</span><span style="color: #007700">.<br />&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>
<p><span class="filename">http://yourServer/contactSave.php</span></p>

<p>Next, lets create a simple web form to capture the data from the website visitor.  The only change here is to set the form action="contactSave.php" attribute to the URI where you saved the file in the previous step.</p>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">meta&nbsp;http</span><span style="color: #007700">-</span><span style="color: #0000BB">equiv</span><span style="color: #007700">=</span><span style="color: #DD0000">"Content-Type"&nbsp;</span><span style="color: #0000BB">content</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/html;&nbsp;charset=utf-8"&nbsp;</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">style&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/css"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">label</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">input&nbsp;&#123;&nbsp;display</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">block</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">float</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">left</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">width</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">150px</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">margin</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">5px</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label&nbsp;&#123;&nbsp;clear</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">left</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">text</span><span style="color: #007700">-</span><span style="color: #0000BB">align</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">right</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;input&#91;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"submit"</span><span style="color: #0000BB">&#93;&nbsp;&#123;&nbsp;width</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">60px</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">margin</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">10px&nbsp;0&nbsp;0&nbsp;165px</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">clear</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">left</span><span style="color: #007700">;&nbsp;</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">style</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Contact&nbsp;Us</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">form&nbsp;action</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://yourServer/contactSave.php"&nbsp;</span><span style="color: #0000BB">method</span><span style="color: #007700">=</span><span style="color: #DD0000">"GET"</span><span style="color: #007700">&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--&nbsp;</span><span style="color: #0000BB">Edit&nbsp;with&nbsp;the&nbsp;filename&nbsp;of&nbsp;the&nbsp;script&nbsp;</span><span style="color: #007700">if&nbsp;</span><span style="color: #0000BB">different&nbsp;than&nbsp;ours&nbsp;&nbsp;</span><span style="color: #007700">--&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">First&nbsp;name&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">required</span><span style="color: #007700">)&lt;/</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"firstname"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">""&nbsp;</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Last&nbsp;Name</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"lastname"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">""&nbsp;</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Job&nbsp;title</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"jobtitle"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">""&nbsp;</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Business&nbsp;email</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;&nbsp;&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"businessemail"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">""&nbsp;</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"submit"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"Save"&nbsp;</span><span style="color: #007700">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">form</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>
<p><span class="filename">http://yourServer/contactForm.html</span></p>

<p>Now lets test it out, open the form created in you created in the previous step in your web browser, fill in the values and click Save.  If the test worked as expected you will see a response page which would be look like:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">Thank&nbsp;you</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">&#123;firstName&#125;&nbsp;&#123;lastName&#125;</span><span style="color: #007700">!&nbsp;</span><span style="color: #0000BB">Your&nbsp;data&nbsp;was&nbsp;successfully&nbsp;saved</span><span style="color: #007700">.&nbsp;</span>
</span>
</code></div>

<p>If the response was "success" you just created a contact so login to Solve360 and enjoy the result of your work.  If there were any errors with the transaction, for example posting nonexistent fields to the system, you would receive information about them between <status> </status> tags in the response.</p>

<p>What's next? Try expanding on this example by adding additional fields to your form and enabling the category tags option in the ContactSave.php script above.  To help you get going quickly lists of all Field Names, Category Tag IDs and Ownership IDs specific to your organization are provided within your account under: Workspace, My Account, API Reference.</p>

<p class="leading">Conventions used in the External API Documentation</p>
<p>Content that has been elided for brevity: ...</p>
<p>Any text that should be replaced by your own data: {text}</p>

<p class="leading">Reading Data Using the API</p>

<p>The API has two types of actions for reading data: List and Show. List returns a collection (e.g. a list of contacts) and Show returns a single record (e.g. all information related to a specific contact).  These actions are done through the GET verb, which also means that they're easily explorable through a browser.  We recommend using Firefox for this as it's renders the XML response in easy-to-read format.  The response to a successful read is "HTTP/1.1 200 OK".</p>

<p class="leading">Writing Data Using the API</p>

<p>Creating, updating, and deleting items through the API is almost as simple as reading, but you can't explore it easily through the browser.  We recommend using <a href="http://en.wikipedia.org/wiki/CURL" target="_blank">CURL</a> to evaluate the methods first.  It's a very easy way to explore the API and it's perfect for scripts too.</p>

<p>When you're creating and updating items, you'll be sending XML into the API and including the XML content in the body of your request.  If you prefer to send regular form-encoded data just let the system know that by adding the header "Content-type: application/x-www-form-urlencoded". 

<p>The response to a successful creation is status code "HTTP/1.1 201 Created". You can read the URI of the new resource in the Location header which is handy if you need to refer to your newly created item.  Since you can create a new item with less than all its regular attributes the API also returns the complete XML for the newly created item in the response e.g. new Id and created date.</p>

<p>Updating an item is done through the PUT verb and against the URI of the resource you want to update. The response to a successful update is "HTTP/1.1 200 OK".</p>

<p>Finally, you can delete items using the DELETE verb.  Here you don't need to pass the content-type header because you're not sending any data. The response to a successful delete is "HTTP/1.1 200 OK".</p>

<p class="leading">Dealing With Errors</p>

<p>If a request fails, the error information is returned with the HTTP status code:</p>
<ul style="list-style: none;">
  <li>400 Bad Request: The request was invalid.  An accompanying error message will explain why. This is the status code will be returned during rate limiting.</li>
  <li>401 Not Authorized: Authentication credentials were missing or incorrect.</li>
  <li>403 Forbidden: The request is understood, but it has been refused.  An accompanying error message will explain why.</li>
  <li>404 Not Found: The URI requested is invalid or the resource requested, such as a contact, does not exists.</li>
  <li>406 Not Acceptable: Returned by the Search API when an invalid format is specified in the request.</li>
  <li>500 Internal Server Error: Something is broken on our end.  Please contact our support team to investigate.</li>
</ul>

<p class="leading">API Limit</p>

<p>Clients may request up to 12,000 API calls every 24 hours. Requests for more than the limit will result in a reply with an error status code of 400 and an empty result in the format requested.</p> 

]]></description>
      <dc:subject />
      <dc:date>2009-06-24T13:58:56-07:00</dc:date>
    </item>

    <item>
      <title>Recent Twitter Tweets</title>
      <link>http://norada.com/norada/entry/recent_twitter_tweets/</link>
      <guid>http://norada.com/norada/entry/recent_twitter_tweets/#When:22:55:56Z</guid>
      <description><![CDATA[<div class="twittertweets">
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote01.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote02.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
</div><div class="twittertweets">
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote13.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote12.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote11.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote03.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote04.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote05.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote06.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote16.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote14.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote07.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote08.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote09.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote10.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>
<p><img src="http://d1p8vlqvx8b65l.cloudfront.net/siteTwitterQuote15.png" alt="Twitter quote for Solve360 CRM and Project Management" /></p>

<p>&nbsp;</p></div>]]></description>
      <dc:subject />
      <dc:date>2009-05-20T22:55:56-07:00</dc:date>
    </item>

    <item>
      <title>CRM Best Practices</title>
      <link>http://norada.com/norada/entry/crm_best_practices/</link>
      <guid>http://norada.com/norada/entry/crm_best_practices/#When:15:57:47Z</guid>
      <description><![CDATA[<p>Being able to easily share the same client contact information among your employees is a great benefit, but there are many other advantages to using a centralized CRM system:</p>

<p>Pursue every potential sales opportunity</p>
<ul>
<li>Maintain daily call lists for your Sales Reps and follow their progress</li>
<li>Send email newsletters or direct mail to customers and prospects and improve targeting of marketing campaign activities by pre-qualifying prospects</li>
<li>Improve cross-selling and up-selling</li>
<li>Share detailed client history between employees and departments</li>
<li>Differentiate and stay close to your high-value customers</li>
</ul>

<p>Improve and measure staff performance across the company</p>
<ul>
<li>Keep track of all communications between your business and customers, be aware of every targeted marketing activity, question, complaint, and the complete sales history before picking up the phone</li>
<li>Anticipate customer needs based on previous experiences</li>
<li>Improve customer service responsiveness when handling customer questions or concerns</li>
<li>Reduce the cost of handling customer orders</li>
<li>Access client contact information and history on mobile devices</li>
<li>Have a secure system in place for “all corporate memory” in case of loss or theft</li>
</ul>

<p>So what’s it going to take to make CRM work?  We were taught in kindergarten that sharing is good and the same principle applies in business, at least when it comes to managing customers.  Share information between staff and departments so your team can provide feedback to each other and respond to your customers in a consistent and efficient way – your customers will notice.  Have reasonable expectations – not everyone is going to use the system in exactly the same way or to its maximum potential.  That’s still okay.  In hindsight you'll notice you are much better off with it than without it.</p><p class="leading">Getting Started with Solve360's CRM Features</p>

<p>Setup user accounts for all team members that need access.  If you need to, separate your contact database between groups of users and setup  work groups.</p>

<ol>
<li>Import contacts from your existing systems.  Our team is <a href="http://norada.com/norada/_feedback" onclick="updatepage('blogpage',this.href); return false;">standing by</a> if you need help with this.  When you import, you are given the option for the contacts to be shared by default (recommended) or private.<br><br></li>
<li>Quickly take care of any customization you need in the system, including:<br><br>
  <ul>
  <li>Add <a href="http://norada.com/norada/crm/tags_arent_just_for_prices_anymore/" onclick="updatepage('blogpage',this.href); return false;">tags to describe your contacts</a> as you work with them so contacts can be grouped into lists.  For example you could use categories such as: Lead, High Value, Qualified Prospect, Customer, Vendor, Contractor, Conference Attendee, etc.</li>
  <li>Add new fields to the forms to track unique information</li>
  <li>Remove standard fields from the forms that you don’t need<br><br><i>Don’t worry you can come back and tweak this at any time!</i></li>
  </ul>
</li>
</ol>

<p class="leading">Plan the Day-to-day CRM Routine</p>

<p>Although Solve360 allows you to work the way you see best by not imposing its own predefined processes, quite often sales revolve around the following tasks:</p>

<ul>
<li>Entering and qualifying new leads</li>
<li>Making new calls and scheduling follow-up calls</li>
<li>Creating and following-up on sales opportunities</li>
<li>Delivering on promises (tasks to be completed)</li>
</ul>

<p>Essentially the entire day-to-day process revolves around two simple concepts:</p>

<ol>
<li>Create contact records for all new leads then call on the prospect to gather information and qualify them.  For each lead select the tags that describe the status of the prospect e.g. Qualified, Hot, etc.  Record what has happened in the contact’s activity section by adding a call log, documenting requirements in notes, attaching files, adding tasks to complete, scheduling follow-up calls and <a href="http://norada.com/norada/crm/linking_email_messages_to_contacts_dropbox/" onclick="updatepage('blogpage',this.href); return false;">attaching all email correspondence to the page</a> for future reference.<br><br></li>
<li>Each day open the Activity Dashboard and review what tasks needs to be completed, meetings you need to attend and opportunities that should be followed-up on or updated.  Then return to the Contacts window, filter your active prospects by their tags and work through your list again.  Review prior conversations, call on prospects, send them helpful information and continue to qualify them.  Remember it takes <a href="http://norada.com//norada/crm/does_your_business_need_a_heart/" onclick="updatepage('blogpage',this.href); return false;">on average twelve interactions with a client to make a sale</a> so establish a simple system to ensure the work gets done and get busy.</li>
</ol>

<p class="leading">Responding to Prospects</p>

<p>When the phone rings anyone can quickly and simply open the caller’s contact page and BAM!, there they have a complete 360-degree view of the caller in front of them with the detail about all prior discussions.  They instantly continue the process with the prospect exactly where it was left off.  Just outline what needs to be done next and record the outcome of the call.  That’s personal and attentive service!</p>

<p class="leading">Tell Your Team How They Should Be Using the System to Support Your CRM Routine</p>

<ul>
<li>Explain the tags/categories you are using and why</li>
<li>Outline your lead qualification process e.g. the sequence of “helpful information” you have to send your prospects</li>
<li>Describe what should be documented (call logs, notes, tasks, future events/meetings, email correspondence, etc.</li>
</ul>
<p class="permalink">Permanent link to this page <a href="http://is.gd/2cq4r" target="blank">http://is.gd/2cq4r</a></p>]]></description>
      <dc:subject>For New Visitors, For Current Customers</dc:subject>
      <dc:date>2009-03-26T15:57:47-07:00</dc:date>
    </item>

    
    </channel>
</rss>
