我試圖通過使用REST Api 1.1和PHP實現Twitter friendships/create。但我無論怎麼嘗試過與Twitter REST Api 1.1 POST友誼/創建
stdClass Object
(
[errors] => Array
(
[0] => stdClass Object
(
[message] => Bad Authentication data
[code] => 215
)
)
)
返回和我的代碼(使用亞伯拉罕庫,改變twitterauth到V1.1)
$twitteroauth = new TwitterOAuth($this->consumer_key, $this->consumer_secret, $oauth_token, $oauth_token_secret);
$test_create = $twitteroauth->post('friendships/create',array('follow'=>true,'user_id'=>'2529416xx'));
print_r($test_create);exit;