Amazon Introduces Web Services Interface 15
skunkeh writes: "Amazon have launched a brand new web service interface to their huge database of products. The interface can be used through SOAP or by requesting XML pages via URL, and their development kit comes with example code in Java and Perl. A Python wrapper is also available, and I have released some sample code in PHP."
An excellent application... (Score:5, Interesting)
I've been wowed by this little application here:
http://mockerybird.com/index.cgi?node=book+watch [mockerybird.com]
It takes an XML formatted list of books from one web service, looks these books up via the Amazon API, then runs a search on the titles via the Google API. Combining three separate services into one unified system.
The people wondering "Why bother?" when Google released their Web Service missed the point entirely. One service isn't anything special. It's what you can do when you combine a couple of them that makes things interesting.
Ideally, the Book Watch Plus application can be converted into a Web Service itself, so someone else can use it as a component in THEIR application.
Re:An excellent application... (Score:2)
from the terms and conditions (Score:1, Interesting)
I would love to know how I should assure that I will not exceed this limit with php... anyone out there?
Re:from the terms and conditions (Score:3, Informative)
Good question. The only way I can think of is to grab the output of microtime() [php.net] every time an API call is made and record that time in a database (or on the filesystem, but a database would be preferable for performance reasons). Then you can check this "last queried" time before making a request, and if one has been made in the last second you can use usleep() [php.net] to temporarily delay your next request. You would probably have to code in some kind of method of spotting when you are getting really high traffic (continuously getting several hits a second) and have some clients die with an error message, rather than wait for potentially quite a long time before their turn to send an API request comes.
Caching the results of requests could help greatly of course...
Re:from the terms and conditions (Score:2, Informative)
eBay needs this (Score:3, Interesting)
It'd do eBay a whole lot of good to have an web service interface, the added flexibility would surely increase their sales considerably.
Their whole "e-mail when you get outbid" and MS Messenger alert system is waaay too slow. I usual get my "auction has finished" mails about a 24 hrs after it actually finished, and messenger alerts tend to take about 10 minutes or more (no good when someone snipes you in the last 5 min of the auction), so the ability to write a web service that'd tell me INSTANTLY that I've been outbid (or whatever) would be very handy.
Of course eBay might not want you to be able to bid via a web service (they might want you to have to use their own designed interfaces to make things fair for everybody), but in that case it's simple enough to just leave those methods for the moment and stick to the "read-only" and search functions.
The other thing that I'd wish for is that companies like Amazon would roll-out their services SIMULTANEOUSLY worldwide. It sucks that it only applies to .com, what about .co.uk, .de, .fr, .co.jp?
Re:eBay needs this (Score:1)
E-bay has sued other companies and sites that allowed you to bid on e-bay sites without going though the e-bay site. e-bays claim is that thoses other sites cause to much traffic, however the main reason is that you are not looking at e-bay advertisements.
Wrong. (Score:2)
In short, it endangers eBay's near-monopoly on the online auction business. They could care less about the advertising, but in terms of protecting their monopoly, well, that's their lifeblood.
D
First Google, then Amazon... (Score:2)
Re:First Google, then Amazon... (Score:1, Insightful)
seems to be running on Apache on Linux (Score:1)
The site soap.amazon.com is running Stronghold/2.4.2 Apache/1.3.6 C2NetEU/2412 (Unix) mod_fastcgi/2.2.10 on Linux