【问题标题】:Twitter Group DM ApiTwitter Group DM API
【发布时间】:2019-01-08 00:51:41
【问题描述】:

我使用 twitter api 已经有一段时间了,我仍在寻找一些方法来为对话 DM 中的 DM 实现下载方法。

此时我的代码如下所示:

$connection->request('GET', $connection->url('1.1/direct_messages'),///events/list'), 
          array('include_entities' => 'true',
            'count' => 100,
            'since_id' => $since_id));

我都尝试过旧的 direct_messages 和新的事件/列表端点,但似乎我无法下载会话消息。例如:

DM between person A and B:
A: Hi
B: Hello

DM between person A, B and C:
A: Hi converstion 2
B: Hello conversation 2
C: I'm new!

I expect to get some list like:
[Hi, Hello, Hi conversation 2, Hello conversation 2, I'm new!]

But I get:
[Hi, Hello]

有什么办法可以解决这个问题吗?我找不到无法从 3 个或更多 Twitter 用户的对话中获取消息的原因...

提前致谢!

【问题讨论】:

    标签: php twitter twitter-oauth


    【解决方案1】:

    Twitter API 不支持群组消息。此功能只能通过网站使用。

    【讨论】:

    • 感谢您的回答。但是 API 不支持只包含消息的文本或 ID?
    • 没有。群组消息似乎与普通 DM 完全不同。
    猜你喜欢
    • 1970-01-01
    • 2017-10-13
    • 2016-08-30
    • 2013-06-19
    • 2012-08-10
    • 2020-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多