include_once('../oauth/start.php');
/*
Friends & Followers
GET friendships/lookup
https://dev.twitter.com/docs/api/1.1/get/friendships/lookup
HTTP Methods GET
http://www.tryphp.net/2012/01/24/phpapptwitter-friendships_lookup/
*/
echo '<pre>';
$apiurl='https://api.twitter.com/1.1/friendships/lookup.json';
$HTTP_Methods='GET';
$paras['screen_name']='';
$paras['user_id']=rawurlencode('783214,6253282');
$x->twoauth($HTTP_Methods,$apiurl,$paras);
//$x->send_curl();
//var_dump($x->send_curl());
print_r($x->send_curl());
?>
例
Array ( [0] => stdClass Object ( [name] => Twitter [screen_name] => twitter [id] => 783214 [id_str] => 783214 [connections] => Array ( [0] => none ) ) [1] => stdClass Object ( [name] => Twitter API [screen_name] => twitterapi [id] => 6253282 [id_str] => 6253282 [connections] => Array ( [0] => none ) ) )
配列を利用する;
$us=array('159536039,1185244459,1034053130,748788386,780785840,177437663,565343646,805594118'); $paras['user_id']=rawurlencode(implode(',',$us));
0 件のコメント:
コメントを投稿