[Twitter API] friendships/show

まとまって書けないと気づいたので、ちょこちょこ更新することにした。
【URL】
[GET]
http://api.twitter.com/1/friendships/show.[xml|json]
【引数】
source_id=ユーザID (オプション)
source_screen_name=ユーザ名 (オプション)
1人目のユーザAを指定する。認証済みで未設定にすると自分自身が対象になる。
target_user_id=ユーザID (どれか1つは必須)
target_screen_name=ユーザ名 (どれか1つは必須)
2人目のユーザBを指定する。
【結果(XML)】
俺としゅうまい君の関係…
<relationship>
<target>
<followed_by type=”boolean”>true</followed_by>
<screen_name>shuumai</screen_name>
<following type=”boolean”>true</following>
<id_str>54882396</id_str>
<id type=”integer”>54882396</id>
</target>
<source>
<marked_spam nil=”true”/>
<followed_by type=”boolean”>true</followed_by>
<screen_name>jujuichi</screen_name>
<following type=”boolean”>true</following>
<id_str>89380252</id_str>
<blocking nil=”true”/>
<notifications_enabled nil=”true”/>
<can_dm type=”boolean”>true</can_dm>
<all_replies nil=”true”/>
<want_retweets nil=”true”/>
<id type=”integer”>89380252</id>
</source>
</relationship>
ターゲットにフォローされているか source->followed_by
ターゲットをフォローしているか source->following
(随時更新予定)
以上。

コメント