【问题标题】:How to send a Direct message using Abraham's oauth library如何使用 Abraham 的 oauth 库发送直接消息
【发布时间】:2011-09-07 14:03:08
【问题描述】:

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

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

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

【问题讨论】:

    标签: php twitter


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2015-01-10
      • 2012-08-24
      • 2011-05-08
      • 2022-12-15
      • 1970-01-01
      • 2020-07-14
      • 2012-02-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多