开发者

direct-message using TwitterOauth

I am using following method but its not working.

$twitteroauth->post('direct_messages/new', array(
    'text' => 'dm text here',
    'scre开发者_如何学Cen_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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