Hi,
Like in Amarok I would like adding to my application the possibility to download covers from Amazon.com.
Looking amarok source code I have extracted the needed code (little modified):
...
// Static license Key. Thanks hydrogen ;-)
const QString LICENSE
( "11ZKJS8X1ETSTJ6MT802" );
...
url = "http://ecs.amazonaws.com"
+ "/onca/xml?Service=AWSECommerceService&Version=2007-10-29&Operation=ItemSearch&AssociateTag=webservices-20&AWSAccessKeyId=" + LICENSE
+ "&Keywords=" + searchString()
+ "&SearchIndex=VideoGames&ResponseGroup=Small,Images";
...
...
// Static license Key. Thanks hydrogen ;-)
const QString LICENSE( "11ZKJS8X1ETSTJ6MT802" );
...
QString url;
url = "http://ecs.amazonaws.com"
+ "/onca/xml?Service=AWSECommerceService&Version=2007-10-29&Operation=ItemSearch&AssociateTag=webservices-20&AWSAccessKeyId=" + LICENSE
+ "&Keywords=" + searchString()
+ "&SearchIndex=VideoGames&ResponseGroup=Small,Images";
...
To copy to clipboard, switch view to plain text mode
Pasting the code in a browser works. Now I have two questions?
1) Is the service free? Can I use the code like it is or it is needed a registration and a personal/application license?
2) Images have two white vertical stripes left and right to the cover; which method should I use for crop them and have a qpixmap with only the cover?
Thanks
Bookmarks