Yurba Docs
Yurba Documentation

Get started

Accounts

Users

Relationships

Dialogs (Messages)

Tracks (MuseBase)

Photos

Posts

Comments

Safety

Other

Yurba CDN (cdn.yurba.one)

GET /comments/{comment_id}

Returns CommentModel.

Request URL params:

comment_id: int

Request headers:

token: string

Response:

{ ID: int, Author: ShortUserModel, Content: string, Photos: list[int], Timestamp: int, Likes: { IsLikedByYou: bool, Likes: int }, PostID: int } More about ShortUserModel you can look here: /user/{user_id}

Example:

{ ID: 16, Author: { ID: 1, Name: "Ілля", Surname: "Чернов", Link: "sample", Avatar: 715, Sub: 1, Verify: "Default", Ban: 0, Emoji: ":ua:", CosmeticAvatar: 0 }, Content: "test", Photos: [], Timestamp: 1707550665, Likes: { IsLikedByYou: false, Likes: 0 }, PostID: 339 }

Errors:

auth_failed: token authorization failed

invalid_photos: the photo list cannot be read