Chilkat Online Tools

autoit / Support API / Listing Comments

Back to Collection Items

; This example assumes the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.

$oHttp = ObjCreate("Chilkat_9_5_0.Http")
Local $bSuccess

$oHttp.BasicAuth = True
$oHttp.Login = "login"
$oHttp.Password = "password"

$oQueryParams = ObjCreate("Chilkat_9_5_0.JsonObject")
$oQueryParams.UpdateString("since","<string>")
$oQueryParams.UpdateString("role","<string>")

$oHttp.SetRequestHeader "Accept","application/json"

Local $oResp = $oHttp.QuickRequestParams("GET","https://example.zendesk.com/api/v2/requests/:request_id/comments",$oQueryParams)
If ($oHttp.LastMethodSuccess = False) Then
    ConsoleWrite($oHttp.LastErrorText & @CRLF)
    Exit
EndIf

$oSbResponseBody = ObjCreate("Chilkat_9_5_0.StringBuilder")
$oResp.GetBodySb($oSbResponseBody)

$oJResp = ObjCreate("Chilkat_9_5_0.JsonObject")
$oJResp.LoadSb($oSbResponseBody)
$oJResp.EmitCompact = False

ConsoleWrite("Response Body:" & @CRLF)
ConsoleWrite($oJResp.Emit() & @CRLF)

Local $iRespStatusCode = $oResp.StatusCode
ConsoleWrite("Response Status Code = " & $iRespStatusCode & @CRLF)
If ($iRespStatusCode >= 400) Then
    ConsoleWrite("Response Header:" & @CRLF)
    ConsoleWrite($oResp.Header & @CRLF)
    ConsoleWrite("Failed." & @CRLF)

    Exit
EndIf

; Sample JSON response:
; (Sample code for parsing the JSON response is shown below)

; {
;   "comments": [
;     {
;       "attachments": [
;         {
;           "content_type": "<string>",
;           "content_url": "<string>",
;           "deleted": "<boolean>",
;           "file_name": "<string>",
;           "height": "<string>",
;           "id": "<integer>",
;           "inline": "<boolean>",
;           "malware_access_override": "<boolean>",
;           "malware_scan_result": "<string>",
;           "mapped_content_url": "<string>",
;           "size": "<integer>",
;           "url": "<string>",
;           "width": "<string>",
;           "thumbnails": [
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             },
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             }
;           ]
;         },
;         {
;           "content_type": "<string>",
;           "content_url": "<string>",
;           "deleted": "<boolean>",
;           "file_name": "<string>",
;           "height": "<string>",
;           "id": "<integer>",
;           "inline": "<boolean>",
;           "malware_access_override": "<boolean>",
;           "malware_scan_result": "<string>",
;           "mapped_content_url": "<string>",
;           "size": "<integer>",
;           "url": "<string>",
;           "width": "<string>",
;           "thumbnails": [
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             },
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             }
;           ]
;         }
;       ],
;       "audit_id": "<integer>",
;       "author_id": "<integer>",
;       "body": "<string>",
;       "created_at": "<dateTime>",
;       "html_body": "<string>",
;       "id": "<integer>",
;       "metadata": {
;         "cillum_7ae": "laboris nulla fugiat",
;         "sunt2": 25522168.26328881,
;         "laboris__": true
;       },
;       "plain_body": "<string>",
;       "public": "<boolean>",
;       "type": "<string>",
;       "uploads": [
;         "<string>",
;         "<string>"
;       ],
;       "via": {
;         "channel": "<string>",
;         "source": {
;           "incididunt03e": false,
;           "eiusmod_4": -36679297,
;           "esse7": 87176441
;         }
;       }
;     },
;     {
;       "attachments": [
;         {
;           "content_type": "<string>",
;           "content_url": "<string>",
;           "deleted": "<boolean>",
;           "file_name": "<string>",
;           "height": "<string>",
;           "id": "<integer>",
;           "inline": "<boolean>",
;           "malware_access_override": "<boolean>",
;           "malware_scan_result": "<string>",
;           "mapped_content_url": "<string>",
;           "size": "<integer>",
;           "url": "<string>",
;           "width": "<string>",
;           "thumbnails": [
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             },
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             }
;           ]
;         },
;         {
;           "content_type": "<string>",
;           "content_url": "<string>",
;           "deleted": "<boolean>",
;           "file_name": "<string>",
;           "height": "<string>",
;           "id": "<integer>",
;           "inline": "<boolean>",
;           "malware_access_override": "<boolean>",
;           "malware_scan_result": "<string>",
;           "mapped_content_url": "<string>",
;           "size": "<integer>",
;           "url": "<string>",
;           "width": "<string>",
;           "thumbnails": [
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             },
;             {
;               "content_type": "<string>",
;               "content_url": "<string>",
;               "deleted": "<boolean>",
;               "file_name": "<string>",
;               "height": "<string>",
;               "id": "<integer>",
;               "inline": "<boolean>",
;               "malware_access_override": "<boolean>",
;               "malware_scan_result": "<string>",
;               "mapped_content_url": "<string>",
;               "size": "<integer>",
;               "url": "<string>",
;               "width": "<string>"
;             }
;           ]
;         }
;       ],
;       "audit_id": "<integer>",
;       "author_id": "<integer>",
;       "body": "<string>",
;       "created_at": "<dateTime>",
;       "html_body": "<string>",
;       "id": "<integer>",
;       "metadata": {
;         "nisi04": false
;       },
;       "plain_body": "<string>",
;       "public": "<boolean>",
;       "type": "<string>",
;       "uploads": [
;         "<string>",
;         "<string>"
;       ],
;       "via": {
;         "channel": "<string>",
;         "source": {
;           "amet__": 87553399
;         }
;       }
;     }
;   ]
; }

