title: How do I use LinkedIn API with Zend_OAuth?
body: <p>I'm writing a class wrapper for LinkedIn API and I'm using Zend Framework 1.11.2. Here is a snippet I have:</p>
  
  <pre><code>    $config = Pb_Portal::getInstance()-&gt;getConfig('linkedin.ini');
  
      $body = '&lt;?xml version="1.0" encoding="UTF-8"?&gt;';
      $body .= '&lt;share&gt;';
      $body .= '&lt;comment&gt;83% of employers will use social media to hire: 78% LinkedIn, 55% Facebook, 45% Twitter [SF Biz Times] http://bit.ly/cCpeOD&lt;/comment&gt;';
      $body .= '&lt;content&gt;';
      $body .= '&lt;title&gt;Survey: Social networks top hiring tool - San Francisco Business Times&lt;/title&gt;';
      $body .= '&lt;submitted-url&gt;http://sanfrancisco.bizjournals.com/sanfrancisco/stories/2010/06/28/daily34.html&lt;/submitted-url&gt;';
      $body .= '&lt;submitted-image-url&gt;http://images.bizjournals.com/travel/cityscapes/thumbs/sm_sanfrancisco.jpg&lt;/submitted-image-url&gt;';
      $body .= '&lt;/content&gt;';
      $body .= '&lt;visibility&gt;';
      $body .= '&lt;code&gt;anyone&lt;/code&gt;';
      $body .= '&lt;/visibility&gt;';
      $body .= '&lt;/share&gt;';
  
      $client = Zend_Oauth::getHttpClient();
  
      $client-&gt;setUri('http://api.linkedin.com/v1/people/~/shares');
      $client-&gt;setMethod(Zend_Http_Client::POST);
      $client-&gt;setRawData($body,'text/xml');
      $client-&gt;setHeaders('Content-Type', 'text/xml');
      $client-&gt;setParameterPost('oauth_consumer_key', $config-&gt;appKey);
      $client-&gt;setParameterPost('oauth_nonce', $config-&gt;appSecretKey);
      $client-&gt;setParameterPost('oauth_token', $acc-&gt;getToken());
      $client-&gt;setParameterPost('oauth_timestamp', time());
      $client-&gt;setParameterPost('oauth_signature_method', 'HMAC-SHA1');
      $client-&gt;setParameterPost('oauth_version', '1.0');
  
      $response = $client-&gt;request();
  
      $xml = @simplexml_load_string($response-&gt;getBody());
  </code></pre>
  
  <p>And I have this response:</p>
  
  <pre><code>SimpleXMLElement Object
  (
      [status] =&gt; 401
      [timestamp] =&gt; 1299581073233
      [error-code] =&gt; 0
      [message] =&gt; Unknown authentication scheme
  )
  </code></pre>
  
  <p>Can somebody help me? Where I go wrong?</p>