Sqabl APIs
  1. Comment
Sqabl APIs
  • APIs
    • Auth
      • Sign Up
      • Sign In
      • Sign Out
      • Refresh Access Token
      • Get user by token
      • Change password
    • OTP
      • Verify OTP
      • Generate OTP
      • OTP Status
    • User
      • Get user
      • Get user by token
      • Update user
      • Get user's followers
      • Get user's followees
      • Get user's referred members
      • Get user's interacted items
      • Get user's bookmarks
      • Flag a user
      • Follow user
      • Unfollow user
      • Block a user
      • Unblock a user
      • Delete user's picture
      • Delete user
    • Users
      • Get users
    • Arenas
      • Get arenas
      • Create an arena
      • Invite users to arenas
    • Arena
      • Get arena
      • Update arena
      • Join an arena
      • Leave an arena
      • Get arena members
      • Add users to arena
      • Remove members from an arena
      • Update an arena member
    • Posts
      • Get posts
      • Create a post
    • Post
      • Get a post
      • Update a post
      • Delete a post
      • Flag a post
      • Flame a post
      • Unflame a post
      • Save a post
      • Unsave a post
      • Hide a post
      • Get post participants
      • Participate in a post
      • Get post comments
      • Comment on a post
    • Comment
      • Get comment
        GET
      • Delete a comment
        DELETE
      • Flag a comment
        POST
      • Flame a comment
        POST
      • Unflame a comment
        DELETE
      • Save a comment
        POST
      • Unsave a comment
        DELETE
    • Alerts
      • Get user's alerts
      • Mark some or all alerts read
    • Flags
      • get flags
    • Faqs
      • get faqs
    • Interests
      • get interests
    • Search
      • get popular search keywords
    • Signed Upload URL
      • get signed url for upload
  1. Comment

Get comment

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
GET
/comment/{id}

Request

Path Params
id
string 
required
The comment id
Query Params
checkActivitiesOfThisUserId
string 
optional
It checks for user's activities; such as "userFlamed", "userThis" and "userThat".
Example:
some-user-id

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.sqabl.com/v1/comment/?checkActivitiesOfThisUserId=some-user-id'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "statusCode": 200,
    "data": {
        "id": "some-comment-id",
        "commenter": {
            "id": "some-user-id",
            "displayName": "Hiseous Zaddy",
            "imageSrc": "https://image.url/"
        },
        "text": "This is my comment, where @{some-random-user-id} is mentioned, and this man @{another-user-id} is mentioned",
        "mentionedUsers": {
            "some-random-user-id": {
                "displayName": "Hiseous Zaddy",
                "imageSrc": "https://image.url/"
            },
            "another-user-id": {
                "displayName": "Hiseous Zaddy",
                "imageSrc": "https://image.url/"
            }
        },
        "totalFlames": 10,
        "totalReplies": 8,
        "dateCommented": "2024-10-07 15:31:43.751Z"
    }
}
Previous
Comment
Next
Delete a comment
Built with