Closed barmstrong closed 14 years ago
yes - if you're just searching the catalog I actually recommend using dpickett/ramazon_associate - it uses nokogiri and all in all is a better library.
ramazon_associate returns a url off the product (Ramazon::Product) if you include your tag in the request, it should return that url. amazon_associate also includes one as part of the ItemResponse
Oh cool, thanks!
I actually found a way to generate affiliate (associate) links to Amazon search results without an API call which appears to be working. Basically it is just this:
"http://www.amazon.com/gp/search?tag=#{MY_AFFILIATE_ID}&index=blended&keywords=#{URI.encode(KEYWORDS)}"
Haven't been able to test it extensively yet, but do you see any drawbacks to this?
it depends - if you're ok with taking the search offsite (and onto amazon) - this works. If you need access to product data or you want to show details on your own site, this is where amazon_associate and ramazon_advertising are most useful
Ahh, makes sense. Yep for me it's easier to just send them to Amazon, but I can see where that would be useful. Thanks I appreciate the help!
Didn't see how in the example, but seems like it might be possible. Thanks for posting this!