简体   繁体   中英

Amazon Product Advertising API to display search results

I'm trying to embed Amazon search results into my website, and I can't use an iFrame since they block that, and it doesn't look like I can really customize the format of an Amazon Associates search widget, so I was wondering if I could use the Product Advertising API to achieve this simple goal...

Take the value of an input from a form on the page and display Amazon search results for that value.

I've been Googling this problem every way I can think of, but can't find any tutorials on how to use the Product Advertising API to do this, so I'm not sure if it's possible (though I suspect it is). I'm also open to other ideas on how to make this happen.

Thanks,

Chris

Out of the many solution you have out there, I would suggest to take a look at https://www.drupal.org/project/amazon , where you'll find everything you need to embed Amazon product search into you website.

Once the amazon module is properly configured, all you need is:

<?php
$keywords = 'Black Adder';
$parameters = Array(
  'SearchIndex' => 'DVD',
);
$res = amazon_search_simple_search($keywords , $parameters , $locale = 'US');
echo print_r ($res);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM