专家网络APIs与PHP:eBay、Google、Paypal、Amazon、Fedex plus Yahoo与Netscape Web Feeds

分類: 图书,进口原版书,科学与技术 Science & Techology ,
作者: Paul Reinheimer 著
出 版 社:
出版时间: 2007-8-1字数:版次: 1页数: 356印刷时间: 2007/08/01开本:印次:纸张: 胶版纸I S B N : 9780764589546包装: 平装内容简介
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.
作者简介:
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.
目录
Acknowledgments
Introduction
Part One: Web Feeds
Chapter 1: Introducing Web Services
Defining Web Services
Why They Are Used
How They Are Used
Who Uses Them
Why You Should Use Web Services
Convincing the Boss
Summary
Chapter 2: Introducing Web Feeds
What Are Feeds?
RSS
Atom
Important Considerations When Using Feeds
Security
Legal Concerns
Update Frequency
A Crash Course in XML
Terminology
Well-Formed XML
Valid XML
Additional Considerations
Looking at a Basic Feed
Standard Feed Formats
RSS
Atom 0.3
Summary
Chapter 3: Consuming Web Feeds
Consuming Your First Feed
In-Depth Feed Consumption
Know Thy Elements
Browse the Site Providing the Feed
Keep a Copy of the Feed Structure
Retrieving and Storing the Feed
A Basic Storage Script
Extending the Script to Include Atom Support
Retrieving Enclosures
Dealing with XML Namespaces
Further Securing Your Feeds
Link Utility Functions
Image Tags
Link Tags
IFrames
Formatting Tags
Dealing with Broken HTML
Installing Tidy
Cleaning Broken HTML
Putting It All Together
Using Your Recorded Feeds
Email Mailing List
On Page Widget
Customizable Portal Page
Some Web Feed Providers
Summary
Chapter 4: Producing Web Feeds
Why Do You Need to Produce Feeds?
Additional Considerations When Producing a Feed
Publicizing Your Feed
Standard Feed Formats
Caching Your Feed
Blogs
Trackbacks
Retail Store Example
Summary
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
Index