二人のユーザー間の関係性についての詳細情報を取得します。
GET friendships/
|
https://api.twitter.com/1.1/friendships/show.json
Resource URL
|
Resource Information
Response formats
JSON
Requires authentication?
Yes
Rate limited?
Yes
Requests / 15-min window (user auth)
180
Requests / 15-min window (app auth)
15
|
このメソッドでは、少なくとも一つのsource と一つのtargetを設定する必要があります。source とtargetは、それぞれIDもしくはスクリーンネームのどちらかで設定します。
対象ユーザーのユーザーID。
サンプル値: 3191321
対象ユーザーのスクリーンネーム。
サンプル値: raffi
対象ユーザーのユーザーID。
サンプル値: 20
対象ユーザーのスクリーンネーム。
サンプル値: noradio
ParametersAt least one source and one target, whether specified by IDs or screen_names, should be provided to this method.
source_id
optional
The user_id of the subject user. Example Values:
source_screen_name
optional
The screen_name of the subject user. Example Values:
target_id
optional
The user_id of the target user. Example Values:
target_screen_name
optional
The screen_name of the target user. Example Values: |
ログインして登録アプリケーションの一覧を参照してください。
OAuth Signature GeneratorSign in to see a list of your registered applications. |
GET
https://api.twitter.com/1.1/friendships/show.json?source_screen_name=bert&target_screen_name=ernie
Example RequestGET
|
{
"relationship": {
"target": {
"id_str": "12148",
"id": 12148,
"screen_name": "ernie",
"following": false,
"followed_by": false
},
"source": {
"can_dm": false,
"blocking": null,
"muting": null,
"id_str": "8649302",
"all_replies": null,
"want_retweets": null,
"id": 8649302,
"marked_spam": null,
"screen_name": "bert",
"following": false,
"followed_by": false,
"notifications_enabled": null
}
}
}
Example Result
{
"relationship": {
"target": {
"id_str": "12148",
"id": 12148,
"screen_name": "ernie",
"following": false,
"followed_by": false
},
"source": {
"can_dm": false,
"blocking": null,
"muting": null,
"id_str": "8649302",
"all_replies": null,
"want_retweets": null,
"id": 8649302,
"marked_spam": null,
"screen_name": "bert",
"following": false,
"followed_by": false,
"notifications_enabled": null
}
}
}
|