I couldn't find a good description on the web about securing REST API's against drive-by requests (unauthorized 3rd party calls when you visit a malicious web site).
Here's what I've pieced together today by examining what del.icio.us is doing to secure it's REST api.
1 FaverShareViewed: 4 TimesFriendFeed API has client-side JSON as well as uthenticated HTTP using a "Remote Key" that is unique to each user.
Also, Python and PHP API libraries here:
http://code.google.com/p/friendfeed-api/
2 FaversShareViewed: 3 Timesこ、これは便利なのでは。食べ物の名前をURLに渡すと、だいたいカロリーはこれぐらい、というデータを返してくれるAPIです。
以下、簡単にご紹介。
↑ まずはCalorie APIのサイトでテスト。「カレー」と入れてみます。形式はXMLで。
↑ するとこのようにデータが!ざっくりしたデータですが、十分なのでは・・・。
もちろんURLに渡す方式でもOKです。形式は以下のとおり。
http://soogle.ddo.jp/calapi/api?name=[UTF-8でエンコードされた食品名]&output=[xml|csv|text]
対応している食品は順次増えているようですが、充実してくればいろいろ使えるのでは・・・ダイエットは永遠の課題ですしね。
ご興味がある方は以下からどうぞ。
1 FaverShareViewed: 14 TimesQuoted: Web APIとMashup情報が詰まった技術系コミュニティーサイト。新しいサービス立ち上げ、開発に興味のあるWebエンジニア向け。
Blog Free Layout Blog Free Make Site Web Spearfish Blogs Free Blog Layout
3 FaversShareViewed: 25 TimesRelated Content from Around Faves
php
- 1 FaverViewed: 20 Times
- relia - Aug 20 20084 FaversViewed: 9 Times
- AmmInfo - Jun 19 20081 FaverViewed: 14 Times
web development
-
Zach's greatly improved the look of this sample app - and now the Save dialog comes up when you try to create a save (you need to fill in username, password, and email address to create an account).
2 FaversViewed: 22 Times - mike - Aug 28 20082 FaversViewed: 3 Times
- mike - 16 hours ago1 FaverViewed: 2 Times
