title: Using Rest Codeigniter library with Twitter API
body: <p>I have setup the Rest library by Phil Sturgeon to connect to the Twitter API - it works great however (see below)</p>
  
  <pre><code>    $this-&gt;load-&gt;spark('restclient/2.1.0');
      $this-&gt;load-&gt;library('rest');
      $this-&gt;rest-&gt;initialize(array('server' =&gt; 'http://twitter.com/'));
      $username = 'my-username';
      // Pull in an array of tweets
      $tweets = $this-&gt;rest-&gt;get('statuses/user_timeline/'.$username.'.xml');
  </code></pre>
  
  <p>This code works great - however the Twitter API <a href="https://dev.twitter.com/docs/api/1/get/statuses/user_timeline" rel="nofollow">documentation</a> recommend using a slightly different approach (see below) - how would I use the newer approach below with this library?</p>
  
  <pre><code>https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&amp;include_rts=true&amp;screen_name=twitterapi&amp;count=2
  </code></pre>