I'm looking for a working example of a PHP script for authentication using OAuth.
I have followed the testing instructions here (http://www.magentocommerce.com/api/rest/testing_rest_resources.html) using the REST client on Firefox.
I already have created a consumer so I have the Consumer Key and Consumer Secret. But, according to the website I also need an Access Token and an Access Token Secret. I'm not entirely sure how to get those. I've googled other examples for different APIs (e.g., Twitter), but I cannot port the knowledge over to Magento.
Any help is appreciated.
Best Answer
The documentation on Magento's site has a good example here
Here's one of the examples that they give for creating a simple product as an Admin user with OAuth authentication.