GET
api/v1/v/{subverse}/{submissionID}/comments

Gets a comment segment for a submission.

Request

URL Parameters

Name (Data Type)Description
submissionID: integer

The ID of the submission to retrieve comments for.

Additional information

  • Required

subverse: string

Response

ApiDataResponseOfCommentSegment
Name (Data Type)Description
data: CommentSegment

success: boolean

version: string

error: ErrorInfo

Response Formats

application/json

Sample:
{
  "success": true,
  "data": {
    "endingIndex": 1,
    "segmentCount": 2,
    "startingIndex": 0,
    "sort": "New",
    "hasMore": false,
    "remainingCount": 0,
    "totalCount": 2,
    "comments": [
      {
        "childCount": 1,
        "content": "You take drugs, Noons?",
        "creationDate": "2017-06-22T13:42:53.1343604Z",
        "formattedContent": null,
        "id": 2342246,
        "isAnonymized": false,
        "isCollapsed": false,
        "isDeleted": false,
        "isSaved": null,
        "isDistinguished": false,
        "isOwner": false,
        "isSubmitter": false,
        "lastEditDate": null,
        "parentID": null,
        "submissionID": 623234,
        "subverse": "ZenLinks",
        "userName": "webbs",
        "vote": null,
        "sum": 32,
        "upCount": 33,
        "downCount": 1,
        "children": {
          "endingIndex": 0,
          "segmentCount": 1,
          "startingIndex": 0,
          "sort": "New",
          "hasMore": false,
          "remainingCount": 0,
          "totalCount": 1,
          "comments": [
            {
              "childCount": 1,
              "content": "Every day",
              "creationDate": "2017-06-22T18:42:53.1343604Z",
              "formattedContent": null,
              "id": 2342275,
              "isAnonymized": false,
              "isCollapsed": false,
              "isDeleted": false,
              "isSaved": null,
              "isDistinguished": false,
              "isOwner": false,
              "isSubmitter": false,
              "lastEditDate": null,
              "parentID": 2342246,
              "submissionID": 623234,
              "subverse": "ZenLinks",
              "userName": "Noons",
              "vote": null,
              "sum": 8,
              "upCount": 10,
              "downCount": 2,
              "children": {
                "endingIndex": 0,
                "segmentCount": 1,
                "startingIndex": 0,
                "sort": "New",
                "hasMore": false,
                "remainingCount": 0,
                "totalCount": 1,
                "comments": [
                  {
                    "childCount": 0,
                    "content": "Good. So what's the problem? ",
                    "creationDate": "2017-06-22T23:42:53.1343604Z",
                    "formattedContent": null,
                    "id": 2342310,
                    "isAnonymized": false,
                    "isCollapsed": false,
                    "isDeleted": false,
                    "isSaved": null,
                    "isDistinguished": false,
                    "isOwner": false,
                    "isSubmitter": false,
                    "lastEditDate": null,
                    "parentID": 2342246,
                    "submissionID": 623234,
                    "subverse": "ZenLinks",
                    "userName": "webbs",
                    "vote": null,
                    "sum": 16,
                    "upCount": 17,
                    "downCount": 1,
                    "children": {
                      "endingIndex": -1,
                      "segmentCount": 0,
                      "startingIndex": -1,
                      "sort": "New",
                      "hasMore": false,
                      "remainingCount": 0,
                      "totalCount": 0,
                      "comments": []
                    }
                  }
                ]
              }
            }
          ]
        }
      },
      {
        "childCount": 0,
        "content": "This is what is wrong with the world!",
        "creationDate": "2017-06-22T15:42:53.1343604Z",
        "formattedContent": null,
        "id": 2342298,
        "isAnonymized": false,
        "isCollapsed": false,
        "isDeleted": false,
        "isSaved": null,
        "isDistinguished": false,
        "isOwner": false,
        "isSubmitter": false,
        "lastEditDate": null,
        "parentID": null,
        "submissionID": 623234,
        "subverse": "ZenLinks",
        "userName": "MrNegagive",
        "vote": null,
        "sum": 13,
        "upCount": 14,
        "downCount": 1,
        "children": {
          "endingIndex": -1,
          "segmentCount": 0,
          "startingIndex": -1,
          "sort": "New",
          "hasMore": false,
          "remainingCount": 0,
          "totalCount": 0,
          "comments": []
        }
      }
    ]
  },
  "version": "1.1.6251.24016"
}