title: Twilio Rest API Filtering using Coldfusion11
body: <p>I am trying to use the following code to access the Twilio Rest API to retrieve a list of incoming calls to my twilio number for a given date range.</p>
  
  <p><a href="https://www.twilio.com/docs/api/rest/call" rel="nofollow">https://www.twilio.com/docs/api/rest/call</a></p>
  
  <pre><code>  &lt;cfhttp url="https://api.twilio.com/2010-04-01/Accounts/xxxxxxxxxxxxxxxxx/Calls" method="get" resolveurl="no" username="xxxxxx" password="xxxxx1"&gt;
      &lt;cfhttpparam name="To" type="url" value="myphone"&gt;
      &lt;cfhttpparam name="StartTime&gt;=" type="url" value="2015-05-01"&gt;
      &lt;cfhttpparam name="StartTime&lt;" type="url" value="2015-06-01"&gt;
    &lt;/cfhttp&gt;
  </code></pre>
  
  <p>When I try to connect with the above, I get a "Connection" error in coldfusion.  It doesn't like the ">".  I have also tried to put the StartTime> into a variable perform urlencodedformat() on it, but it didn't give the desired result.</p>
  
  <p>When I query an individual day it works fine.</p>
  
  <pre><code>  &lt;cfhttp url="https://api.twilio.com/2010-04-01/Accounts/xxxxxxxxxxxxxxxxx/Calls" method="get" resolveurl="no" username="xxxxxx" password="xxxxx1"&gt;
      &lt;cfhttpparam name="To" type="url" value="myphone"&gt;
      &lt;cfhttpparam name="StartTime" type="url" value="2015-05-01"&gt;
    &lt;/cfhttp&gt;
  </code></pre>
  
  <p>Based off Twilio code examples (I was referencing PHP examples) it appears the the variable name can be StartTime>, StartTime>=, StartTime&lt;, StartTime&lt;=.</p>