; Sample code for parsing the JSON response...
; Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

Local $sAudit_id
Local $sAuthor_id
Local $sBody
Local $sCreated_at
Local $sHtml_body
Local $sId
Local $sCillum_7ae
Local $sSunt2
Local $bLaboris__
Local $sPlain_body
Local $sV_public
Local $sV_type
Local $sChannel
Local $bIncididunt03e
Local $iEiusmod_4
Local $iEsse7
Local $bNisi04
Local $iAmet__
Local $iJ
Local $iCount_j
Local $sContent_type
Local $sContent_url
Local $sDeleted
Local $sFile_name
Local $sHeight
Local $sInline
Local $sMalware_access_override
Local $sMalware_scan_result
Local $sMapped_content_url
Local $size
Local $sUrl
Local $sWidth
Local $iK
Local $iCount_k
Local $strVal

Local $i = 0
Local $iCount_i = $oJResp.SizeOfArray("comments")
While $i < $iCount_i
    $oJResp.I = $i
    $sAudit_id = $oJResp.StringOf("comments[i].audit_id")
    $sAuthor_id = $oJResp.StringOf("comments[i].author_id")
    $sBody = $oJResp.StringOf("comments[i].body")
    $sCreated_at = $oJResp.StringOf("comments[i].created_at")
    $sHtml_body = $oJResp.StringOf("comments[i].html_body")
    $sId = $oJResp.StringOf("comments[i].id")
    $sCillum_7ae = $oJResp.StringOf("comments[i].metadata.cillum_7ae")
    $sSunt2 = $oJResp.StringOf("comments[i].metadata.sunt2")
    $bLaboris__ = $oJResp.BoolOf("comments[i].metadata.laboris__")
    $sPlain_body = $oJResp.StringOf("comments[i].plain_body")
    $sV_public = $oJResp.StringOf("comments[i].public")
    $sV_type = $oJResp.StringOf("comments[i].type")
    $sChannel = $oJResp.StringOf("comments[i].via.channel")
    $bIncididunt03e = $oJResp.BoolOf("comments[i].via.source.incididunt03e")
    $iEiusmod_4 = $oJResp.IntOf("comments[i].via.source.eiusmod_4")
    $iEsse7 = $oJResp.IntOf("comments[i].via.source.esse7")
    $bNisi04 = $oJResp.BoolOf("comments[i].metadata.nisi04")
    $iAmet__ = $oJResp.IntOf("comments[i].via.source.amet__")
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("comments[i].attachments")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $sContent_type = $oJResp.StringOf("comments[i].attachments[j].content_type")
        $sContent_url = $oJResp.StringOf("comments[i].attachments[j].content_url")
        $sDeleted = $oJResp.StringOf("comments[i].attachments[j].deleted")
        $sFile_name = $oJResp.StringOf("comments[i].attachments[j].file_name")
        $sHeight = $oJResp.StringOf("comments[i].attachments[j].height")
        $sId = $oJResp.StringOf("comments[i].attachments[j].id")
        $sInline = $oJResp.StringOf("comments[i].attachments[j].inline")
        $sMalware_access_override = $oJResp.StringOf("comments[i].attachments[j].malware_access_override")
        $sMalware_scan_result = $oJResp.StringOf("comments[i].attachments[j].malware_scan_result")
        $sMapped_content_url = $oJResp.StringOf("comments[i].attachments[j].mapped_content_url")
        $size = $oJResp.StringOf("comments[i].attachments[j].size")
        $sUrl = $oJResp.StringOf("comments[i].attachments[j].url")
        $sWidth = $oJResp.StringOf("comments[i].attachments[j].width")
        $iK = 0
        $iCount_k = $oJResp.SizeOfArray("comments[i].attachments[j].thumbnails")
        While $iK < $iCount_k
            $oJResp.K = $iK
            $sContent_type = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].content_type")
            $sContent_url = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].content_url")
            $sDeleted = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].deleted")
            $sFile_name = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].file_name")
            $sHeight = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].height")
            $sId = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].id")
            $sInline = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].inline")
            $sMalware_access_override = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].malware_access_override")
            $sMalware_scan_result = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].malware_scan_result")
            $sMapped_content_url = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].mapped_content_url")
            $size = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].size")
            $sUrl = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].url")
            $sWidth = $oJResp.StringOf("comments[i].attachments[j].thumbnails[k].width")
            $iK = $iK + 1
        Wend
        $iJ = $iJ + 1
    Wend
    $iJ = 0
    $iCount_j = $oJResp.SizeOfArray("comments[i].uploads")
    While $iJ < $iCount_j
        $oJResp.J = $iJ
        $strVal = $oJResp.StringOf("comments[i].uploads[j]")
        $iJ = $iJ + 1
    Wend
    $i = $i + 1
