Comments
Get Comments
POST https://sketchub.in/api/v2/view_comments.php
To obtain list of all comments on project.
Body
Response
{
"status": "success",
"author_uid": 736,
"data": "[{\"uid\":\"736\",\"username\":\"Kannan_O_V\",\"badge\":\"0\",\"profilepic\":\"https:\\/\\/sketchub.in\\/storage\\/user_avatars\\/736.png\",\"id\":\"175\",\"project_id\":\"122\",\"message\":\"suggestions please to improve project please\",\"comment_type\":\"default\",\"timestamp\":\"1596378676000\"},{\"uid\":\"958\",\"username\":\"tarocafe\",\"badge\":\"60\",\"profilepic\":\"https:\\/\\/sketchub.in\\/storage\\/user_avatars\\/958.png\",\"id\":\"194\",\"project_id\":\"122\",\"message\":\"Your app is lagging! I recommend to create temporary for videos thumbnails, and to not generate thumbnails on \\\"onBindCustomView\\\" but when the app is listing all the videos on a ListMap !\",\"comment_type\":\"default\",\"timestamp\":\"1596412553000\"},{\"uid\":\"736\",\"username\":\"Kannan_O_V\",\"badge\":\"0\",\"profilepic\":\"https:\\/\\/sketchub.in\\/storage\\/user_avatars\\/736.png\",\"id\":\"197\",\"project_id\":\"122\",\"message\":\"thank you @Downachino\",\"comment_type\":\"default\",\"timestamp\":\"1596415303000\"},{\"uid\":\"61639\",\"username\":\"Kelvin_0644\",\"badge\":\"0\",\"profilepic\":\"https:\\/\\/ui-avatars.com\\/api\\/?size=150&bold=true&rounded=true&name=Kelvin0466&background=124CA3&color=fff\",\"id\":\"30034\",\"project_id\":\"122\",\"message\":\"malayali ano\",\"comment_type\":\"default\",\"timestamp\":\"1628753410000\"}]"
}[
{
"uid": "736",
"username": "Kannan_O_V",
"badge": "0",
"profilepic": "https://sketchub.in/storage/user_avatars/736.png",
"id": "175",
"project_id": "122",
"message": "suggestions please to improve project please",
"comment_type": "default",
"timestamp": "1596378676000"
},
{
"uid": "958",
"username": "tarocafe",
"badge": "60",
"profilepic": "https://sketchub.in/storage/user_avatars/958.png",
"id": "194",
"project_id": "122",
"message": "Your app is lagging! I recommend to create temporary for videos thumbnails, and to not generate thumbnails on \"onBindCustomView\" but when the app is listing all the videos on a ListMap !",
"comment_type": "default",
"timestamp": "1596412553000"
},
{
"uid": "736",
"username": "Kannan_O_V",
"badge": "0",
"profilepic": "https://sketchub.in/storage/user_avatars/736.png",
"id": "197",
"project_id": "122",
"message": "thank you @Downachino",
"comment_type": "default",
"timestamp": "1596415303000"
},
{
"uid": "61639",
"username": "Kelvin_0644",
"badge": "0",
"profilepic": "https://ui-avatars.com/api/?size=150&bold=true&rounded=true&name=Kelvin0466&background=124CA3&color=fff",
"id": "30034",
"project_id": "122",
"message": "malayali ano",
"comment_type": "default",
"timestamp": "1628753410000"
}
]Pinned messages
Tip: If the message is in format of /pin title:<TITLE HERE> message:<Message HERE>, then it is pinned message by the project author or Sketchub admin. You may follow this method to get pinned messages that format:
Submit Comment
POST https://sketchub.in/api/v2/post_comment.php
This endpoint will post comment if allowed by the project's configuration.
Body
Response
Mention an user
If you want to mention an user in your message to notify him. You can simply add @user_name in the message and the server will handle rest.
Delete a comment
POST https://sketchub.in/api/v2/delete_comment.php
Using this endpoint, you can delete project comment. Please note that user can only delete his own comments, or other's comments on his own project. And ofcourse, if the user_badge is 40 or greator, it means he is moderator, API will also allow him to delete any comment.
Body
Response
Last updated
Was this helpful?