Skip to main content

Professional Web APIs with PHP: eBay, Google, Paypal, Amazon, FedEx plus Web Feeds

Professional Web APIs with PHP: eBay, Google, Paypal, Amazon, FedEx plus Web Feeds

Paul Reinheimer

ISBN: 978-0-764-58954-6

Jul 2006

384 pages

Select type: Paperback

Product not available for purchase

Description

  • 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
Acknowledgments.

Introduction.

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.

Index.

Download All Code Used in the Book
Code downloads for this title are available here.
Download
ChapterPageDetailsDatePrint Run
Errata Notice

Errata Notice:

Hi, First, thanks for buying and reading the book, here is a list of the problems I've discovered so far. I'm not sure exactly what process this file needs to go through to get from me to you, so I will keep an up to date version at: http://preinheimer.com/prowebapis/errata.txt

If you find any problems/bugs/mistakes not listed here please let me know at: paul@preinheimer.com

I'm well aware that there are copies of the book floating around the net in .pdf or windows help format, if you came to this file after reading one of those, and found my book helpful please consider purchasing a copy, I worked hard on the book so you wouldn't have to work quite so hard working on APIs.

10/11/06

323Error in Chapter Reference
Chapter 5 discusses how you go about building your own feed,...

should be:
Chapter 4 discusses how you go about building your own feed,...
10/11/06

341Error in Chart
Dashes are missing in the chart at the top, it should read:
The contents define a character class, [0-9] will match any digit from zero to nine, [a-zA-Z0-9] would match any single lower case letter, upper case letter, or digit. [a-zA-Z0-9] would match any number of them.
10/11/06

461Typo
1Caching
Should be:
Caching
10/11/06

5108Error in Code
$request = createRequest('123', 'search', 'book','style);

Should be:
$request = createRequest('123', 'search', 'book','style');

(closing quote for style was ommited)
10/11/06

12SECURITY ISSUE in Chapter 12

The demonstrated REST API framework is vulnerable to XSS attacks since it displays un-escaped data when a call is made with an unknown paramater. Corrected code (simply applying htmlentities()) appears in the appropriate code file.

10/11/06

207Typo
first code block:
(Code Line 95 in file qickSearch.php)

$teimRemaining
should be:
$timeRemaining
05/18/07