Magento REST API

I’m following these steps here for testing the Magento REST API

The REST API is working for the GET Product for Guests

To make use of the API for anything else I need to use the OAuth

I have the OAuth Consumer setup for this URL

Now when I use the FireFox REST Client as per the link above I enter the consumer key and consumer secret.

This is the responce I get:
Status Code: 400 Bad Request

My question is: What should the Callback URL be in Magento? I have tried it various ways and can’t get it to work to get the tokens. I've search all over and there seem to be no clear documentation on this.

This is what I have tried among other ways for the callback URL and it does not work:

Can someone help me?
Who is Participating?
GerhardpetConnect With a Mentor Author Commented:
I got far enough in to this to find out that the error I'm getting is not related to the CallBack URL.

This error “oauth_problem=parameter_absent&oauth;_parameters_absent=oauth_callback” is related to the OAuth but so far I can't find out why I get the error
Well, the example says this needs to point to the oath_customer.php script, whatever that is.
Presumably this script is provided to you somehow?

// $callbackUrl is a path to your file with OAuth authentication example for the Customer user
$callbackUrl = "http://yourhost/oauth_customer.php";
$temporaryCredentialsRequestUrl = "http://yourhost/oauth/initiate?oauth_callback=" . urlencode($callbackUrl);
$customerAuthorizationUrl = 'http://yourhost/oauth/authorize';
$accessTokenRequestUrl = 'http://yourhost/oauth/token';
$apiUrl = 'http://yourhost/api/rest';
$consumerKey = 'yourconsumerkey';
$consumerSecret = 'yourconsumersecret';

Open in new window

GerhardpetAuthor Commented:
The php script is one way of testing it but in my case I'm using the FireFox REST API client.

This seems to point to something but no one has responded
GerhardpetAuthor Commented:
I never got this to work and nothing helped was posted here to help with this
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.