cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error as Class "OAuth" not found.

Getting error as Class "OAuth" not found.

I am working on creating REST API using php oAuth for retrieving magento products.

oAuth is successfully installed on XAMPP for linux. but not able to view in phpinfo().

Also, I able to get magento products in XML format. Now to need to consume this product data using oAuth authentication.

I have created php file with code given on "http://www.magentocommerce.com/api/rest/introduction.html#RESTAPIIntroduction-Retrievethelistofprodu..." in htdocs directory. but Getting error as "Class  OAuth" not found.

 

Can you please help me?  

 Thanks in advance.

2 REPLIES 2

Re: Getting error as Class "OAuth" not found.

Open the file php.ini and paste there extension=oauth.so

and then resart the server and check if it is showing in phpinfo()

Re: Getting error as Class "OAuth" not found.

Hi,

 

     I did like you said, means, added the extension. then also, getting the same error as :


" Fatal error: Class 'OAuth' not found in C:\xampp\htdocs\magento\tests\customers.php on line 21 ".

 

Plz can anyone tell me the solution .

 

Thankyou.