Wend

Curl Command

curl  -u login:password -G -d "since=%3Cstring%3E"
	-d "role=%3Cstring%3E"
	-H "Accept: application/json"
https://example.zendesk.com/api/v2/requests/:request_id/comments

Postman Collection Item JSON

{
  "name": "Listing Comments",
  "request": {
    "method": "GET",
    "header": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "url": {
      "raw": "{{baseUrl}}/api/v2/requests/:request_id/comments?since=<string>&role=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "v2",
        "requests",
        ":request_id",
        "comments"
      ],
      "query": [
        {
          "key": "since",
          "value": "<string>",
          "description": "Filters the comments from the given datetime"
        },
        {
          "key": "role",
          "value": "<string>",
          "description": "One of \"agent\", \"end_user\". If not specified it does not filter"
        }
      ],
      "variable": [
        {
          "key": "request_id",
          "value": "<integer>"
        }
      ]
    },
    "description": "#### Pagination\n\n- Cursor pagination (recommended)\n- Offset pagination\n\nSee [Pagination](/api-reference/introduction/pagination/).\n\n#### Sorting\n\nBy default, comments are sorted by creation date in ascending order.\n\nWhen using cursor pagination, use the following parameter to change the sort order:\n\n| Name   | Type   | Required | Comments\n| ------ | ------ | -------- | --------\n| `sort` | string | no       | Possible values are \"created_at\" (ascending order) or \"-created_at\" (descending order)\n\nWhen using offset pagination, use the following parameters to change the sort order:\n\n| Name         | Type   | Required | Comments\n| ------------ | ------ | -------- | --------\n| `sort_by`    | string | no       | One of `created_at`, `updated_at`\n| `sort_order` | string | no       | One of `asc`, `desc`\n\n#### Allowed For\n\n* End Users\n"
  },
  "response": [
    {
      "name": "Success response",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": "Added as a part of security scheme: basic",
            "key": "Authorization",
            "value": "Basic <credentials>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v2/requests/:request_id/comments?since=<string>&role=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "v2",
            "requests",
            ":request_id",
            "comments"
          ],
          "query": [
            {
              "key": "since",
              "value": "<string>",
              "description": "Filters the comments from the given datetime"
            },
            {
              "key": "role",
              "value": "<string>",
              "description": "One of \"agent\", \"end_user\". If not specified it does not filter"
            }
          ],
          "variable": [
            {
              "key": "request_id"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n  \"comments\": [\n    {\n      \"attachments\": [\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        },\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        }\n      ],\n      \"audit_id\": \"<integer>\",\n      \"author_id\": \"<integer>\",\n      \"body\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"html_body\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"metadata\": {\n        \"cillum_7ae\": \"laboris nulla fugiat\",\n        \"sunt2\": 25522168.26328881,\n        \"laboris__\": true\n      },\n      \"plain_body\": \"<string>\",\n      \"public\": \"<boolean>\",\n      \"type\": \"<string>\",\n      \"uploads\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"incididunt03e\": false,\n          \"eiusmod_4\": -36679297,\n          \"esse7\": 87176441\n        }\n      }\n    },\n    {\n      \"attachments\": [\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        },\n        {\n          \"content_type\": \"<string>\",\n          \"content_url\": \"<string>\",\n          \"deleted\": \"<boolean>\",\n          \"file_name\": \"<string>\",\n          \"height\": \"<string>\",\n          \"id\": \"<integer>\",\n          \"inline\": \"<boolean>\",\n          \"malware_access_override\": \"<boolean>\",\n          \"malware_scan_result\": \"<string>\",\n          \"mapped_content_url\": \"<string>\",\n          \"size\": \"<integer>\",\n          \"url\": \"<string>\",\n          \"width\": \"<string>\",\n          \"thumbnails\": [\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            },\n            {\n              \"content_type\": \"<string>\",\n              \"content_url\": \"<string>\",\n              \"deleted\": \"<boolean>\",\n              \"file_name\": \"<string>\",\n              \"height\": \"<string>\",\n              \"id\": \"<integer>\",\n              \"inline\": \"<boolean>\",\n              \"malware_access_override\": \"<boolean>\",\n              \"malware_scan_result\": \"<string>\",\n              \"mapped_content_url\": \"<string>\",\n              \"size\": \"<integer>\",\n              \"url\": \"<string>\",\n              \"width\": \"<string>\"\n            }\n          ]\n        }\n      ],\n      \"audit_id\": \"<integer>\",\n      \"author_id\": \"<integer>\",\n      \"body\": \"<string>\",\n      \"created_at\": \"<dateTime>\",\n      \"html_body\": \"<string>\",\n      \"id\": \"<integer>\",\n      \"metadata\": {\n        \"nisi04\": false\n      },\n      \"plain_body\": \"<string>\",\n      \"public\": \"<boolean>\",\n      \"type\": \"<string>\",\n      \"uploads\": [\n        \"<string>\",\n        \"<string>\"\n      ],\n      \"via\": {\n        \"channel\": \"<string>\",\n        \"source\": {\n          \"amet__\": 87553399\n        }\n      }\n    }\n  ]\n}"
    }
  ]
}