menu
ホーム > PHP と Twitter > Twitter API > Friends & Followers(友達とフォロワー) > ユーザー同士の詳細な関係(フォロー等)を取得 friendships show

ユーザー同士の詳細な関係(フォロー等)を取得 friendships show

2012年のTwitter APIの記事です。

参考資料として掲載しておきます。


Twitter API friendships/show

API Resource

GET friendships/show

概要

 指定した2人のユーザ間の関係に関する詳細な情報を返します。

following(フォローしているかどうか)
followed_by(フォローされているかどうか)
notification(「指定デバイス」での購読対象にしているかどうか)
blocking(ブロック)
等の情報が得られます。

原文

Resource URL(リソースURL)

http://api.twitter.com/1/friendships/show.format

Resource Information(リソース情報)

Rate Limited(制限)Yes(なし)
Requires Authentication(認証)Yes(あり)/No(なし)
Response Formats(フォーマット)json xml
HTTP Methods(HTTPメソッド)GET

Parameters(パラメーター)

source_id
※オプション
サンプル値:12345友達関係を調べる1人目のユーザーIDを指定します。
source_screen_name
※オプション
サンプル値:scname1友達関係を調べる1人目の screen_name を指定します。
target_id
※オプション
サンプル値:56789友達関係を調べる2人目のユーザーIDを指定します。
target_screen_name
※オプション
サンプル値:scname2友達関係を調べる2人目の screen_name を指定します。

サンプルコード

POINT
以下のサンプルコードを実行するにはOAuth接続が必要です。こちらのページからOAuth接続の設定を行って下さい。


– サンプル Click Here ! –

– サンプル Click Here ! –

タグ(=記事関連ワード)

日付

投稿日:2012年1月24日
最終更新日:2023年08月30日

このカテゴリの他のページ

この記事へのコメント

トラックバックurl

https://wepicks.net/phpapptwitter-friendships_show/trackback/

page top