PHP Class 'OAuth' not found

Asked by At

I am doing third party rest web services to authenticate Oauth 1.0. my php code

  $config = array(
    'consumer_key' => '34d3dg4uyssfdsfds',
    'consumer_secret' => '8hhhfdd5erere44',
);
$oauth = new OAuth($config['consumer_key'], $config['consumer_secret'], OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI);    
$requestInfo = $oauth->getLastResponseInfo();
$oauth->fetch("http://api.saptel.com/sources");
$data = $oauth->getLastResponse();    
print_r(data);  

but i am getting this error

    Fatal error: Uncaught Error: Class 'OAuth' not found

i tried to install php_oauth.dll but its not working

0 Answers