include_once('../oauth/start.php');
/*
Friends & Followers
GET friendships/outgoing
https://dev.twitter.com/docs/api/1.1/get/friendships/outgoing
HTTP Methods GET
http://www.tryphp.net/2012/01/24/phpapptwitter-friendships_outgoing/
認証ユーザー(自分)がフォローリクエストを送信しているユーザーのうち、認証保留中になっているユーザーID一覧(整数値)を配列で返します。配列は構造化されたデータです。
*/
echo '<pre>';
$apiurl='https://api.twitter.com/1.1/friendships/outgoing.json';
$HTTP_Methods='GET';
$paras['cursor']='';
$paras['stringify_ids']='';
$x->twoauth($HTTP_Methods,$apiurl,$paras);
//$x->send_curl();
//var_dump($x->send_curl());
print_r($x->send_curl());
?>
例
Array ( [0] => stdClass Object ( [name] => 秋葉原観察者 [screen_name] => akibaviwer [id] => 122061980 [id_str] => 122061980 [connections] => Array ( [0] => following_requested ) ) [1] => stdClass Object ( [name] => ヤマダ電機 [screen_name] => yamada_official [id] => 104421866 [id_str] => 104421866 [connections] => Array ( [0] => following_requested ) ) [2] => stdClass Object ( [name] => UZ Plant〜サザンは日本の文化〜 [screen_name] => masyaglay [id] => 234254127 [id_str] => 234254127 [connections] => Array ( [0] => following_requested ) ) [3] => stdClass Object ( [name] => ##%;p;%## [screen_name] => p15973736 [id] => 956344374 [id_str] => 956344374 [connections] => Array ( [0] => following_requested ) ) [4] => stdClass Object ( [name] => stank [screen_name] => herumosa123 [id] => 733950067 [id_str] => 733950067 [connections] => Array ( [0] => following_requested ) ) [5] => stdClass Object ( [name] => 人生詰んでレラガールズ劇場 [screen_name] => ohpansy [id] => 543740099 [id_str] => 543740099 [connections] => Array ( [0] => following_requested ) ) [6] => stdClass Object ( [name] => ユキテーヌ [screen_name] => yukitaine [id] => 120747330 [id_str] => 120747330 [connections] => Array ( [0] => none ) ) )
0 件のコメント:
コメントを投稿