title: Tumblr API v2 CodeIgniter cannot make GET authenticated request
body: <p>I'm trying to use some GET Tumblr endpoint using this Tumblr CodeIgniter wrapper <a href="https://github.com/theprestig3/CI-Tumblr-APIv2-Library" rel="nofollow">https://github.com/theprestig3/CI-Tumblr-APIv2-Library</a>, my problem is that I want to authenticate via OAuth the GET request (to avoid hammering the limits). For now I want to search posts that have certain tag, if I specify the api key, the request is successful no matter if the token is valid or not (so I'm guessing is not authorising the request properly with the OAuth). In POST methods, like for example "liking a post", there's no problem. </p>
  
  <p><strong>Update</strong>: I successfully did an authenticated request but with no parameters (/user/info endpoint). So I'm guessing the problem should reside in the parameters part </p>
  
  <p>The code looks like this:</p>
  
  <p>Controller:</p>
  
  <pre>
  $settings = array(
                  'access_token' => $token,
                  'access_token_secret' => $secret 
              );
  
              $tumblr = new Tumblr($settings);
  
              $result = $tumblr->tagged($tag, null, $limit);
  </pre> 
  
  <p>Modified tagged method in library:</p>
  
  <pre>
  function tagged($tag, $limit, $before = NULL)
      {
          if(isset($this->access_token) && isset($this->access_token_secret)){
              $urlParams;
              if(!isset($before)){
                  $urlParams = '?tag='.$tag.'&limit='.$limit.'&filter=text';
                  // $urlParams = '?tag='.$tag.'&limit='.$limit.'&filter=text'.'&api_key='.$this->tumblr_consumer_key;
              }else{
                  $urlParams = '?tag='.$tag.'&limit='.$limit.'&filter=text'.'&before='.$before;
                  // $urlParams = '?tag='.$tag.'&limit='.$limit.'&filter=text'.'&before='.$before.'&api_key='.$this->tumblr_consumer_key;
              }
              return $this->connection->get($this->host .'tagged' . $urlParams);
          }
          else{
              return json_decode($this->http($this->host . 'tagged/', '_GET', array('api_key' => $this->tumblr_consumer_key, 'tag' => $tag, 'before' => $before, 'limit' => $limit, 'filter' => 'text' )));
          }
      }
  </pre>
  
  <p><a href="https://github.com/theprestig3/CI-Tumblr-APIv2-Library/blob/master/application/libraries/Tumblr.php" rel="nofollow">Original Tumblr Library is here.</a></p>