cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Magento REST API and OAUTH

Problem with Magento REST API and OAUTH

I got an API Customer account from a store, running Magento. I've got the Consumer Key , Consumer Secret, Token and Token Secret . Wanted to give it a try and see if I can actually connect to the REST API, so I fired my RESTClient ( Mozzila Firefox addon ) and put all the information. I use the OAuth 1.0 with the correct Signature method, I double checked if I've pasted the keys and tokens right. Everything seems fine. And yet the response I am getting from the REST API is always " code":401,"message":"oauth_problem=signature_invalid " . What could be the problem? The URL I've been given is http://the-name-of-the-shop.com/api/rest/products/store/2?limit=100 The OAuth method stores the keys and token in the header, so I figured it doesn't need a separate URL for authentication ( but I might be wrong - this is the 1st time I deal with Magento's REST API ). Any help and suggestions would be appreciated. I've never dealt with Magento REST API ( or any other Magento API ) and it's still a bit confusing .

 
1 REPLY 1

Re: Problem with Magento REST API and OAUTH

Hello,
What was the request in the curl / httpie / wget format? You could hide the tokens and share it here. Because I'm facing this problem with Magento.

 

 

Cyrus Konstantinakos

Magento | magento.com/blog domyassignment.pro