开发者

How to send a Direct message using Abraham's oauth library

开发者 https://www.devze.com 2023-01-14 22:36 出处:网络
I\'m using this library ... http://github.com/abraham/twitteroauth I am able to update statuses and stuff but can\'t seem to find a functi开发者_Go百科on for direct messages.

I'm using this library ... http://github.com/abraham/twitteroauth

I am able to update statuses and stuff but can't seem to find a functi开发者_Go百科on for direct messages.

Also, is there any other library that I could use?


Sending a direct message works almost the same as posting a status.

$twitteroauth->post('statuses/update', array('status' => 'status text here'));

$twitteroauth->post('direct_messages/new', array('text' => 'dm text here', 'screen_name' => 'recipients screen_name'));

0

精彩评论

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

关注公众号