Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 1 commit
  • 7 files changed
  • 0 commit comments
  • 1 contributor
View
146 example/amazon/amazon.php
@@ -1,146 +0,0 @@
-<?php
-require_once 'amazon_types.php';
-require_once 'amazon_modes.php';
-
-class Amazon {
- var $_devkey;
- var $_associateid;
- var $_clientType;
- var $_client = null;
- var $_pagesize = 10; // amazon doesn't let us set this
-
- function Amazon($type, $devkey, $associateid='webservices-20') {
- $this->_devkey = $devkey;
- $this->_associateid = $associateid;
- $this->_clientType = $type;
- }
-
- function _getClient()
- {
- if ($this->_client) return;
- switch($this->_clientType) {
- case 'soap':
- require_once 'amazon_soap.php';
- $this->_client = new AmazonSearchService($this->_devkey,$this->_associateid);
- break;
-
- /* we could develop the REST interface as well,
- and using the same API as the amazon soap class,
- offer the choice of methods for making the data
- retrieval. */
- }
- }
-
- function _selectOption($name, $value, $select)
- {
- $selected=$select?' selected':'';
- return "<option value='$value'$selected>$name</option>\n";
- }
-
- function _doListItem($listname,$value, $name, &$info) {
- $select = isset($info[$listname]) && $info[$listname] == $value;
- return $this->_selectOption($name,$value,$select);
- }
-
- function SearchForm($info=array())
- {
- global $amazon_modes;
-
- $modelist = '';
- foreach($amazon_modes as $name=>$mode) {
- $modelist .= $this->_doListItem('search_mode',$mode,$name,$info);
- }
-
- $classlist = $this->_doListItem('search_class','keyword','Keywords',$info);
- $classlist .= $this->_doListItem('search_class','asin','ASIN',$info);
- $classlist .= $this->_doListItem('search_class','upc','UPC',$info);
- $classlist .= $this->_doListItem('search_class','artist','Artist',$info);
- $classlist .= $this->_doListItem('search_class','actor','Actor',$info);
- $classlist .= $this->_doListItem('search_class','author','Author',$info);
- $classlist .= $this->_doListItem('search_class','director','Director',$info);
- $classlist .= $this->_doListItem('search_class','manufacturer','Manufacturer',$info);
- $classlist .= $this->_doListItem('search_class','similarity','Similarity (ASIN)',$info);
-
- $typelist = $this->_doListItem('search_type','lite','Summary',$info);
- $typelist .= $this->_doListItem('search_type','heavy','Detailed',$info);
-
- $searchwords = isset($info['search_words'])?htmlentities(stripslashes($info['search_words']),ENT_QUOTES):'';
-echo <<< EOF
- <table border='1'><tr><td>
- Amazon Search<br/>
- <form action='{$_SERVER["PHP_SELF"]}' method='post'>
- <select name='search_class'>
- $classlist
- </select>
- <input type='text' name='search_words' value="$searchwords"/>
- <input type='hidden' name='search_page' value='1'/>
- <select name='search_mode'>
- $modelist
- </select>
- <select name='search_type'>
- $typelist
- </select>
- <input type='submit'/></form></td></tr></table>
-EOF;
- }
-
- function _pageLink($page, &$info)
- {
- $q = array();
- $info['search_page'] += $page;
- foreach($info as $k=>$v) {
- $q[] = "$k=".htmlentities(stripslashes($v),ENT_QUOTES);
- }
- $q = join($q,'&');
- if ($page == 1) $dir = "Next >>>";
- else $dir = "<<< Prev";
- return "<a href='{$_SERVER['PHP_SELF']}?$q'>$dir</a>";
- }
-
- function Search(&$info)
- {
- $search_function = "{$info['search_class']}SearchRequest";
- $search_class = "{$info['search_class']}Request";
- if (!$this->_client) $this->_getClient();
- if ($this->_client &&
- method_exists($this->_client,$search_function)) {
-
- if (!isset($info['search_devtag'])) $info['search_devtag'] = $this->_devkey;
- if (!isset($info['search_tag'])) $info['search_tag'] = $this->_associateid;
-
- $searchObj = new $search_class($info);
-
- $ProductInfo = call_user_func(
- array(&$this->_client,$search_function),
- $searchObj);
-
- if (PEAR::isError($ProductInfo)) {
- $errmsg = $ProductInfo->getMessage()."<br/>\n".$ProductInfo->getUserInfo()."<br/>\n";
- print $errmsg;
- print $this->_client->client->wire;
- return false;
- } else {
- $ProductInfo->displayList($info['search_type']);
- $pl = array();
- if (!isset($info['search_page'])) $info['search_page'] = $searchObj->page;
- if ($searchObj->page > 1)
- $pl[] = $this->_PageLink(-1,$info);
- if (isset($searchObj->page) &&
- count($ProductInfo->Details) == $this->_pagesize) {
- $pl[] = $this->_PageLink(1,$info);
- }
- foreach($pl as $link) {
- echo $link.' &nbsp; ';
- }
- echo "<br/>\n";
- return true;
- }
- } else {
- print "Invalid Search Type";
- }
- return false;
- }
-}
-
-
-?>
View
338 example/amazon/amazon_modes.php
@@ -1,338 +0,0 @@
-<?php
-// books first
-
-$amazon_modes['All Products']='aps';
-$amazon_modes['Baby']='baby';
-$amazon_modes['Books']='books';
-$amazon_modes['Camera &amp; Photo']='photo';
-$amazon_modes['Computers']='pc-hardware';
-$amazon_modes['DVDs']='dvd';
-$amazon_modes['Electronics']='electronics';
-$amazon_modes['Kitchen']='kitchen';
-$amazon_modes['Magazines']='magazines';
-$amazon_modes['Music']='music';
-$amazon_modes['Music Downloads']='music-dd';
-$amazon_modes['Classical Music']='classical';
-$amazon_modes['Outdoor Living']='garden';
-$amazon_modes['Restaurants']='restaurants';
-$amazon_modes['Software']='software';
-$amazon_modes['Tools']='tools';
-$amazon_modes['Toys']='toys';
-$amazon_modes['Travel']='travel';
-$amazon_modes['VHS']='vhs';
-$amazon_modes['Video Games']='videogames';
-
-$amazon_modes['Movie Showtimes']='theatrical';
-$amazon_modes['Cell Phones & Service']='wireless-phones';
-$amazon_modes['Outlet']='outlet';
-$amazon_modes['Auctions']='auction-redirect';
-$amazon_modes['zShops']='fixed-price-redirec';
-$amazon_modes['Sci. Supplies']='moc-scientific-supplies';
-$amazon_modes['Med. Supplies']='moc-medical-supplies';
-$amazon_modes['Indust. Suppl.']='moc-industrial-supplies';
-$amazon_modes['Car Parts']='moc-cars';
-$amazon_modes['Home Furnish.']='moc-home-furnishings';
-$amazon_modes['Lifestyle']='moc-lifestyle';
-$amazon_modes['Pet Toys']='moc-pet-toys';
-$amazon_modes['Arts &amp; Hobbies']='moc-arts-hobby';
-
-$amazon_browseid['Books, Top Selling']=1000;
-$amazon_browseid['Books, Bargain']=45;
-
-$amazon_browseid['Books, Audiocassettes']=44;
-$amazon_browseid['Books, Audio CDs']=69724;
-$amazon_browseid['Books, Business']=3;
-$amazon_browseid['Books, Cooking']=6;
-$amazon_browseid['Books, Home/Garden']=48;
-$amazon_browseid['Books, Literature/Fiction']=17;
-$amazon_browseid['Books, Nonfiction']=53;
-$amazon_browseid['Books, Technical']=173507;
-$amazon_browseid['Books, Romance']=23;
-
-$amazon_browseid['Books, Sports']=26;
-$amazon_browseid['Books, Childrens']=4;
-$amazon_browseid['Books, Engineering']=13643;
-$amazon_browseid['Books, Health']=10;
-$amazon_browseid['Books, Reference']=21;
-$amazon_browseid['Books, Science']=75;
-$amazon_browseid['Books, Biographies']=2;
-$amazon_browseid['Books, Computers/Internet']=5;
-$amazon_browseid['Books, Entertainment']=86;
-
-$amazon_browseid['Books, History']=9;
-$amazon_browseid['Books, Law']=10777;
-$amazon_browseid['Books, Mystery']=18;
-$amazon_browseid['Books, Religion']=22;
-$amazon_browseid['Books, SciFi/Fantasy']=25;
-$amazon_browseid['Books, Travel']=27;
-$amazon_browseid['Books, Arts & Photography']=1;
-$amazon_browseid['Books, e-books']=551440;
-
-$amazon_browseid['Books, Women\'s Fiction']=542654;
-
-$amazon_browseid['Magazines, Top Selling']=599872;
-$amazon_browseid['Magazines, Computer/Internet']=602324;
-$amazon_browseid['Magazines, Family']=602330;
-$amazon_browseid['Magazines, Games']=602336;
-$amazon_browseid['Magazines, History']=602342;
-$amazon_browseid['Magazines, Lifestyle']=602348;
-$amazon_browseid['Magazines, Music']=602354;
-
-$amazon_browseid['Magazines, Pets']=602360;
-$amazon_browseid['Magazines, Espanol']=1040158;
-$amazon_browseid['Magazines, Travel']=602370;
-$amazon_browseid['Magazines, Arts']=602314;
-$amazon_browseid['Magazines, Business']=602320;
-$amazon_browseid['Magazines, Electronics']=602326;
-$amazon_browseid['Magazines, Fashion']=602332;
-$amazon_browseid['Magazines, Home/Garden']=602344;
-$amazon_browseid['Magazines, Literary']=602350;
-
-$amazon_browseid['Magazines, Newspapers']=1040160;
-$amazon_browseid['Magazines, Religion']=602362;
-$amazon_browseid['Magazines, Sport']=602366;
-$amazon_browseid['Magazines, Womens']=602372;
-$amazon_browseid['Magazines, Automotive']=602316;
-$amazon_browseid['Magazines, Childrens']=602322;
-$amazon_browseid['Magazines, Entertainment']=602328;
-$amazon_browseid['Magazines, Food']= 602334;
-$amazon_browseid['Magazines, Health']=602340;
-
-$amazon_browseid['Magazines, International']=602346;
-$amazon_browseid['Magazines, Mens']=602352;
-$amazon_browseid['Magazines, News/Politics']=602358;
-$amazon_browseid['Magazines, Science/Nature']=602364;
-$amazon_browseid['Magazines, Teen']=602368;
-
-$amazon_browseid['DVDs, Top Selling']=286723;
-$amazon_browseid['DVDs, New & Future Releases']=404332;
-$amazon_browseid['DVDs, Animation']=712256;
-
-$amazon_browseid['DVDs, Classic']=163345;
-$amazon_browseid['DVDs, Documentary']=508532;
-$amazon_browseid['DVDs, Horror']=163396;
-$amazon_browseid['DVDs, SciFi/Fantasy']=163431;
-$amazon_browseid['DVDs, Television']=163450;
-$amazon_browseid['DVDs, Action/Adventure']=163296;
-$amazon_browseid['DVDs, Anime/Manga']=517956;
-$amazon_browseid['DVDs, Comedy']=163357;
-$amazon_browseid['DVDs, Drama']=163379;
-
-$amazon_browseid['DVDs, Kids/Family']=163414;
-$amazon_browseid['DVDs, Music Video']=163420;
-$amazon_browseid['DVDs, Special Interest']=163448;
-$amazon_browseid['DVDs, Military/War']=586156;
-$amazon_browseid['DVDs, Mystery/Suspense']=512030;
-$amazon_browseid['DVDs, Sports']=467970;
-$amazon_browseid['DVDs, African-American Cinema']=538708;
-$amazon_browseid['DVDs, International']=163313;
-$amazon_browseid['DVDs, Boxed Sets']=501230;
-
-$amazon_browseid['DVDs, Cult']=466674;
-$amazon_browseid['DVDs, Gay & Lesbian']=301667;
-$amazon_browseid['DVDs, Hong Kong Action']=464426;
-$amazon_browseid['DVDs, Independents']=901596;
-$amazon_browseid['DVDs, Musicals']=508528;
-$amazon_browseid['DVDs, Westerns']=163312 ;
-
-$amazon_browseid['Music, Top Selling']=301668;
-$amazon_browseid['Music, New & Future Releases']=465672;
-$amazon_browseid['Music, Classical']=85;
-$amazon_browseid['Music, Dance/DJ']=7;
-$amazon_browseid['Music, Pop']=37;
-$amazon_browseid['Music, Rock']=40;
-$amazon_browseid['Music, Alternative']=30;
-$amazon_browseid['Music, Classic Rock']=67204;
-$amazon_browseid['Music, Jazz']=34;
-
-$amazon_browseid['Music, Rap']=38;
-$amazon_browseid['Music, Soundtracks']=42;
-$amazon_browseid['Music, Blues']=31;
-$amazon_browseid['Music, Christian']=173429;
-$amazon_browseid['Music, Country']=16;
-$amazon_browseid['Music, Latin']=289122;
-$amazon_browseid['Music, R/B']=39 ;
-
-$amazon_browseid['Software, Top Selling']=491286;
-
-$amazon_browseid['Software, Communication']=229636;
-$amazon_browseid['Software, Graphics']=229614;
-$amazon_browseid['Software, Linux']=290562;
-$amazon_browseid['Software, Operating Sys']=229653;
-$amazon_browseid['Software, Downloadable']=531448;
-$amazon_browseid['Software, Utilities']=229672;
-$amazon_browseid['Software, Business']=229535;
-$amazon_browseid['Software, Education']=229563;
-$amazon_browseid['Software, Home/Hobby']=229624;
-
-$amazon_browseid['Software, Mac']=229643;
-$amazon_browseid['Software, Finance']=229540;
-$amazon_browseid['Software, Handhelds']=229663;
-$amazon_browseid['Software, Video']=497022;
-$amazon_browseid['Software, Childrens']=229548;
-$amazon_browseid['Software, Games']=229575;
-$amazon_browseid['Software, Language/Travel']=497026;
-$amazon_browseid['Software, Networking']=229637;
-$amazon_browseid['Software, Programming']=229667;
-
-$amazon_browseid['Software, Web Dev']=497024 ;
-
-$amazon_browseid['VHS, Top Selling']=286721;
-$amazon_browseid['VHS, New & Future Releases']=286747;
-$amazon_browseid['VHS, Animation']=712260;
-$amazon_browseid['VHS, Classic']=127;
-$amazon_browseid['VHS, Documentary']=508530;
-$amazon_browseid['VHS, Horror']=131;
-$amazon_browseid['VHS, SciFi/Fantasy']=144;
-
-$amazon_browseid['VHS, Television']=136;
-$amazon_browseid['VHS, Action/Adventure']=141;
-$amazon_browseid['VHS, Anime/Manga']=281300;
-$amazon_browseid['VHS, Comedy']=128;
-$amazon_browseid['VHS, Drama']=129;
-$amazon_browseid['VHS, Kids/Family']=132;
-$amazon_browseid['VHS, Music Video']=133;
-$amazon_browseid['VHS, Special Interest']=135;
-$amazon_browseid['VHS, Military/War']=586154;
-
-$amazon_browseid['VHS, Mystery/Suspense']=512026;
-$amazon_browseid['VHS, Sports']=169798;
-
-$amazon_browseid['Video Games, Top Selling']=471280;
-$amazon_browseid['Video Games, Game Cube']=541022;
-$amazon_browseid['Video Games, Play Station 2']=301712;
-$amazon_browseid['Video games, Game Boy']=229783;
-$amazon_browseid['Video Games, Mac']=229647;
-$amazon_browseid['Video Games, PC']=229575;
-
-$amazon_browseid['Video Games, Game Boy Advance']=541020;
-$amazon_browseid['Video Games, Xbox']=537504;
-
-$amazon_browseid['Kitchen, Top Selling']=491864;
-$amazon_browseid['Kitchen, Outlet']=526844;
-$amazon_browseid['Kitchen, Coffee/Tea']=289742;
-$amazon_browseid['Kitchen, Cookware']=289814;
-$amazon_browseid['Kitchen, Appliances']=289913;
-$amazon_browseid['Kitchen, Baking']=289668;
-
-$amazon_browseid['Kitchen, Housewares']=510080;
-$amazon_browseid['Kitchen, Tableware']=289891;
-$amazon_browseid['Kitchen, Bar Tools']=289728;
-$amazon_browseid['Kitchen, Gadgets']=289754;
-$amazon_browseid['Kitchen, Knives']=289851;
-
-$amazon_browseid['Toys, Top Selling']=491290;
-$amazon_browseid['Toys, Crafts']=171859;
-$amazon_browseid['Toys, Dolls']=171569;
-
-$amazon_browseid['Toys, Games']=171689;
-$amazon_browseid['Toys, Outdoor']=171960;
-$amazon_browseid['Toys, Action Figures']=171662;
-$amazon_browseid['Toys, Bikes']=569472;
-$amazon_browseid['Toys, Electronics']=720366;
-$amazon_browseid['Toys, Stuffed Animals']=171992;
-$amazon_browseid['Toys, Learning']=171911;
-$amazon_browseid['Toys, Building']=171814;
-$amazon_browseid['Toys, Furniture']=172790;
-
-$amazon_browseid['Toys, Puzzles']=171744;
-$amazon_browseid['Toys, Vehicles']=171600;
-
-$amazon_browseid['Outdoor, Top Selling']=468250;
-$amazon_browseid['Outdoor, Outlet']=526814 ;
-$amazon_browseid['Outdoor, Gifts']=553648;
-$amazon_browseid['Outdoor, Lawn/Garden Tools']=915484;
-$amazon_browseid['Outdoor, Pest Control']=553844;
-$amazon_browseid['Outdoor, Birding']=553632;
-
-$amazon_browseid['Outdoor, Grills']=553760;
-$amazon_browseid['Outdoor, Camping']=892986;
-$amazon_browseid['Outdoor, Dcor']=553788;
-$amazon_browseid['Outdoor, Heating & Lighting']=553778;
-$amazon_browseid['Outdoor, Furniture']=553824;
-
-$amazon_browseid['Camera, Top Selling']=513080;
-$amazon_browseid['Camera, Accessories']=172435;
-$amazon_browseid['Camera, Binoculars']=297842;
-
-$amazon_browseid['Camera, Camcorders']=172421;
-$amazon_browseid['Camera, Digital Cameras']=281052;
-$amazon_browseid['Camera, Film Cameras']=499106;
-$amazon_browseid['Camera, Frames & Albums']=499176;
-$amazon_browseid['Camera, Printers & Scanners']=499328;
-$amazon_browseid['Camera, Projectors']=525462;
-$amazon_browseid['Camera, Telescopes & Microscopes']=660408;
-
-
-$amazon_browseid['Computers, Top Selling']=565118;
-$amazon_browseid['Computers, AMD']=602286;
-$amazon_browseid['Computers, Apple']=565124;
-$amazon_browseid['Computers, HP']= 565120;
-$amazon_browseid['Computers, IBM']=603128;
-$amazon_browseid['Computers, Intel']=565122;
-$amazon_browseid['Computers, Sony']=565126;
-$amazon_browseid['Computers, Toshiba']=598398;
-
-
-$amazon_browseid['Tools, Top Selling']=468240;
-$amazon_browseid['Tools, Outlet']=527694;
-$amazon_browseid['Tools, Electrical']=495266;
-$amazon_browseid['Tools, Heating & Cooling']=495346;
-$amazon_browseid['Tools, Lighting']=495224;
-$amazon_browseid['Tools, Automotive']=553294;
-$amazon_browseid['Tools, Hand Tools']=551238;
-
-$amazon_browseid['Tools, Equipment']=551240;
-$amazon_browseid['Tools, Power Tools']=551236;
-$amazon_browseid['Tools, Models']=923468;
-$amazon_browseid['Tools, Hardware']=511228;
-$amazon_browseid['Tools, Lawn/Garden']=551242;
-$amazon_browseid['Tools, Accessories']=552262;
-$amazon_browseid['Tools, Air Tools']=552684;
-$amazon_browseid['Tools, Cordless Tools']=552738;
-$amazon_browseid['Tools, Sanders']=552876;
-
-$amazon_browseid['Tools, Saws']=552894;
-$amazon_browseid['Tools, Painting']=228899;
-
-
-$amazon_browseid['Electronics, Top Selling']=172282;
-$amazon_browseid['Electronics, Outlet']=301793;
-$amazon_browseid['Electronics, Accessories & Supplies']=281407;
-$amazon_browseid['Electronics, Car Accessories']=226184;
-$amazon_browseid['Electronics, Clocks & Clock Radios']=509280;
-
-$amazon_browseid['Electronics, Computer Add-Ons']=172455;
-$amazon_browseid['Electronics, DVD Players']=172514;
-$amazon_browseid['Electronics, Gadgets']=172517;
-$amazon_browseid['Electronics, GPS & Navigation']=172526;
-$amazon_browseid['Electronics, Handhelds & PDAs']=172594;
-$amazon_browseid['Electronics, Home Audio']=172531;
-$amazon_browseid['Electronics, Home Office']=172574;
-$amazon_browseid['Electronics, Home Video']=172592;
-
-$amazon_browseid['Electronics, Phones']=172606;
-$amazon_browseid['Electronics, Portable Audio & Video']=172623;
-$amazon_browseid['Electronics, Printers']=172635;
-$amazon_browseid['Electronics, TVs']=172659;
-$amazon_browseid['Electronics, VCRs & DVRs']=172669 ;
-
-$amazon_browseid['Baby, Backpacks & Carriers']=542456;
-$amazon_browseid['Baby, Car Seats']=541560;
-
-$amazon_browseid['Baby, Strollers']=541562;
-$amazon_browseid['Baby, Travel Systems']=542442;
-$amazon_browseid['Baby, Playards']=542468;
-$amazon_browseid['Baby, Bedding']=541574;
-$amazon_browseid['Baby, Furniture']=541576;
-$amazon_browseid['Baby, Breast-feeding']=541568;
-$amazon_browseid['Baby, Bottle Feeding']=541566;
-$amazon_browseid['Baby, Solid Feeding']=541570;
-$amazon_browseid['Baby, Highchairs']=542302;
-
-$amazon_browseid['Baby, Play Centers']=548050;
-$amazon_browseid['Baby, Swings & Bouncers']=542470;
-$amazon_browseid['Baby, Toys: Birth - 12 months']=731816;
-$amazon_browseid['Baby, Toys: 12 - 24 months']=731876;
-$amazon_browseid['Baby, Toys: 2 years']=731924 ;
-?>
View
152 example/amazon/amazon_soap.php
@@ -1,152 +0,0 @@
-<?php
-require_once 'amazon_types.php';
-require_once 'SOAP/Client.php';
-
-class AmazonSearchService {
- var $devtag;
- var $associateid;
- var $client;
-
- function AmazonSearchService($devtag, $associateid='webservices-20') {
- $this->client = new SOAP_Client("http://soap.amazon.com/onca/soap", 0);
-
- // tell the client to use our type classes above
- $this->client->_auto_translation = true;
-
- // this gets set into all search classes
- $this->devtag = $devtag;
- $this->associateid = $associateid;
- }
-
- function keywordSearchRequest($KeywordSearchRequest) {
- // KeywordSearchRequest is a ComplexType, refer to wsdl for more info
- $KeywordSearchRequest->devtag = $this->devtag;
- $KeywordSearchRequest =& new SOAP_Value('KeywordSearchRequest','{urn:PI/DevCentral/SoapService}KeywordRequest',$KeywordSearchRequest);
- //$KeywordRequest = new SOAP_Value('{urn:PI/DevCentral/SoapService}KeywordRequest',false,$KeywordRequest);
- return $this->client->call("KeywordSearchRequest",
- $v = array("KeywordSearchRequest"=>$KeywordSearchRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function BrowseNodeSearchRequest($BrowseNodeRequest) {
- // BrowseNodeSearchRequest is a ComplexType, refer to wsdl for more info
- $BrowseNodeRequest->devtag = $this->devtag;
- $BrowseNodeRequest =& new SOAP_Value('BrowseNodeSearchRequest','{urn:PI/DevCentral/SoapService}BrowseNodeRequest',$BrowseNodeRequest);
- return $this->client->call("BrowseNodeSearchRequest",
- $v = array("BrowseNodeSearchRequest"=>$BrowseNodeRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function asinSearchRequest($AsinRequest) {
- // AsinSearchRequest is a ComplexType, refer to wsdl for more info
- $AsinRequest->devtag = $this->devtag;
- $AsinRequest =& new SOAP_Value('AsinSearchRequest','{urn:PI/DevCentral/SoapService}AsinRequest',$AsinRequest);
- return $this->client->call("AsinSearchRequest",
- $v = array("AsinSearchRequest"=>$AsinRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
- function upcSearchRequest($UpcRequest) {
- // UpcSearchRequest is a ComplexType, refer to wsdl for more info
- $UpcRequest->devtag = $this->devtag;
- $UpcRequest =& new SOAP_Value('UpcSearchRequest','{urn:PI/DevCentral/SoapService}UpcRequest',$UpcRequest);
- return $this->client->call("UpcSearchRequest",
- $v = array("UpcSearchRequest"=>$UpcRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function authorSearchRequest($AuthorRequest) {
- // AuthorSearchRequest is a ComplexType, refer to wsdl for more info
- $AuthorRequest->devtag = $this->devtag;
- $AuthorRequest =& new SOAP_Value('AuthorSearchRequest','{urn:PI/DevCentral/SoapService}AuthorRequest',$AuthorRequest);
- return $this->client->call("AuthorSearchRequest",
- $v = array("AuthorSearchRequest"=>$AuthorRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function artistSearchRequest($ArtistRequest) {
- // ArtistSearchRequest is a ComplexType, refer to wsdl for more info
- $ArtistRequest->devtag = $this->devtag;
- $ArtistRequest =& new SOAP_Value('ArtistSearchRequest','{urn:PI/DevCentral/SoapService}ArtistRequest',$ArtistRequest);
- return $this->client->call("ArtistSearchRequest",
- $v = array("ArtistSearchRequest"=>$ArtistRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function actorSearchRequest($ActorRequest) {
- // ActorSearchRequest is a ComplexType, refer to wsdl for more info
- $ActorRequest->devtag = $this->devtag;
- $ActorRequest =& new SOAP_Value('ActorSearchRequest','{urn:PI/DevCentral/SoapService}ActorRequest',$ActorRequest);
- return $this->client->call("ActorSearchRequest",
- $v = array("ActorSearchRequest"=>$ActorRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
- function manufacturerSearchRequest($ManufacturerRequest) {
- // ManufacturerSearchRequest is a ComplexType, refer to wsdl for more info
- $ManufacturerRequest->devtag = $this->devtag;
- $ManufacturerRequest =& new SOAP_Value('ManufacturerSearchRequest','{urn:PI/DevCentral/SoapService}ManufacturerRequest',$ManufacturerRequest);
- return $this->client->call("ManufacturerSearchRequest",
- $v = array("ManufacturerSearchRequest"=>$ManufacturerRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function directorSearchRequest($DirectorRequest) {
- // DirectorSearchRequest is a ComplexType, refer to wsdl for more info
- $DirectorRequest->devtag = $this->devtag;
- $DirectorRequest =& new SOAP_Value('DirectorSearchRequest','{urn:PI/DevCentral/SoapService}DirectorRequest',$DirectorRequest);
- return $this->client->call("DirectorSearchRequest",
- $v = array("DirectorSearchRequest"=>$DirectorRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
- function ListManiaSearchRequest($ListManiaRequest) {
- // ListManiaSearchRequest is a ComplexType, refer to wsdl for more info
- $ListManiaRequest->devtag = $this->devtag;
- $ListManiaRequest =& new SOAP_Value('ListManiaSearchRequest','{urn:PI/DevCentral/SoapService}ListManiaRequest',$ListManiaRequest);
- return $this->client->call("ListManiaSearchRequest",
- $v = array("ListManiaSearchRequest"=>$ListManiaRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-
- function similaritySearchRequest($SimilarityRequest) {
- // SimilaritySearchRequest is a ComplexType, refer to wsdl for more info
- $SimilarityRequest->devtag = $this->devtag;
- $SimilarityRequest =& new SOAP_Value('SimilaritySearchRequest','{urn:PI/DevCentral/SoapService}SimilarityRequest',$SimilarityRequest);
- return $this->client->call("SimilaritySearchRequest",
- $v = array("SimilaritySearchRequest"=>$SimilarityRequest),
- array('namespace'=>'urn:PI/DevCentral/SoapService',
- 'soapaction'=>'urn:PI/DevCentral/SoapService',
- 'style'=>'rpc',
- 'use'=>'encoded'));
- }
-}
-
-?>
View
283 example/amazon/amazon_types.php
@@ -1,283 +0,0 @@
-<?php
-
-/* response classes */
-
-class ProductInfo {
- var $Details; /* DetailsArray */
-
- function displayList($type = 'lite')
- {
- print '<table border="1">';
- foreach ($this->Details as $detail) {
- print '<tr><td>'.$detail->listDisplay($type).'</tr></td>';
- }
- print '</table>';
- }
-}
-
-class Details {
- var $Url; /* string */
- var $Asin; /* string */
- var $ProductName; /* string */
- var $Catalog; /* string */
- var $KeyPhrases; /* KeyPhraseArray */
- var $Artists; /*ArtistArray */
- var $Authors; /* AuthorArray */
- var $Mpn; /* string */
- var $Starring; /* StarringArray */
- var $Directors; /* DirectorArray */
- var $TheatricalReleaseDate; /* string */
- var $ReleaseDate; /* string */
- var $Manufacturer; /* string */
- var $Distributor; /* string */
- var $ImageUrlSmall; /* string */
- var $ImageUrlMedium; /* string */
- var $ImageUrlLarge; /* string */
- var $ListPrice; /* string */
- var $OurPrice; /* string */
- var $UsedPrice; /* string */
- var $RefurbishedPrice; /* string */
- var $CollectiblePrice; /* string */
- var $ThirdPartyNewPrice; /* string */
- var $SalesRank; /* string */
- var $BrowseList; /* BrowseNodeArray */
- var $Media; /* string */
- var $ReadingLevel; /* string */
- var $Publisher; /* string */
- var $NumMedia; /* string */
- var $Isbn; /* string */
- var $Features; /* FeaturesArray */
- var $MpaaRating; /* string */
- var $EsrbRating; /* string */
- var $AgeGroup; /* string */
- var $Availability; /* string */
- var $Upc; /* string */
- var $Tracks; /* TrackArray */
- var $Accessories; /* AccessoryArray */
- var $Platforms; /* PlatformArray */
- var $Encoding; /* string */
- var $Reviews; /* Reviews */
- var $SimilarProducts; /* SimilarProductsArray */
- var $Lists; /* ListsArray */
-
- function listDisplay($type)
- {
- $end = '';
- switch($type) {
- case 'heavy':
- $end = "Manufacturer: $this->Manufacturer<br/>\n";
- $end .= "Isbn: $this->Isbn<br/>\n";
- if (count($this->Reviews->CustomerReviews)) {
- foreach($this->Reviews->CustomerReviews as $review) {
- $end .= $review->display();
- }
- }
- default:
- $html= "<a href='$this->Url'><img src='$this->ImageUrlSmall' border='0' align='left'/>$this->ProductName</a><br/>\n";
- if (is_array($this->Authors)) {
- $authors = join($this->Authors, ", ");
- $html.= "by $authors<br/>\n";
- }
- $html.= "Price: $this->OurPrice";
- if (isset($this->Reviews->AvgCustomerRating)) $html .= " Rating: {$this->Reviews->AvgCustomerRating}";
- $html .= "<br/>\n";
- return $html.$end;
- break;
- }
- }
-
- function pageDisplay($displayAs)
- {
- }
-}
-
-class KeyPhrase {
- var $KeyPhrase; /* string */
- var $Type; /* string */
-}
-
-class Track {
- var $TrackName; /* string */
- var $ByArtist; /* string */
-}
-
-class BrowseNode {
- var $BrowseId; /* string */
- var $BrowseName; /* string */
-}
-
-class Reviews {
- var $AvgCustomerRating; /* string */
- var $CustomerReviews; /* CustomerReviewArray */
-}
-
-class CustomerReview {
- var $Rating; /* string */
- var $Summary; /* string */
- var $Comment; /* string */
-
-
- function display()
- {
- $text = "Rating: $this->Rating<br/>\n";
- $text .= "Summary: $this->Summary<br/>\n";
- $text .= "<p>$this->Comment</p>\n";
- return $text;
- }
-}
-
-/* request classes */
-
-class BaseRequest {
- var $devtag; /* string */
- var $tag='webservices-20'; /* string */
- var $type='lite'; /* string */
- var $version = '1.0'; /* string */
-
- function BaseRequest(&$info)
- {
- if (isset($info['search_tag'])) $this->tag = $info['search_tag'];
- if (isset($info['search_type'])) $this->type = $info['search_type'];
- if (isset($info['search_devtag'])) $this->devtag = $info['search_devtag'];
- }
-}
-
-class PagedRequest extends BaseRequest {
- var $page=1; /* string */
- var $mode='books'; /* string */
-
- function PagedRequest(&$info)
- {
- if (isset($info['search_page'])) $this->page = $info['search_page'];
- if (isset($info['search_mode'])) $this->mode = $info['search_mode'];
- parent::BaseRequest($info);
- }
-}
-
-class KeywordRequest extends PagedRequest {
- var $keyword; /* string */
-
- function KeywordRequest($info)
- {
- if (!$info) return;
- $this->keyword = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class BrowseNodeRequest extends PagedRequest {
- var $browse_node; /* string */
-
- function BrowseNodeRequest($info)
- {
- if (!$info) return;
- $this->browse_node = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class AsinRequest extends BaseRequest {
- var $asin; /* string */
-
- function AsinRequest($info)
- {
- if (!$info) return;
- $this->asin = $info['search_words'];
- parent::BaseRequest($info);
- }
-}
-
-class UpcRequest extends BaseRequest {
- var $upc; /* string */
- var $mode='books'; /* string */
-
- function UpcRequest(&$info)
- {
- if (!$info) return;
- $this->upc = $info['search_words'];
- if (isset($info['search_mode'])) $this->mode = $info['search_mode'];
- parent::BaseRequest($info);
- }
-}
-
-class ArtistRequest extends PagedRequest {
- var $artist; /* string */
-
- function ArtistRequest($info)
- {
- if (!$info) return;
- $this->artist = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class AuthorRequest extends PagedRequest {
- var $author; /* string */
-
- function AuthorRequest($info)
- {
- if (!$info) return;
- $this->author = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class ActorRequest extends PagedRequest {
- var $actor; /* string */
-
- function ActorRequest($info)
- {
- if (!$info) return;
- $this->actor = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class DirectorRequest extends PagedRequest {
- var $director; /* string */
-
- function DirectorRequest($info)
- {
- if (!$info) return;
- $this->director = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class ManufacturerRequest extends PagedRequest {
- var $manufacturer; /* string */
-
- function ManufacturerRequest($info)
- {
- if (!$info) return;
- $this->manufacturer = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class ListManiaRequest extends PagedRequest {
- var $lm_id; /* string */
-
- function ListManiaRequest($info)
- {
- if (!$info) return;
- $this->lm_id = $info['search_words'];
- parent::PagedRequest($info);
- }
-}
-
-class SimilarityRequest extends BaseRequest {
- var $asin; /* string */
- var $mode='books'; /* string */
-
- function SimilarityRequest($info)
- {
- if (!$info) return;
- $this->asin = $info['search_words'];
- if (isset($info['search_mode'])) $this->mode = $info['search_mode'];
- parent::BaseRequest($info);
- }
-}
-
-
-?>
View
5 example/amazon/config.php.dist
@@ -1,5 +0,0 @@
-<?php
-/* you need to get an id from amazon to run this,
- and rename this file to config.php */
-$amazon_id = 'XXXXXXXXXXXXXXX';
-?>
View
14 example/amazon/index.php
@@ -1,14 +0,0 @@
-<?php
-#ini_set('include_path','.;d:/src/pear;c:/php/pear;');
-require_once 'amazon.php';
-require_once 'config.php';
-
-$amazon = new Amazon('soap',$amazon_id);
-$amazon->SearchForm($_REQUEST);
-if (count($_REQUEST)) {
- if ($amazon->Search($_REQUEST)) {
- // display a second search form at the bottom of page
- $amazon->SearchForm($_REQUEST);
- }
-}
-?>
View
287 example/amazon/modes.php
@@ -1,287 +0,0 @@
-<?php
-$modes['Books, Top Selling']=1000;
-$modes['Books, Bargain']=45;
-
-$modes['Books, Audiocassettes']=44;
-$modes['Books, Audio CDs']=69724;
-$modes['Books, Business']=3;
-$modes['Books, Cooking']=6;
-$modes['Books, Home/Garden']=48;
-$modes['Books, Literature/Fiction']=17;
-$modes['Books, Nonfiction']=53;
-$modes['Books, Technical']=173507;
-$modes['Books, Romance']=23;
-
-$modes['Books, Sports']=26;
-$modes['Books, Childrens']=4;
-$modes['Books, Engineering']=13643;
-$modes['Books, Health']=10;
-$modes['Books, Reference']=21;
-$modes['Books, Science']=75;
-$modes['Books, Biographies']=2;
-$modes['Books, Computers/Internet']=5;
-$modes['Books, Entertainment']=86;
-
-$modes['Books, History']=9;
-$modes['Books, Law']=10777;
-$modes['Books, Mystery']=18;
-$modes['Books, Religion']=22;
-$modes['Books, SciFi/Fantasy']=25;
-$modes['Books, Travel']=27;
-$modes['Books, Arts & Photography']=1;
-$modes['Books, e-books']=551440;
-
-$modes['Books, Women\'s Fiction']=542654;
-
-$modes['Magazines, Top Selling']=599872;
-$modes['Magazines, Computer/Internet']=602324;
-$modes['Magazines, Family']=602330;
-$modes['Magazines, Games']=602336;
-$modes['Magazines, History']=602342;
-$modes['Magazines, Lifestyle']=602348;
-$modes['Magazines, Music']=602354;
-
-$modes['Magazines, Pets']=602360;
-$modes['Magazines, Espanol']=1040158;
-$modes['Magazines, Travel']=602370;
-$modes['Magazines, Arts']=602314;
-$modes['Magazines, Business']=602320;
-$modes['Magazines, Electronics']=602326;
-$modes['Magazines, Fashion']=602332;
-$modes['Magazines, Home/Garden']=602344;
-$modes['Magazines, Literary']=602350;
-
-$modes['Magazines, Newspapers']=1040160;
-$modes['Magazines, Religion']=602362;
-$modes['Magazines, Sport']=602366;
-$modes['Magazines, Womens']=602372;
-$modes['Magazines, Automotive']=602316;
-$modes['Magazines, Childrens']=602322;
-$modes['Magazines, Entertainment']=602328;
-$modes['Magazines, Food']= 602334;
-$modes['Magazines, Health']=602340;
-
-$modes['Magazines, International']=602346;
-$modes['Magazines, Mens']=602352;
-$modes['Magazines, News/Politics']=602358;
-$modes['Magazines, Science/Nature']=602364;
-$modes['Magazines, Teen']=602368;
-
-$modes['DVDs, Top Selling']=286723;
-$modes['DVDs, New & Future Releases']=404332;
-$modes['DVDs, Animation']=712256;
-
-$modes['DVDs, Classic']=163345;
-$modes['DVDs, Documentary']=508532;
-$modes['DVDs, Horror']=163396;
-$modes['DVDs, SciFi/Fantasy']=163431;
-$modes['DVDs, Television']=163450;
-$modes['DVDs, Action/Adventure']=163296;
-$modes['DVDs, Anime/Manga']=517956;
-$modes['DVDs, Comedy']=163357;
-$modes['DVDs, Drama']=163379;
-
-$modes['DVDs, Kids/Family']=163414;
-$modes['DVDs, Music Video']=163420;
-$modes['DVDs, Special Interest']=163448;
-$modes['DVDs, Military/War']=586156;
-$modes['DVDs, Mystery/Suspense']=512030;
-$modes['DVDs, Sports']=467970;
-$modes['DVDs, African-American Cinema']=538708;
-$modes['DVDs, International']=163313;
-$modes['DVDs, Boxed Sets']=501230;
-
-$modes['DVDs, Cult']=466674;
-$modes['DVDs, Gay & Lesbian']=301667;
-$modes['DVDs, Hong Kong Action']=464426;
-$modes['DVDs, Independents']=901596;
-$modes['DVDs, Musicals']=508528;
-$modes['DVDs, Westerns']=163312 ;
-$modes['Music, Top Selling']=301668;
-$modes['Music, New & Future Releases']=465672;
-$modes['Music, Classical']=85;
-$modes['Music, Dance/DJ']=7;
-$modes['Music, Pop']=37;
-$modes['Music, Rock']=40;
-$modes['Music, Alternative']=30;
-$modes['Music, Classic Rock']=67204;
-$modes['Music, Jazz']=34;
-
-$modes['Music, Rap']=38;
-$modes['Music, Soundtracks']=42;
-$modes['Music, Blues']=31;
-$modes['Music, Christian']=173429;
-$modes['Music, Country']=16;
-$modes['Music, Latin']=289122;
-$modes['Music, R/B']=39 ;
-$modes['Software, Top Selling']=491286;
-
-$modes['Software, Communication']=229636;
-$modes['Software, Graphics']=229614;
-$modes['Software, Linux']=290562;
-$modes['Software, Operating Sys']=229653;
-$modes['Software, Downloadable']=531448;
-$modes['Software, Utilities']=229672;
-$modes['Software, Business']=229535;
-$modes['Software, Education']=229563;
-$modes['Software, Home/Hobby']=229624;
-
-$modes['Software, Mac']=229643;
-$modes['Software, Finance']=229540;
-$modes['Software, Handhelds']=229663;
-$modes['Software, Video']=497022;
-$modes['Software, Childrens']=229548;
-$modes['Software, Games']=229575;
-$modes['Software, Language/Travel']=497026;
-$modes['Software, Networking']=229637;
-$modes['Software, Programming']=229667;
-
-$modes['Software, Web Dev']=497024 ;
-$modes['VHS, Top Selling']=286721;
-$modes['VHS, New & Future Releases']=286747;
-$modes['VHS, Animation']=712260;
-$modes['VHS, Classic']=127;
-$modes['VHS, Documentary']=508530;
-$modes['VHS, Horror']=131;
-$modes['VHS, SciFi/Fantasy']=144;
-
-$modes['VHS, Television']=136;
-$modes['VHS, Action/Adventure']=141;
-$modes['VHS, Anime/Manga']=281300;
-$modes['VHS, Comedy']=128;
-$modes['VHS, Drama']=129;
-$modes['VHS, Kids/Family']=132;
-$modes['VHS, Music Video']=133;
-$modes['VHS, Special Interest']=135;
-$modes['VHS, Military/War']=586154;
-
-$modes['VHS, Mystery/Suspense']=512026;
-$modes['VHS, Sports']=169798;
-$modes['Video Games, Top Selling']=471280;
-$modes['Video Games, Game Cube']=541022;
-$modes['Video Games, Play Station 2']=301712;
-$modes['Video games, Game Boy']=229783;
-$modes['Video Games, Mac']=229647;
-$modes['Video Games, PC']=229575;
-
-$modes['Video Games, Game Boy Advance']=541020;
-$modes['Video Games, Xbox']=537504;
-$modes['Kitchen, Top Selling']=491864;
-$modes['Kitchen, Outlet']=526844;
-$modes['Kitchen, Coffee/Tea']=289742;
-$modes['Kitchen, Cookware']=289814;
-$modes['Kitchen, Appliances']=289913;
-$modes['Kitchen, Baking']=289668;
-
-$modes['Kitchen, Housewares']=510080;
-$modes['Kitchen, Tableware']=289891;
-$modes['Kitchen, Bar Tools']=289728;
-$modes['Kitchen, Gadgets']=289754;
-$modes['Kitchen, Knives']=289851;
-$modes['Toys, Top Selling']=491290;
-$modes['Toys, Crafts']=171859;
-$modes['Toys, Dolls']=171569;
-
-$modes['Toys, Games']=171689;
-$modes['Toys, Outdoor']=171960;
-$modes['Toys, Action Figures']=171662;
-$modes['Toys, Bikes']=569472;
-$modes['Toys, Electronics']=720366;
-$modes['Toys, Stuffed Animals']=171992;
-$modes['Toys, Learning']=171911;
-$modes['Toys, Building']=171814;
-$modes['Toys, Furniture']=172790;
-
-$modes['Toys, Puzzles']=171744;
-$modes['Toys, Vehicles']=171600;
-$modes['Outdoor, Top Selling']=468250;
-$modes['Outdoor, Outlet']=526814 ;
-$modes['Outdoor, Gifts']=553648;
-$modes['Outdoor, Lawn/Garden Tools']=915484;
-$modes['Outdoor, Pest Control']=553844;
-$modes['Outdoor, Birding']=553632;
-
-$modes['Outdoor, Grills']=553760;
-$modes['Outdoor, Camping']=892986;
-$modes['Outdoor, Dcor']=553788;
-$modes['Outdoor, Heating & Lighting']=553778;
-$modes['Outdoor, Furniture']=553824;
-$modes['Camera, Top Selling']=513080;
-$modes['Camera, Accessories']=172435;
-$modes['Camera, Binoculars']=297842;
-
-$modes['Camera, Camcorders']=172421;
-$modes['Camera, Digital Cameras']=281052;
-$modes['Camera, Film Cameras']=499106;
-$modes['Camera, Frames & Albums']=499176;
-$modes['Camera, Printers & Scanners']=499328;
-$modes['Camera, Projectors']=525462;
-$modes['Camera, Telescopes & Microscopes']=660408;
-$modes['Computers, Top Selling']=565118;
-$modes['Computers, AMD']=602286;
-$modes['Computers, Apple']=565124;
-$modes['Computers, HP']= 565120;
-$modes['Computers, IBM']=603128;
-$modes['Computers, Intel']=565122;
-$modes['Computers, Sony']=565126;
-$modes['Computers, Toshiba']=598398;
-$modes['Tools, Top Selling']=468240;
-$modes['Tools, Outlet']=527694;
-$modes['Tools, Electrical']=495266;
-$modes['Tools, Heating & Cooling']=495346;
-$modes['Tools, Lighting']=495224;
-$modes['Tools, Automotive']=553294;
-$modes['Tools, Hand Tools']=551238;
-
-$modes['Tools, Equipment']=551240;
-$modes['Tools, Power Tools']=551236;
-$modes['Tools, Models']=923468;
-$modes['Tools, Hardware']=511228;
-$modes['Tools, Lawn/Garden']=551242;
-$modes['Tools, Accessories']=552262;
-$modes['Tools, Air Tools']=552684;
-$modes['Tools, Cordless Tools']=552738;
-$modes['Tools, Sanders']=552876;
-
-$modes['Tools, Saws']=552894;
-$modes['Tools, Painting']=228899;
-
-$modes['Electronics, Top Selling']=172282;
-$modes['Electronics, Outlet']=301793;
-$modes['Electronics, Accessories & Supplies']=281407;
-$modes['Electronics, Car Accessories']=226184;
-$modes['Electronics, Clocks & Clock Radios']=509280;
-
-$modes['Electronics, Computer Add-Ons']=172455;
-$modes['Electronics, DVD Players']=172514;
-$modes['Electronics, Gadgets']=172517;
-$modes['Electronics, GPS & Navigation']=172526;
-$modes['Electronics, Handhelds & PDAs']=172594;
-$modes['Electronics, Home Audio']=172531;
-$modes['Electronics, Home Office']=172574;
-$modes['Electronics, Home Video']=172592;
-
-$modes['Electronics, Phones']=172606;
-$modes['Electronics, Portable Audio & Video']=172623;
-$modes['Electronics, Printers']=172635;
-$modes['Electronics, TVs']=172659;
-$modes['Electronics, VCRs & DVRs']=172669 ;
-$modes['Baby, Backpacks & Carriers']=542456;
-$modes['Baby, Car Seats']=541560;
-
-$modes['Baby, Strollers']=541562;
-$modes['Baby, Travel Systems']=542442;
-$modes['Baby, Playards']=542468;
-$modes['Baby, Bedding']=541574;
-$modes['Baby, Furniture']=541576;
-$modes['Baby, Breast-feeding']=541568;
-$modes['Baby, Bottle Feeding']=541566;
-$modes['Baby, Solid Feeding']=541570;
-$modes['Baby, Highchairs']=542302;
-
-$modes['Baby, Play Centers']=548050;
-$modes['Baby, Swings & Bouncers']=542470;
-$modes['Baby, Toys: Birth - 12 months']=731816;
-$modes['Baby, Toys: 12 - 24 months']=731876;
-$modes['Baby, Toys: 2 years']=731924 ;
-?>

No commit comments for this range

Something went wrong with that request. Please try again.