<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Accessing Amazon Product Advertising API</title>
	<atom:link href="http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/</link>
	<description>/* PHP &#38; MySQL Journal */</description>
	<lastBuildDate>Fri, 27 Jan 2012 16:39:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: john</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2247</link>
		<dc:creator>john</dc:creator>
		<pubDate>Tue, 10 Aug 2010 11:32:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2247</guid>
		<description>Hi Sameer,
The code is working fine if i query amazon with 10 digit ISBN code. but if i query the amazon with 13 digit ISBN number then it gives excetion error. 
Have  look on my function :-
    public function getItemByAsin($asin_code)
        {
            $parameters = array(&quot;Operation&quot;     =&gt; &quot;ItemLookup&quot;,
                                &quot;ItemId&quot;        =&gt; $asin_code,
                                &quot;ResponseGroup&quot; =&gt; &quot;Medium&quot;);
                                
            $xml_response = $this-&gt;queryAmazon($parameters);
            
            return $this-&gt;verifyXmlResponse($xml_response);
        }

$isbn_number = 978-0979181511; //(gives error)
//$isbn_number =  0979181511;  // (runs without error)

$result1 = $obj-&gt;getItemByAsin($isbn_number);

Both the ISBN number belongs to same book. even then they are showing error.. please check and reslove this issue.......</description>
		<content:encoded><![CDATA[<p>Hi Sameer,<br />
The code is working fine if i query amazon with 10 digit ISBN code. but if i query the amazon with 13 digit ISBN number then it gives excetion error.<br />
Have  look on my function :-<br />
    public function getItemByAsin($asin_code)<br />
        {<br />
            $parameters = array(&#8220;Operation&#8221;     =&gt; &#8220;ItemLookup&#8221;,<br />
                                &#8220;ItemId&#8221;        =&gt; $asin_code,<br />
                                &#8220;ResponseGroup&#8221; =&gt; &#8220;Medium&#8221;);</p>
<p>            $xml_response = $this-&gt;queryAmazon($parameters);</p>
<p>            return $this-&gt;verifyXmlResponse($xml_response);<br />
        }</p>
<p>$isbn_number = 978-0979181511; //(gives error)<br />
//$isbn_number =  0979181511;  // (runs without error)</p>
<p>$result1 = $obj-&gt;getItemByAsin($isbn_number);</p>
<p>Both the ISBN number belongs to same book. even then they are showing error.. please check and reslove this issue&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2239</link>
		<dc:creator>john</dc:creator>
		<pubDate>Wed, 04 Aug 2010 07:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2239</guid>
		<description>This api is basically a referal program. i mean i will get paid about 15% of the books sold through my refrence. Actually i am bit worried about this  and i don&#039;t know that which link  should i use to make that thing possible. My motive is to send user to amazon site from my site by clicking a book so that i can get about 15% commision of the purchase. Please guide me what should i do............
Thanks for posting such a nice tutorial.....Even amazon documentation is not that much helpful</description>
		<content:encoded><![CDATA[<p>This api is basically a referal program. i mean i will get paid about 15% of the books sold through my refrence. Actually i am bit worried about this  and i don&#8217;t know that which link  should i use to make that thing possible. My motive is to send user to amazon site from my site by clicking a book so that i can get about 15% commision of the purchase. Please guide me what should i do&#8230;&#8230;&#8230;&#8230;<br />
Thanks for posting such a nice tutorial&#8230;..Even amazon documentation is not that much helpful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sameer</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2238</link>
		<dc:creator>sameer</dc:creator>
		<pubDate>Wed, 04 Aug 2010 07:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2238</guid>
		<description>Hello Julio!
I&#039;ve not licensed it in any way. You are free to do whatever you like with the code.</description>
		<content:encoded><![CDATA[<p>Hello Julio!<br />
I&#8217;ve not licensed it in any way. You are free to do whatever you like with the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julio Montoya</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2236</link>
		<dc:creator>Julio Montoya</dc:creator>
		<pubDate>Tue, 03 Aug 2010 20:20:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2236</guid>
		<description>Hello, which is the license of the code? If this is GPLv3?</description>
		<content:encoded><![CDATA[<p>Hello, which is the license of the code? If this is GPLv3?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2206</link>
		<dc:creator>simon</dc:creator>
		<pubDate>Sat, 17 Jul 2010 06:25:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2206</guid>
		<description>Sameer,

Excellent code and very easy to impliment.  I have a similar question to poster #52.

For your getItemByKeyword(), function,  if I type in for example, biology, and make the search Index &quot;books&quot;, I get about 6000 items.  I would like to print the picture of say the first 200.  How would I modify your code to do that?</description>
		<content:encoded><![CDATA[<p>Sameer,</p>
<p>Excellent code and very easy to impliment.  I have a similar question to poster #52.</p>
<p>For your getItemByKeyword(), function,  if I type in for example, biology, and make the search Index &#8220;books&#8221;, I get about 6000 items.  I would like to print the picture of say the first 200.  How would I modify your code to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2205</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Fri, 16 Jul 2010 19:29:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2205</guid>
		<description>I am querying Amazon trying to get seller&#039;s listing using the following parameters:

$parameters = array(&quot;Operation&quot;   =&gt; &quot;SellerListingSearch&quot;,
                                &quot;ListingPage&quot;    =&gt; 1,
                                &quot;SellerId&quot; =&gt; &quot;XXXXXXXXXXX&quot;,
                                &quot;BrowseNode&quot; =&gt; 266239,
                                &quot;SearchIndex&quot; =&gt; &quot;Marketplace&quot;,
                                &quot;ResponseGroup&quot; =&gt; &quot;SellerListing&quot;
                                );

Although I can successfully get a list of 2400 books at amazon.co.uk, I am unable yet to find their exact browse nodes nor the BrowseNode parameter work for any value. 

I get same number of books every time no matter what BrowseNode is sent in parameter. Please tell me how I can get categorized items under a BrowseNode against a seller id?

Thanks in advance!!!</description>
		<content:encoded><![CDATA[<p>I am querying Amazon trying to get seller&#8217;s listing using the following parameters:</p>
<p>$parameters = array(&#8220;Operation&#8221;   =&gt; &#8220;SellerListingSearch&#8221;,<br />
                                &#8220;ListingPage&#8221;    =&gt; 1,<br />
                                &#8220;SellerId&#8221; =&gt; &#8220;XXXXXXXXXXX&#8221;,<br />
                                &#8220;BrowseNode&#8221; =&gt; 266239,<br />
                                &#8220;SearchIndex&#8221; =&gt; &#8220;Marketplace&#8221;,<br />
                                &#8220;ResponseGroup&#8221; =&gt; &#8220;SellerListing&#8221;<br />
                                );</p>
<p>Although I can successfully get a list of 2400 books at amazon.co.uk, I am unable yet to find their exact browse nodes nor the BrowseNode parameter work for any value. </p>
<p>I get same number of books every time no matter what BrowseNode is sent in parameter. Please tell me how I can get categorized items under a BrowseNode against a seller id?</p>
<p>Thanks in advance!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irshad</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2167</link>
		<dc:creator>Irshad</dc:creator>
		<pubDate>Tue, 06 Jul 2010 07:36:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2167</guid>
		<description>Hi Sameer

It is a great code, Thanks for publishing it.
I am using the same example after downloading it. But i am not getting any response.

I am getting &quot;Could not connect to Amazon&quot; error. I had tried and checked that the response is blank.

Can you please help me.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi Sameer</p>
<p>It is a great code, Thanks for publishing it.<br />
I am using the same example after downloading it. But i am not getting any response.</p>
<p>I am getting &#8220;Could not connect to Amazon&#8221; error. I had tried and checked that the response is blank.</p>
<p>Can you please help me.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2142</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Fri, 25 Jun 2010 12:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2142</guid>
		<description>I get a search result which has 18 items. I choose to list the products which has only the Offers-&gt;Offer-&gt;OfferListing-&gt;OfferListingId

Now even though the result set has 2 pages, in the first page only 3 products get displayed because of the above criteria.

Is there a way to tell amazon to fetch records which has only the  Offers-&gt;Offer-&gt;OfferListing-&gt;OfferListingId so that the Items-&gt;TotalResults and  Items-&gt;TotalPages are correct?

thanks in advance</description>
		<content:encoded><![CDATA[<p>I get a search result which has 18 items. I choose to list the products which has only the Offers-&gt;Offer-&gt;OfferListing-&gt;OfferListingId</p>
<p>Now even though the result set has 2 pages, in the first page only 3 products get displayed because of the above criteria.</p>
<p>Is there a way to tell amazon to fetch records which has only the  Offers-&gt;Offer-&gt;OfferListing-&gt;OfferListingId so that the Items-&gt;TotalResults and  Items-&gt;TotalPages are correct?</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashfaq</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2136</link>
		<dc:creator>Ashfaq</dc:creator>
		<pubDate>Fri, 25 Jun 2010 05:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2136</guid>
		<description>Hi Can anyone tell me how to dislplay the reviews and how to sort them in decending order This is the code of amazon


function theItemWindow() {
    global $Result;
    global $bn;
	

    echo &#039;&#039;;
    $rowcount=0;
    if ($bn != FIRST_TIME) {
        foreach ($Result[&#039;MultiOperationResponse&#039;][&#039;ItemSearchResponse&#039;][&#039;Items&#039;][0][&#039;Item&#039;] as $item) {
            if (isset($item[&#039;SmallImage&#039;][&#039;URL&#039;])) {
                $image=&#039;&#039;;
				 
				 //$res= $item[&quot;CustomerReviews&quot;][&quot;TotalReviews&quot;];
				 //echo &quot;$res&quot;;
				 // $reviews = $item[&quot;&quot;]
            } else {
                $image=&#039;&#039;;
            }

	
            $title = &#039;&lt;a&gt;&#039;. $item[&quot;ItemAttributes&quot;][	            &quot;Title&quot;].&#039;&lt;/a&gt;&#039;;
            if (is_int($rowcount/5)) echo &#039;&#039;;

            echo &#039;&#039;.$title.&#039;&#039;.$image.&#039;&#039;.$reviews.&#039;&#039;;
            $rowcount++;
			
			
        }
    } 
	else {
        echo &#039;Choose a category on the left&#039;;
    }
	
    echo &#039;&#039;;

}</description>
		<content:encoded><![CDATA[<p>Hi Can anyone tell me how to dislplay the reviews and how to sort them in decending order This is the code of amazon</p>
<p>function theItemWindow() {<br />
    global $Result;<br />
    global $bn;</p>
<p>    echo &#8221;;<br />
    $rowcount=0;<br />
    if ($bn != FIRST_TIME) {<br />
        foreach ($Result['MultiOperationResponse']['ItemSearchResponse']['Items'][0]['Item'] as $item) {<br />
            if (isset($item['SmallImage']['URL'])) {<br />
                $image=&#8221;;</p>
<p>				 //$res= $item["CustomerReviews"]["TotalReviews"];<br />
				 //echo &#8220;$res&#8221;;<br />
				 // $reviews = $item[""]<br />
            } else {<br />
                $image=&#8221;;<br />
            }</p>
<p>            $title = &#8216;<a>&#8216;. $item["ItemAttributes"][	            "Title"].&#8217;</a>&#8216;;<br />
            if (is_int($rowcount/5)) echo &#8221;;</p>
<p>            echo &#8221;.$title.&#8221;.$image.&#8221;.$reviews.&#8221;;<br />
            $rowcount++;</p>
<p>        }<br />
    }<br />
	else {<br />
        echo &#8216;Choose a category on the left&#8217;;<br />
    }</p>
<p>    echo &#8221;;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chaitanya</title>
		<link>http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/comment-page-2/#comment-2080</link>
		<dc:creator>Chaitanya</dc:creator>
		<pubDate>Sun, 13 Jun 2010 11:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.codediesel.com/?p=1457#comment-2080</guid>
		<description>And where do i add Associate ID in the request for the rewards</description>
		<content:encoded><![CDATA[<p>And where do i add Associate ID in the request for the rewards</p>
]]></content:encoded>
	</item>
</channel>
</rss>

