如何将评论添加到 Box REST API 中的评论中?

How do I get the comments added to a comment in the in the Box REST API?

如何将评论添加到 Box REST API 中的评论中?

例如,我将如何return评论(标记为黑色)的评论(标记为黑色)?

它们应该包含在文件的评论列表中。唯一的区别是回复评论的 is_reply_comment 字段设置为 true。

请注意,返回评论的顺序很重要。由于回复只能是一层深度,回复评论总是与其上方的第一个未回复评论相关联。

这是一个示例回复,包括评论和对第一条评论的回复:

GET https://api.box.com/2.0/files/28785720644/comments

{
  "total_count": 2,
  "offset": 0,
  "limit": 100,
  "entries": [
    {
      "type": "comment",
      "id": "63003535",
      "is_reply_comment": false,
      "message": "First message",
      "created_by": {
        "type": "user",
        "id": "221860571",
        "name": "Name",
        "login": "login@gmail.com"
      },
      "created_at": "2015-04-14T17:49:07-07:00"
    },
    {
      "type": "comment",
      "id": "63003537",
      "is_reply_comment": true,
      "message": "Reply message",
      "created_by": {
        "type": "user",
        "id": "221860571",
        "name": "Name",
        "login": "login@gmail.com"
      },
      "created_at": "2015-04-14T17:49:07-07:00"
    }
  ]
}