title: Twitter API 1.1 issues
body: <p>Today a fellow developer at my workplace informed me that our Twitter API module for Joomla is no longer working due to version 1.0 being deprecated as of yesterday.</p>
  
  <p>I have been working the last couple of hours to get the new API functionality working but I just can't seem to get anywhere and it's driving me crazy. </p>
  
  <p>I am utilizing the tmhOAutho.php (<a href="https://github.com/themattharris/tmhOAuth" rel="nofollow">https://github.com/themattharris/tmhOAuth</a>) libraries to try and pull through what I need. 
  All I need to do is pull through tweets from a single Twitter account but this seems to be a lot more difficult to do now.</p>
  
  <p>So far I have:</p>
  
  <pre><code>include('tmhOAuth.php');
          include('tmhUtilities.php');
  
          $tmhOAuth = new tmhOAuth(array(
            'consumer_key'    =&gt; '"removed"',
            'consumer_secret' =&gt; '"removed"',
            'user_token'      =&gt; '"removed"',
            'user_secret'     =&gt; '"removed"',
          ));
  
          $code = $tmhOAuth-&gt;request('GET', $tmhOAuth-&gt;url('1.1/statuses/user_timeline'), array(
            'screen_name' =&gt; 'ActiveSoton'));
          return $response = $tmhOAuth;
  </code></pre>
  
  <p>I do get a response from the above but it is not the timelime tweets, it is the following:</p>
  
  <pre><code>mhOAuth Object ( [response] =&gt; Array ( [raw] =&gt; [code] =&gt; 0 [response] =&gt; [info] =&gt; Array ( [url] =&gt; https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=ActiveSoton [content_type] =&gt; [http_code] =&gt; 0 [header_size] =&gt; 0 [request_size] =&gt; 0 [filetime] =&gt; -1 [ssl_verify_result] =&gt; 0 [redirect_count] =&gt; 0 [total_time] =&gt; 0.096441 [namelookup_time] =&gt; 0.001874 [connect_time] =&gt; 0.096464 [pretransfer_time] =&gt; 0 [size_upload] =&gt; 0 [size_download] =&gt; 0 [speed_download] =&gt; 0 [speed_upload] =&gt; 0 [download_content_length] =&gt; -1 [upload_content_length] =&gt; -1 [starttransfer_time] =&gt; 0 [redirect_time] =&gt; 0 [certinfo] =&gt; Array ( ) [redirect_url] =&gt; ) [error] =&gt; error setting certificate verify locations: CAfile: /home/activeso/public_html/templates/protostar/cacert.pem CApath: /home/activeso/public_html/templates/protostar [errno] =&gt; 77 ) [params] =&gt; Array ( ) [headers] =&gt; Array ( [Authorization] =&gt; OAuth oauth_consumer_key="lVuRW7mPeW3v3Xv0CLzg", oauth_nonce="bd2ddb198ab19c7060b0fa23693c34b0", oauth_signature="J5AR853KRdhkSeQeGno1%2FhjcjFQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1371134884", oauth_token="19649542-2g5Zh9bdi5eVetJlQMu9bUi5NeCmR7VFLFawXatfl", oauth_version="1.0" ) [auto_fixed_time] =&gt; [buffer] =&gt; [config] =&gt; Array ( [user_agent] =&gt; tmhOAuth 0.7.5+SSL - //github.com/themattharris/tmhOAuth [timezone] =&gt; UTC [use_ssl] =&gt; 1 [host] =&gt; api.twitter.com [consumer_key] =&gt; lVuRW7mPeW3v3Xv0CLzg [consumer_secret] =&gt; omaQwbQCzcj8tNp2FGIgVUKZel9PZisfVm2ZJSnA [user_token] =&gt; 19649542-2g5Zh9bdi5eVetJlQMu9bUi5NeCmR7VFLFawXatfl [user_secret] =&gt; Pw8MNNbtplfR51hlw3BQZ7VfHPAskZ65n0P2A0fbmQ [force_nonce] =&gt; [nonce] =&gt; bd2ddb198ab19c7060b0fa23693c34b0 [force_timestamp] =&gt; [timestamp] =&gt; 1371134884 [oauth_version] =&gt; 1.0 [oauth_signature_method] =&gt; HMAC-SHA1 [curl_connecttimeout] =&gt; 30 [curl_timeout] =&gt; 10 [curl_ssl_verifyhost] =&gt; 2 [curl_ssl_verifypeer] =&gt; 1 [curl_cainfo] =&gt; /home/activeso/public_html/templates/protostar/cacert.pem [curl_capath] =&gt; /home/activeso/public_html/templates/protostar [curl_followlocation] =&gt; [curl_proxy] =&gt; [curl_proxyuserpwd] =&gt; [curl_encoding] =&gt; [is_streaming] =&gt; [streaming_eol] =&gt; [streaming_metrics_interval] =&gt; 60 [as_header] =&gt; 1 [debug] =&gt; [multipart] =&gt; ) [custom_headers] =&gt; Array ( ) [method] =&gt; GET [url] =&gt; https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=ActiveSoton [signing_params] =&gt; oauth_consumer_key=lVuRW7mPeW3v3Xv0CLzg&amp;oauth_nonce=bd2ddb198ab19c7060b0fa23693c34b0&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1371134884&amp;oauth_token=19649542-2g5Zh9bdi5eVetJlQMu9bUi5NeCmR7VFLFawXatfl&amp;oauth_version=1.0&amp;screen_name=ActiveSoton [auth_params] =&gt; Array ( [oauth_consumer_key] =&gt; lVuRW7mPeW3v3Xv0CLzg [oauth_nonce] =&gt; bd2ddb198ab19c7060b0fa23693c34b0 [oauth_signature] =&gt; J5AR853KRdhkSeQeGno1%2FhjcjFQ%3D [oauth_signature_method] =&gt; HMAC-SHA1 [oauth_timestamp] =&gt; 1371134884 [oauth_token] =&gt; 19649542-2g5Zh9bdi5eVetJlQMu9bUi5NeCmR7VFLFawXatfl [oauth_version] =&gt; 1.0 ) [request_params] =&gt; Array ( ) [base_string] =&gt; GET&amp;https%3A%2F%2Fapi.twitter.com%2F1.1%2Fstatuses%2Fuser_timeline.json&amp;oauth_consumer_key%3DlVuRW7mPeW3v3Xv0CLzg%26oauth_nonce%3Dbd2ddb198ab19c7060b0fa23693c34b0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1371134884%26oauth_token%3D19649542-2g5Zh9bdi5eVetJlQMu9bUi5NeCmR7VFLFawXatfl%26oauth_version%3D1.0%26screen_name%3DActiveSoton [signing_key] =&gt; omaQwbQCzcj8tNp2FGIgVUKZel9PZisfVm2ZJSnA&amp;Pw8MNNbtplfR51hlw3BQZ7VfHPAskZ65n0P2A0fbmQ [auth_header] =&gt; OAuth oauth_consumer_key="lVuRW7mPeW3v3Xv0CLzg", oauth_nonce="bd2ddb198ab19c7060b0fa23693c34b0", oauth_signature="J5AR853KRdhkSeQeGno1%2FhjcjFQ%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1371134884", oauth_token="19649542-2g5Zh9bdi5eVetJlQMu9bUi5NeCmR7VFLFawXatfl", oauth_version="1.0" ) 1
  </code></pre>
  
  <p>Does anyone know how or can point me in the right direction as to how I get the timeline tweets? 
  Thanks!</p>