title: Oauth 1.0 - Connection to an Api
body: <p>I am trying to make a connection to an API that will provide my website with information about cars and other stuff. The problem is that I can connect with it from PostMan because it generates a signature and a nounce.
  The problem that I am suffering is that when I want to connect throw PHP the OAUTH class is not generating the nounce and the signature so I can´y connect.
  I have also tried with CURL and anything better happened.</p>
  
  <p>My current code is this:</p>
  
  <pre><code>$config = array(
      'consumer_key' =&gt; 'XXXXXXXXXXXXXXXXXXXXXXX',
      'consumer_secret' =&gt; 'XXXXXXXXXXXXXXXXXXXXXXX',
      'request_uri' =&gt; 'http://bdc.autobild.es/autobild'
  );
  $oauth = new OAuth($config['consumer_key'], 
  $config['consumer_secret'], OAUTH_SIG_METHOD_HMACSHA1); 
  $requestTokenInfo = $oauth-&gt;getRequestToken('http://bdc.autobild.es/autobild/','http://localhost/myfolder/');
  d($requestTokenInfo);
  
  $accessTokenInfo = $oauth-&gt;getAccessToken('http://bdc.autobild.es/autobild/');
  d($accessTokenInfo);
  
  $requestInfo = $oauth-&gt;getLastResponseInfo();
  d($requestInfo);
  
  $oauth-&gt;fetch("http://bdc.autobild.es/autobild/list?type=coche");
  $data = $oauth-&gt;getLastResponseInfo();
  d($data);
  </code></pre>
  
  <p>Thanks!</p>