| 
<?php
/////////////////////////////////////////////
 // USAGE SAMPLES
 /////////////////////////////////////////////
 $amazon_sell = new amazon_sell();
 
 $email         = "[email protected]";
 $password      = "blah";
 
 $amazon_sell->setLoginEmail($email);
 $amazon_sell->setLoginPassword($password);
 
 /*** SAMPLE ADD ITEM
 
 $upc           = "978067187120852";
 $price         = "4.99";
 $postal_code   = "14623";
 $comments      = "TEST ITEM NOT FOR SALE";
 $condition     = CONDT_USED_LIKE_NEW;
 
 
 // If our price is not accepted, use Amazon's minimum price
 $amazon_sell->setPriceToMin();
 
 $amazon_sell->setUPC($upc);
 $amazon_sell->setListPrice($price);
 $amazon_sell->setPostalCode($postal_code);
 $amazon_sell->setCondition($condition);
 $amazon_sell->setComments($comments);
 
 if ($amazon_sell->post_item()) {
 echo "Item added sucessfully!\n".
 "Exchange ID: ".$amazon_sell->getExchangeId()."\n";
 } else {
 echo "Item Failed!\n".
 $amazon_sell->getError()."\n";
 }
 ***/
 
 /*** SAMPLE ITEM REMOVAL
 
 $reason     = "TESTING SYSTEM";
 
 //
 // These are the exchange id's that should be listed with all the items
 // you want to remove
 //
 $exchange   = Array( "Y03Y5861466Y6114471",
 "Y04Y1539929Y4686062",
 "Y02Y0259057Y1841520",
 "Y02Y2231735Y7610740",
 "Y04Y6953404Y2941800",
 "Y04Y5514022Y6068958",
 "Y02Y3563609Y5493967",
 "Y02Y3563609Y5493967",
 "Y03Y7006986Y1823884",
 "Y04Y0768459Y7385369",
 "Y04Y4491527Y4689329",
 "Y03Y5669456Y1292089",
 "Y01Y0905244Y1799479",
 "Y04Y3376796Y7036328"
 );
 
 
 $amazon_sell->setRemoveReason($reason);
 foreach ($exchange AS $key => $val) {
 echo "EXC ID: $val\n";
 
 $amazon_sell->setExchangeId($val);
 
 if ($amazon_sell->remove_item()) {
 echo "Item Removed Succesfully!\n";
 } else {
 echo "Removal Failed\n".
 $amazon_sell->getError()."\n";
 }
 echo "-----------------------------------------------------------\n\n";
 }
 ****/
 
 ?>
 
 |