Synopses & Reviews
What the Book Covers: Professional PHP Development with Feeds and APIs will introduce the reader to feeds and APIs in general, and then take them step by step through real world examples. The examples and descriptions will take the user through each stage of the API process, from basic test implementations to integration with existing sites. Showing users how to produce and document their own APIs will also allow them to expand their own sites, and encourage them to take a deeper look at how they structure their code. The inclusion of XML-Feeds will also allow users to access one of the fastest growing trends on the web. Feed aggregators are being churned out at a rapid pace, while most dynamic sites are either beginning to offer, or expanding their current offerings of XML feeds. Unique Coverage: The only book that covers a variety of APIs and services in PHP. The competition examine one API or service in a variety of languages, to the average programmer, this is mostly wasted space. This book will be the single source for PHP programmers looking to add a add a third party API to their site, or program one of their own. Real World Web Solutions. Web Feeds are a popular method for syndicating information across websites. One website publishes a copy of its content on an XML page, then other websites may include all or part of that content on it’ s own site. Netscape, Yahoo, Google, eBay and Amazon provide XML feeds, and many websites use these XML feeds to provide visitors with recent news or security updates. The book will show how a small ISP can use the Yahoo! Technology XML feed to publish recent technology on their website for customers. APIs (Application ProgrammingInterfaces) are the preferred method for disparate applications to interact over the web. They allow (for example) a small knitting website to present the visitor with recent auctions on eBay for knitting supplies, or new releases at Amazon with regards to knitting. In both cases using the published API is the easiest & most accurate method of getting this information in short order. While an API may sound similar to a web feed, it goes much further. A web feed generally provides static information, while an API allows the requestor a wide range of functions (such as search), and (depending on the API) even the opportunity to push information to the site (such as a bid on an eBay item).
- Offers hands-on tips and numerous code examples that show Web developers how to leverage content and feeds from today's top Web sites-including Google, eBay, PayPal, Amazon, Yahoo!, and FedEx
- Introduces APIs (Application Program Interfaces) in general and uses real-world examples that show how to produce and document them
- Explains how to use the popular scripting language PHP to create APIs that interact with unrelated applications over the Web
- Examples take readers through each stage of the API process, from basic test implementations to integration with existing sites
As the only book that details how to integrate different APIs and web feeds in PHP so websites can leverage content from eBay, Google, PayPal, Amazon, and FedEx, this hands-on guide takes you step by step through each stage of the API process. Experienced PHP programmer Paul Michael Reinheimer walks you through the production and consumption angles of web feeds and discusses XML-feeds so that you can access one of the fastest growing trends on the web. With real-world examples covering everything from basic test implementations to integration with existing sites, you'll learn how to produce and document your own APIs, which will allow you to expand your sites and may even prompt you to re-examine how you structure your code.
What you will learn from this book
- How to add a third party API to your site or program one of your own
- Ways that a small ISP can use the Yahoo!® XML feed to publish recent technology on a site
- Why APIs are the preferred method for disparate applications to interact over the web
- Differences between the functions of APIs and web feeds and the benefits each has to offer
- The basic structure for REST and SOAP APIs
Who this book is for
This book is for programmers who have a strong understanding of PHP and are looking for detailed coverage of multiple APIs in PHP.
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
About the Author
Paul Michael Reinheimer (Waterloo, Ontario, Canada)
is a Zend Certified Engineer currently developing Share The Beat (www.sharethebeat.com
) an online music portal developed extensively in PHP. Paul has extensive PHP programming experience.
Chris Shiflett (NY, NY) is a frequent contributor to the PHP community and a leading security expert. He talks at conferences such as ApacheCon and the O'Reilly Open Source Convention, and publishes articles in PHP Magazine and php|architect. "Security Corner," his monthly column for php|architect, which is the industry's foremost PHP security column.
Table of Contents
Part One: Web Feeds.
Chapter 1: Introducing Web Services.
Chapter 2: Introducing Web Feeds.
Chapter 3: Consuming Web Feeds.
Chapter 4: Producing Web Feeds.
Part Two: APIs.
Chapter 5: Introduction to Web APIs.
Chapter 6: Interacting with the Google API.
Chapter 7: Interacting with the Amazon API.
Chapter 8: Interacting with the FedEx API.
Chapter 9: Interacting with the eBay API.
Chapter 10: Interacting with the PayPal API.
Chapter 11: Other Major APIs.
Chapter 12: Producing Web APIs.
Appendix A: Supporting Functions.
Appendix B: Complete Feed Specifications.
Appendix C: Development System.