Using Web Service APIs (Amazon and Yahoo!) with PEAR - Further Steps
(Page 4 of 4 )
As we've seen, using third party web services can let you add features to your site, which would not be possible otherwise. Most sites can't afford to have an index of nearly every book on the planet, or crawl and catalog web sites, news sites, images and more... but they can make use of the tools provided by companies who do.
While most of these APIs are relatively simple, using a pre-written API can make the development time much shorter and decrease the number of bugs created by corner cases and strange API exceptions. You'll thank yourself for not reinventing the wheel.
In addition to the packages discussed here, the PEAR Web Services directory provides APIs for many other sites, including: YouTube, TinyURL, TechnoRati, Digg and Facebook. Check out the directory yourself; you may be surprised at what is included. At the time of this writing, there was a total of 34 different Web Service APIs available for PEAR, with more being added all the time.
Next time you're faced with building a new feature which seems too monumental to tackle on your own, peruse the PEAR Web Services repository. It's likely that a Web Service already exists for your purpose, and a handy PEAR package is already written!
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |