0
我正在使用下面的方法,但它不工作。使用TwitterOauth的直接消息
$twitteroauth->post('direct_messages/new', array(
'text' => 'dm text here',
'screen_name' => 'recipients screen_name',
));
我正在使用下面的方法,但它不工作。使用TwitterOauth的直接消息
$twitteroauth->post('direct_messages/new', array(
'text' => 'dm text here',
'screen_name' => 'recipients screen_name',
));
$twitter = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$access_token['oauth_token'], $access_token['oauth_token_secret']);
// $message must have the @name of the user who created the message
// referenced in the 'in_reply_to_status_id' field
$tweet = array('status' => $message,
'in_reply_to_status_id' =>$tweetback['tw_topicid']);
// post the tweet
$response = $twitter->post('statuses/update', $tweet);
什麼不起作用?函數返回什麼? – arnaud576875
現在它的工作正常,但只適用於追蹤用戶[誰在發送信息]的用戶。我需要發送消息給任何用戶請建議。 –
這是不可能的。您只能將直接郵件發送給關注您的人。 – arnaud576875