php - 如何使用 Abraham 的 oauth 库发送直接消息

标签 php twitter

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

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

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

最佳答案

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

$twitteroauth->post('statuses/update', array('status' => '此处的状态文本'));

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

关于php - 如何使用 Abraham 的 oauth 库发送直接消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3636454/

相关文章:

javascript - Twitter "tweet this"按钮在 Firefox 中显示为按钮,在 Chrome 中只是一个链接

android - 如何在 Android 中创建 Twitter 分享按钮?

php - JMESPATH 可以执行 "contains X or Y"搜索/过滤吗?

php - 当我尝试为我的数据库播种时出现错误

r - R中的多类分类

java - 有没有办法在应用程序开发过程中生成推文?

ruby-on-rails - 推特 "could not authenticate you"错误

php - 文件上传完成时获得通知的最佳方式

php - 如何在一个 Div 中显示多个图像 Blob

php - 跨多个服务器使用 Zend Cache 和 AWS ElastiCache 的缓存值不一致