我试过了:
oneway
和
$id = "@puppies";
$toa = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$toa->post('friendships/create', array('user_id' => $id));
和
$id = "puppies";
$toa = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$toa->post('friendships/create', array('user_id' => $id));
和
$id = puppies;
$toa = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$toa->post('friendships/create', array('user_id' => $id));
现在我正在使用Abraham \ TwitterOAuth \ TwitterOAuth库。
答案 0 :(得分:0)
这有效:
$object = $connection->post('friendships/create', array('screen_name' => 'puppies'));*emphasized text*