Post comments API
Get list of comments of a specific post
auth headers of author are requried if post is private note or posted in private room.
Path Parameters
post_id integer required
post id
Query Parameters
client_auth_token string required
Client API token
Header Parameters
access-token string
user access token
client string
client access token
expiry string
timestamp of token expiry
Example: 1531315250
token-type string
access token type
Example: Bearer
uid string
user uid
Example: user@quranreflect.com
Responses
- 200
- 404
List of comments and replies
application/json
Schema
Example (from schema)
Schema
success boolean
data object
{
"success": true,
"data": {
"comments": [
{
"id": 0,
"body": "string",
"is_private": true,
"hidden": true,
"created_at": "string",
"comment_policy_show": true,
"children": [
null
],
"author": {
"id": 0,
"username": "string",
"name": "string",
"first_name": "string",
"last_name": "string",
"verified": true,
"profile_img": "string",
"followed": true,
"original_profile_img": "string",
"rooms_list": [
{}
],
"display_name": "string"
}
}
]
}
}
Not Found
application/json
Schema
Example (from schema)
Post not found
Schema
status integer
success boolean
error string
{
"status": 0,
"success": true,
"error": "string"
}
{
"status": 404,
"success": false,
"error": "Couldn't find Post with 'id'=4"
}
GET /v1/posts/:post_id/comments
Request
Request
curl / cURL
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
python / requests
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
go / native
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
nodejs / axios
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
ruby / Net::HTTP
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
csharp / RestSharp
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
php / cURL
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
java / OkHttp
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'
powershell / RestMethod
curl -L -X GET 'https://quranreflect.com/v1/posts/:post_id/comments' \
-H 'Accept: application/json'