Box REST API のコメントに追加されたコメントを取得するにはどうすればよいですか?
たとえば、コメント (黒でマーク) に対してコメント (赤でマーク) を返すにはどうすればよいでしょうか?
それらは、ファイルのリスト コメントに含める必要があります。唯一の違いは、返信コメントのis_reply_comment
フィールドが true に設定されることです。
返されるコメントの順序が重要であることに注意してください。返信は 1 レベルの深さしかないため、返信コメントは常に、その上の最初の非返信コメントに関連付けられます。
コメントと最初のコメントへの返信を含む応答の例を次に示します。
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"
}
]
}