Skip to Main Content
Adding Ajax
book

Adding Ajax

by Shelley Powers
June 2007
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 52m
English
O'Reilly Media, Inc.
Content preview from Adding Ajax

A Second Service: Flickr

Flickr has achieved prominence as a socially oriented photo site. Not only can members post their photos (as well as tag, categorize, annotate, and share them), but they can also comment on each others' work, join forums, and integrate Flickr services with other third-party applications. You can get a free Flickr account with limitations on how much bandwidth you can use to upload photos every month, or you can buy virtually unlimited bandwidth and storage with a "pro" account.

Flickr was bought by Yahoo! and can be accessed at http://flickr.com. The Flickr API, which we'll be looking at in this section, can be found at http://www.flickr.com/services/api, which also includes a link to the page to sign up for a Flickr key. Using the API requires a unique key, but there's no charge for its use.

Flickr's web services are some of the most complete, offering support for REST, XML-RPC, SOAP, a PHP library (since PHP is so ubiquitous), and recently, JSON. The latter is particularly important because it allows us to make direct service calls using Ajax without running up against the browser sandbox.

The Flickr API is split into classes of objects, such as photos, people, groups, and photosets. Within each class is a set of services that can be requested. The Flickr API site provides excellent documentation about what each service provides and what has to be passed to the service call. All service requests require the API key.

In the examples in this section, we'll use ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ajax: The Definitive Guide

Ajax: The Definitive Guide

Anthony T. Holdener III
Ajax Design Patterns

Ajax Design Patterns

Michael Mahemoff
Web Development with JavaScript and Ajax Illuminated

Web Development with JavaScript and Ajax Illuminated

Richard Allen, Kai Qian, Lixin Tao, Xiang Fu

Publisher Resources

ISBN: 9780596529369Supplemental ContentErrata Page