RSS/SEO/Google/マッシュアップ/ちょっとした豆知識/エンタメ系など
fkoji.com > F.Ko-Jiの「一秒後は未来」 > ProgrammableWebのブログでTwitterLoveが紹介されました
2008 02 21

ProgrammableWebのブログでTwitterLoveが紹介されました

スポンサード リンク

ProgrammableWebというのは海外の有名なマッシュアップ・ポータルサイトで、現在2700以上のマッシュアップが登録されています。

そのProgrammableWebのブログで、先日Social Graph APIの練習に作成した TwitterLove が紹介されてしまいました。(Johnさんありがとう!)

» TwitterLove: Applying the Social Graph API

数日前にProgrammableWebのJohnさんから突然メールが届いて、「TwitterLoveがどんな風にSocial Graph APIを利用しているか教えてくれるかい?」と尋ねられたので、一生懸命英語で返事を書きました。そうしたらTwitterLoveとともに、メールに書いた処理フローの部分までもJohnさんが正しい英語に直して掲載してくれました。

ちなみに私が送信した原文は以下のようなものです。

1. Request to http://socialgraph.apis.google.com/lookup?
callback=loop&q=fkoji&edo=1
2. If browser gets callbak, then we seek "nodes_referenced" nodes in response.
3. We seek "types" in thier "node_referenced" nodes. ("types" are "me" or "contact").
4. If type is "me", then we can get his URL.
5. If type is "contact", then we push the node to a contacts array.
6. If contacts array is not empty, then we send a request to social graph api again with query of contacts twitter urls.
7. If browser get callbak, we do the same process we wrote above, except follow 8. .
8. If we find "fkoji" in their contact, they are contact each other, so we put a heart icon.
9. We use an other API for their thumbnail images.

(あ、1番のリクエストのクエリが間違っている。。)

そして、ProgrammableWebに掲載された文章は以下のようになっていました。

1. Send an initial request to http://socialgraph.apis.google.com/lookup with arguments callback=loop&q=fkoji&edo=1
2. In the callback we look for “types” in any “node_referenced” nodes returned (where “types” are “me” or “contact”).
3. If type is “me”, then we have a starting point URL for this person.
4. If type is “contact”, then we push the node to a contacts array.
5. If contacts array is not empty, then we send a request to social graph api again with a query of contacts twitter urls.
6. In the callback we do the same process as above and if we find “fkoji” in their contact, we know they are contacts of each other, so we put a heart icon.
7. We use the SimpleAPI.net service to get their thumbnail images.

なんだか英語の添削を受けた感じがして、ちょっと得した気分です。

» Social Graph APIでTwitterLove

はてなブックマーク数 livedoor クリップ Buzzurl

English version

「ProgrammableWebのブログでTwitterLoveが紹介されました」を携帯で読む

前のエントリー: « モバイルSuicaの年会費のお知らせの出し方がひどい
次のエントリー: モバイルSuicaの件の論点 »

トラックバック

このエントリーのトラックバックURL:

コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)




このブログをRSSリーダーで簡単購読
Subscribe with livedoor Reader Add to Google My Yahoo!に追加 Subscribe with Fastladder Bloglinesで閲読登録 はてなRSSに追加 エキサイトリーダーに登録

タイトル:

URL:

リンク用HTMLタグ:

powered by Google Chart API

なんかいろいろ

このブログの読者はこんなブログも読んでます。
あわせて読みたい

はてなブックマークカウンター

track feed

フィードメーター - F.Ko-Jiの「一秒後は未来」

スカウター : F.Ko-Jiの「一秒後は未来」

Firefox meter

携帯からのアクセスは

QRコード
http://mob.fkoji.com/