如何使用亚伯拉罕的oauth库发送直接消息

时间:2010-09-03 13:57:37

标签: php twitter

我正在使用此库... http://github.com/abraham/twitteroauth

我能够更新状态和内容,但似乎找不到直接消息的功能。

此外,还有其他我可以使用的库吗?

1 个答案:

答案 0 :(得分:8)

发送直接消息与发布状态几乎相同。

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

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

相关问题