【问题标题】:Yammer Rest API sender_type = "guide"Yammer Rest API sender_type = "指南"
【发布时间】:2016-02-23 22:24:10
【问题描述】:

我们开发了一个使用 Yammer REST API 检索最新 Yammer 帖子的网站。

我们遇到了一个问题,即用户发布了一条消息,但 sender_type 字段是“指南”而不是“用户”。我查看了帖子和其他类似的帖子,其他帖子都有 sender_type = "user"。

       "sender_id": 130784,
       "replied_to_id": null,
       "created_at": "2016/02/22 07:13:29 +0000",
       "network_id": 130886,
       "message_type": "update",
       "sender_type": "guide",

传入 JSON 消息的片段。我们已经询问了用户,他没有做任何不同的事情,他们的其他帖子的 send_type 为“用户”。我能看到的唯一区别是附件已从帖子中删除。除此之外,该帖子是普通帖子。

如果有人能对此有所了解,那就太好了。

谢谢。

【问题讨论】:

  • 实际的问题/问题是什么?你想知道为什么帖子有这个 sender_type 而不是 user?
  • 嗨,Brian,我的理解是,如果用户在 Yammer 上发布消息,则 sender_type 将是“用户”,并且在大多数情况下都是如此。但是由于某种原因,当该用户发布消息时,sender_type 是“指南”,我试图查看是否有人知道消息需要发生哪些条件才能具有“指南”的 sender_type(如果有)。我们使用来自 Yammer rest api 的数据来确定谁发布了消息,当 send_type 为“guide”时,sender_id 与实际发布消息的用户不同。根据文档,sender_id 是虚拟用户。

标签: api rest yammer


【解决方案1】:

根据https://github.com/mammerla/YammerIntegration/blob/master/Yammer/SenderType.cs Yammer 使用了以下类型的sender_type

  • user:表示消息的创建者是标准用户。
  • guide:表示创建消息是为了帮助 Yammer 中的用户和社区,例如,“欢迎来到网络,John Doe”
  • bot:以编程方式创建的消息,例如通过 RSS 或 Twitter 导入创建的消息。
  • chat:通过图表功能创建的消息。
  • announcement:表示该消息是作为公告创建到服务器的。
  • system:代表用户创建的系统消息,例如,“John Doe 创建了一个组 Foo”。

【讨论】:

    猜你喜欢
    • 2020-11-16
    • 1970-01-01
    • 1970-01-01
    • 2014-09-13
    • 1970-01-01
    • 2018-07-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多