dpickett / amazon_associate

DEPRECATED use Ramazon Advertising instead - Amazon Associates API Interface using hpricot
MIT License
29 stars 6 forks source link

Can this be used to generate affiliate (associates) links to search results? #2

Closed barmstrong closed 14 years ago

barmstrong commented 14 years ago

Didn't see how in the example, but seems like it might be possible. Thanks for posting this!

dpickett commented 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

barmstrong commented 14 years ago

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?

dpickett commented 14 years ago

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

barmstrong commented 14 years ago

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!