F.Ko-Jiの「一秒後は未来」ではウェブやSEO、API、RSSといった技術的ネタから、ちょっとした豆知識や梅酒、エンタメ系まで様々な情報を不定期にお届けしています。

F.Ko-Jiの「一秒後は未来」 > がんばれ自分 > ProgrammableWebのブログでTwitterLoveが紹介されました

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

  • B!
スポンサード リンク

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

[2010-01-12] RSS フィードの URL が変わりました。お手数ですが RSS リーダーへの再登録をお願いします。
Subscribe with livedoor Reader Add to Google Subscribe with Fastladder My Yahoo!に追加 Bloglinesで閲読登録 はてなRSSに追加 エキサイトリーダーに登録


コメントを投稿

(承認されるまでコメントは表示されません。)

Twitter(ツイッター) / がんばれ自分

English version

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

トラックバック

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

タイトル:

URL:

リンク用HTMLタグ:

Agile Media Network

AMN Partner Blog

広告掲載について

東京ナイロンガールズ
最近の注目記事
持っているガジェット
powered by Gadget Party
最近のつぶやき
えもにゅ

↑ 気持ち記録サービス「えもにゅ」です

このブログの読者になる

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

クマでもわかるこのブログの便利な更新チェック方法

DailyFeed

あわせて読みたいブログパーツ

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

月別アーカイブ


<< March 2010
SuMoTuWeThFrSa
 123456
78910111213
14151617181920
21222324252627
28293031 
人気エントリー
TopHatenar
携帯からのアクセスは
QRコード
http://mob.fkoji.com/