BizKitHub
DokumentáciaPrieskumník APIPost/api/v1/post/comment/list
getPostVerejné API v1

/api/v1/post/comment/list

Returns a flat list of comments for a post (no nested structure). Frontend can build parent/child UI using parentId.

postgetApiV1PostCommentList

Parametre

4 v query

Parametre v query

· 4
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
postIdstringPovinné

Post public id (content__post.external_id).

Príklad6IU2SWgP76FO2UXw
identityIdstringVoliteľné

Logged user identity (from your frontend cookies). Learn more

PríkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
includeDeletedbooleanVoliteľné

Internal only. If true, includes deleted comments (deletedDate not null).

Predvolené: false
Príkladfalse

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
object | object
Jedna z 2 možností:
Variant 1
itemsobject[]Povinné
Každá položka poľa:
idstringPovinné

Comment external ID (content__post_comment.external_id), 16-char string.

PríkladAbc1dEf2gHiJ3kL4
parentIdstring | nullPovinné

Comment external ID (content__post_comment.external_id), 16-char string.

PríkladAbc1dEf2gHiJ3kL4
contentstringPovinné
insertedDateDate | string | string | numberPovinné
Jedna z 4 možností:
Variant 1
Date
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
deletedDateDate | string | string | numberPovinné
Jedna z 4 možností:
Variant 1
Date
Variant 2
stringdate-time
Variant 3
stringdate
Variant 4
number
authorobjectPovinné
namestringPovinné
profileSlugstringPovinné
usingSubscriptionServicebooleanVoliteľné

True if the author is using a subscription service (has active subscription).

isMinebooleanVoliteľné

True if identityId belongs to the comment author.

Variant 2
state"error"Povinné
messagestringPovinné
code"200"Povinné
hintstring | nullPovinné

Ukážka odpovede

application/json
{
  "items": [
    {
      "id": "Abc1dEf2gHiJ3kL4",
      "content": "example_content",
      "author": {
        "name": "example_name",
        "profileSlug": "example_profileSlug"
      },
      "usingSubscriptionService": false,
      "isMine": false
    }
  ]
}

Ukážka požiadavky

GET /api/v1/post/comment/list

get
curl -X GET "https://api.bizkithub.com/api/v1/post/comment/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&postId=6IU2SWgP76FO2UXw&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg&includeDeleted=false" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč