Fatal error: Class 'OAuth' not found in
<p>I'm trying to connect to the LinkedIn API but everytime I try to access it I get the following error: </p>

<blockquote>
  <p>Fatal error: Class 'OAuth' not found in /home/vhosts/<em>*</em>/test.php on
  line 8</p>
</blockquote>

<p>I'm using a free server on 000WebHost and I've read that free servers sometimes don't support OAuth.  I've tried it on another free server and I get the same error message, so my question is how can I check whether the server supports the use of OAuth?</p>

<p>Here is my code:</p>

<pre><code>// Fill the keys and secrets you retrieved after registering your app
$oauth = new OAuth("abcd123456", "efgh987654");
$oauth-&gt;setToken("abcd1234-efgh987-9988", "9876abcd-123asdf-1122");

$params = array();
$headers = array();
$method = OAUTH_HTTP_METHOD_GET;

// Specify LinkedIn API endpoint to retrieve your own profile
$url = "http://api.linkedin.com/v1/people/~";

// By default, the LinkedIn API responses are in XML format. If you prefer JSON, simply       specify the format in your call
// $url = "http://api.linkedin.com/v1/people/~?format=json";

// Make call to LinkedIn to retrieve your own profile
$oauth-&gt;fetch($url, $params, $method, $headers);

echo $oauth-&gt;getLastResponse();
</code></pre>

<p>The keys are just replaced with the ones on the LikedIn Developers Getting Started Guide.</p>

<p>Thank you in advance for your help.</p>
