TAILIEUCHUNG - Pro Web 2.0 Mashups Remixing Data and Web Services phần 2

Ngày Giờ và xảy ra tùy chọn được thông báo khi điều này cache là vô cùng hữu ích. Lớp xác định chỉ có một số nhỏ các thành viên ngoài indexer của loại. Ví dụ, phương pháp Add () có thể được sử dụng để chèn một mục mới vào bộ nhớ cache | 30 CHAPTER 2 UNCOVERING THE MASHUP POTENTIAL OF WEB SITES This list is meant to cover the broad range of what Flickr does but I m not attempting to be exhaustive. Remember that there are different ways to slice the pie so any listing of resources won t necessarily agree. We will end up agreeing on how the URLs are structured though. How did I come up with this list I used Flickr looking at each piece of functionality available to me. For each function I identified the nouns or entities at work and noted the corresponding URIs and how the URLs change as the state of the application changes. I culled common terminology from the Flickr UI itself from the documentation of the UI and from the documentation for the API http services api . The structure of an API often points out key entities in the web site. Caution Keep in mind the warning about the opacity of unique identifiers in Flickr The Flickr API exposes identifiers for users photos photosets and other uniquely identifiable objects. These IDs should always be treated as opaque strings rather than integers of any specific type. The format of the IDs can change over time so relying on the current format may cause you problems in the future. 5 Users and Photos The host URL of the entire site is as follows http URLs using a host URL of http also seem to be valid but I will use the former since the API returns URLs that use as the host URL. Since Flickr is a social photo-sharing site let s start with the two entities you expect at the least a Flickr user or person and a photo. Note I use URI Templates http news URI_Templates to express the URL language. These are strings into which I place variables that are replaced to form the full URI. The variables to be substituted are delimited by which are not part of legal URIs . Note that the URI Template is currently an IETF draft but the convention I use here is simply denoting the embedded variable with

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.