Now that you know how to use JSONP, you can start using some ready-made JSONP Web services to build your applications and mashups. Following are some starting points for your next development projects. (Hint: You may copy-and-paste the given URLs into the address field of your browser to examine the resulting JSONP response.)
Digg API: Top stories from Digg:
http://services.digg.com/stories/top?appkey=http%3A%2F%2Fmashup.com&type=javascript |
Geonames API: Location info for a zip-code:
http://www.geonames.org/postalCodeLookupJSON?postalcode=10504&country=US&callback=? |
Flickr API: Most recent cat pictures from Flickr:
http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any |
Yahoo Local Search API: Search pizza in zip-code location 10504:
http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=YahooDemo&query=pizza |
沒有留言:
張貼留言