This the fixed amazon lookup add-on. I changed two files: amazon.php and amazon.conf.php, you should just be able to replace the old ones if you had the add-on installed before or follow the install instructions if you install it from scratch.
Hmmm, I seem to remember struggling with the same question, but now I can't remember the answer. I think you just create an account, don't sign up for any services and then follow the instructions in amazon.conf.php.
Maybe you can confirm that if it works, just so that people who have the same question in future can look it up here.
I am sorry I did not notice the installation question before. There are installations instructions in the tar archive. These are the original ones. I did not write them, but they still work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Click "Sign in to the AWS Management Console" at the top middle of the page.
Click "Account" top middle of the new page
Click "Security Credentials"
Click "Access Credentials"
And there's your info! Just copy and paste the codes Access Key ID and Secret Access Key into the amazon.conf file as per instructions and you are on your way...
Marie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This diff should fix it. You just need to get an Associate ID from Amazon from http://affiliate-program.amazon.com and fill it in into the amazon.config.php
/**
* Choose most relevant AMAZON site. Default to main US site.
diff -rupN old/amazon.php new/amazon.php
--- old/amazon.php 2010-03-08 23:29:54.000000000 +0100
+++ new/amazon.php 2011-12-29 09:55:00.000000000 +0100
@@ -80,9 +80,10 @@ class CAmazon
var $_collection = ''; // And in what collection
var $_language = '';
var $_access_key_id;
- var $_secret_access_key;
+ var $_secret_access_key;
+ var $_associate_tag;
I've done my best to update this plugin. I've only tested it on my own site (PHP 5.6, OpenBiblio 0.7.2).
Inside the attached zip is an HTML file with instructions, and 3 PHP files. Please note that Amazon now requires 3 IDs. Please let me know if there are any issues.
Amazon Lookup for 0.6.1
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
how do i install this?
Last edit: Anonymous 2014-05-18
Does the service at Amazon cost. I could not figure it out at a quick glance....
Sr Marie
Also I could not figure out how to find my id with the instructions given. I have signed up for an account, but which service to sign up for?
Sr Marie again
Ps. How to install - open the php-files in an editor - I use Notepad++ and copy and paste according to the (excellent) instructions.
Hmmm, I seem to remember struggling with the same question, but now I can't remember the answer. I think you just create an account, don't sign up for any services and then follow the instructions in amazon.conf.php.
Maybe you can confirm that if it works, just so that people who have the same question in future can look it up here.
I am sorry I did not notice the installation question before. There are installations instructions in the tar archive. These are the original ones. I did not write them, but they still work.
I can confirm that this version vorks with the current 0.7.0 (tip) version of OpenBiblio as well. Thank you so much for this plugin!
Here's how to find the Amazon Access Key ID:
Create account at
https://aws-portal.amazon.com/gp/aws/developer/registration/index.html
Do not sign up for any services!
Go to:
http://aws.amazon.com/
Click "Sign in to the AWS Management Console" at the top middle of the page.
Click "Account" top middle of the new page
Click "Security Credentials"
Click "Access Credentials"
And there's your info! Just copy and paste the codes Access Key ID and Secret Access Key into the amazon.conf file as per instructions and you are on your way...
Marie
Where did you find openBiblio 0.7.0? I had a look at the website (http://obiblio.sourceforge.net/) and only can find the old 0.6.1.
Here: http://sourceforge.net/projects/obiblio/forums/forum/164978/topic/3769893
Marie
Recently my amazon lookup stopped working again. Probably due to this:
https://affiliate-program.amazon.com/gp/advertising/api/detail/api-changes.html
Won't have time any time soon to change the script, so if anyone wants to have a go, please feel free.
This diff should fix it. You just need to get an Associate ID from Amazon from http://affiliate-program.amazon.com and fill it in into the amazon.config.php
diff -rupN old/amazon.conf.php new/amazon.conf.php
--- old/amazon.conf.php 2010-03-08 12:11:42.000000000 +0100
+++ new/amazon.conf.php 2011-12-29 09:50:01.000000000 +0100
@@ -11,9 +11,9 @@
* header, mouse over 'Your Web Services Account' and click
* 'View Access Key Identifiers'.
*/
-$access_key_id = 'enter key';
-$secret_access_key = 'enter key';
-
+$access_key_id = 'enter key';
+$secret_access_key = 'enter key';
+$associate_tag = 'enter key';
/**
* Choose most relevant AMAZON site. Default to main US site.
diff -rupN old/amazon.php new/amazon.php
--- old/amazon.php 2010-03-08 23:29:54.000000000 +0100
+++ new/amazon.php 2011-12-29 09:55:00.000000000 +0100
@@ -80,9 +80,10 @@ class CAmazon
var $_collection = ''; // And in what collection
var $_language = '';
var $_access_key_id;
- var $_secret_access_key;
+ var $_secret_access_key;
+ var $_associate_tag;
- function CAmazon($access_key_id, $secret_access_key)
+ function CAmazon($access_key_id, $secret_access_key,$associate_tag)
{
if(strlen($access_key_id) < 20)
{
@@ -95,7 +96,8 @@ class CAmazon
exit;
}
$this->_access_key_id = $access_key_id;
- $this->_secret_access_key = $secret_access_key;
+ $this->_secret_access_key = $secret_access_key;
+ $this->_associate_tag = $associate_tag;
}
function form()
@@ -157,7 +159,8 @@ class CAmazon
// additional parameters
$params = array();
$params["Service"] = "AWSECommerceService";
- $params["AWSAccessKeyId"] = $this->_access_key_id;
+ $params["AWSAccessKeyId"] = $this->_access_key_id;
+ $params["AssociateTag"] = $this->_associate_tag;
$params["Operation"] = "ItemSearch";
$params["SearchIndex"] = $collection;
$params["Keywords"] = $search;
@@ -461,7 +464,7 @@ class CAmazon
}
}
-$amazon = new CAmazon($access_key_id, $secret_access_key);
+$amazon = new CAmazon($access_key_id, $secret_access_key,$associate_tag);
$amazon->set_language($text);
switch($action)
Have there been any changes to this script now that we are in version 0.7.1? Thanks.
View and moderate all "patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Patches"
Can anyone help how to make it work on v0.7.1 ?
Hi
long time no update here.. Is the amazon lookup still working in 0.7.2 version. Any other changes required beside the ones mentioned in the diff?
Thanks for your feedback
I've done my best to update this plugin. I've only tested it on my own site (PHP 5.6, OpenBiblio 0.7.2).
Inside the attached zip is an HTML file with instructions, and 3 PHP files. Please note that Amazon now requires 3 IDs. Please let me know if there are any issues.
I've also put the instructions & files up at http://leastweasel.com/portfolio/openbiblio/amazon_lookup_0.7.2_20151107/install_amazon.html