Skip to content

Instantly share code, notes, and snippets.

@EricBusch
Created October 2, 2013 15:33
Show Gist options
  • Select an option

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

Select an option

Save EricBusch/6795630 to your computer and use it in GitHub Desktop.
<?php
$merchants = $api->getMerchantsById( array( 42742, 675, 4203, 677 ), FALSE, array( '_id', 'name', 'product_count' ) );
foreach( $merchants as $merchant ) {
echo $merchant['name'];
echo " (ID: " . $merchant['_id'] . ") ";
echo number_format( $merchant['product_count'] );
echo " product<br />";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment