include_once('../oauth/start.php');
/*
POST statuses/destroy/:id
https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/%3Aid
https://api.twitter.com/1.1/statuses/destroy/:id.json
HTTP Methods POST
*/
echo '<pre>';
$apiurl='https://api.twitter.com/1.1/statuses/destroy/382527698498621440.json';
$HTTP_Methods='POST';
$paras['id']='';
$paras['trim_user']='true';
$x->twoauth($HTTP_Methods,$apiurl,$paras);
//$x->send_curl();
//var_dump($x->send_curl());
print_r($x->send_curl());
?>
例
stdClass Object ( [geo] => [entities] => stdClass Object ( [urls] => Array ( ) [hashtags] => Array ( ) [user_mentions] => Array ( ) ) [user] => stdClass Object ( [id] => 371259452 [id_str] => 371259452 ) [in_reply_to_user_id] => [contributors] => [place] => [retweet_count] => 0 [source] => ツイッターの種 [in_reply_to_status_id_str] => [coordinates] => [retweeted] => [id] => 3.82527698499E+17 [in_reply_to_user_id_str] => [in_reply_to_status_id] => [truncated] => [in_reply_to_screen_name] => [created_at] => Tue Sep 24 15:31:25 +0000 2013 [id_str] => 382527698498621440 [text] => 福島県漁連 試験操業を再開へ [favorited] => )
0 件のコメント:
コメントを投稿