Skip to content

Instantly share code, notes, and snippets.

@EricBusch
Created November 1, 2013 18:06
Show Gist options
  • Select an option

  • Save EricBusch/7269343 to your computer and use it in GitHub Desktop.

Select an option

Save EricBusch/7269343 to your computer and use it in GitHub Desktop.
<?php
$api = new DatafeedrApi(MY_ACCESS_ID, MY_SECRET_KEY, 'curl');
$search = $api->amazonSearchRequest(MY_AMAZON_ACCESS_KEY, MY_AMAZON_SECRET_KEY, MY_AMAZON_ASSOCIATE_TAG, "US");
$search->addParam('Brand', 'nike');
$search->addParam('Keywords', 'shoe golf');
$search->addParam('MaximumPrice', '1500');
$search->addParam('SearchIndex', 'Apparel');
$products = $search->execute();
foreach($products as $product) {
print_r($product);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment