認証ユーザーのフォローリクエストを保留している全てのプロテクトユーザーの数値型IDを取得します。
GET friendships/
|
https://api.twitter.com/1.1/friendships/outgoing.format
Resource URL
|
Resource Information
Response formats
JSON
Requires authentication?
Yes (user context only)
Rate limited?
Yes
Requests / 15-min window (user auth)
15
|
現在のところ、取得するIDが5000を超えると複数のページに分割されます。 クエリ後にアカウント停止中のユーザーがフィルタされるので、取得されるIDの数は必ず5000になる訳ではありません。 cursor が設定されなかった場合、一番最初のページを表す -1が設定されたと見なされます。
API からの応答には previous_cursorパラメータと next_cursorパラメータが含まれており、これを使って前後のページを操作できます。 詳細情報についてはUsing cursors to navigate collectionsを参照してください。
サンプル値: 12893764510938
多くのプログラミング環境では、桁サイズが原因でTwitterのIDを使用することができません。このオプションを設定することで、IDを数字ではなく文字列として取得できます。 詳細については Twitter IDsを参照してください。
サンプル値: true
Parameters
cursor
semi-optional
Causes the list of connections to be broken into pages of no more than 5000 IDs at a time. The number of IDs returned is not guaranteed to be 5000 as suspended users are filtered out after connections are queried. If no cursor is provided, a value of Example Values:
stringify_ids
optional
Many programming environments will not consume our Tweet ids due to their size. Provide this option to have ids returned as strings instead. More about [node:194]. Example Values: |
ログイン して登録アプリケーションの一覧を参照してください。
OAuth Signature GeneratorSign in to see a list of your registered applications. |
GET
https://api.twitter.com/1.1/friendships/outgoing.json
Example RequestGET
|
{
"previous_cursor": 0,
"ids": [
51937528,
124856868,
213246307,
89356977,
121177351,
113338333,
59520091,
46451699,
98223312,
18172433,
32210115,
36851055,
81269257
],
"previous_cursor_str": "0",
"next_cursor": 0,
"next_cursor_str": "0"
}
Example Result
{
"previous_cursor": 0,
"ids": [
51937528,
124856868,
213246307,
89356977,
121177351,
113338333,
59520091,
46451699,
98223312,
18172433,
32210115,
36851055,
81269257
],
"previous_cursor_str": "0",
"next_cursor": 0,
"next_cursor_str": "0"
}
|