mirror of
https://github.com/iv-org/documentation.git
synced 2025-07-27 00:35:54 -04:00
Add sort_by
to post comments and add new properties to resolveurl response
This commit is contained in:
parent
f9c6845eb4
commit
4790950c86
2 changed files with 9 additions and 2 deletions
|
@ -586,10 +586,12 @@ page: Int32
|
||||||
> Schema:
|
> Schema:
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
|
browseId?: String,
|
||||||
ucid?: String,
|
ucid?: String,
|
||||||
videoId?: String,
|
videoId?: String,
|
||||||
playlistId?: String,
|
playlistId?: String,
|
||||||
startTimeSeconds?: String,
|
startTimeSeconds?: String,
|
||||||
|
postId?: String,
|
||||||
params?: String,
|
params?: String,
|
||||||
pageType: string
|
pageType: string
|
||||||
}
|
}
|
||||||
|
|
|
@ -259,7 +259,7 @@ This usually means that parsing support for the attachment type has not yet been
|
||||||
##### GET `/api/v1/post/:id`
|
##### GET `/api/v1/post/:id`
|
||||||
> Url parameters
|
> Url parameters
|
||||||
|
|
||||||
* `ucid`: You can optionally provide the channel's id for fetching the post.
|
* `ucid`: It's recommended to provide the channel's id for fetching the post.
|
||||||
|
|
||||||
> Response:
|
> Response:
|
||||||
Same as [`/api/v1/channels/:id/community`](#get-apiv1channelsidcommunity) but only returns one post in the comments array
|
Same as [`/api/v1/channels/:id/community`](#get-apiv1channelsidcommunity) but only returns one post in the comments array
|
||||||
|
@ -268,7 +268,12 @@ Same as [`/api/v1/channels/:id/community`](#get-apiv1channelsidcommunity) but on
|
||||||
|
|
||||||
##### GET `/api/v1/post/:id/comments`
|
##### GET `/api/v1/post/:id/comments`
|
||||||
|
|
||||||
* `ucid`: You can optionally provide the channel's id for fetching the post's comments.
|
> Url parameters
|
||||||
|
|
||||||
|
* `ucid`: You need to provide the channel's id for fetching the post's comments.
|
||||||
|
* `sort_by`: "top", "new" (default: top)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
> Response:
|
> Response:
|
||||||
Same as [`/api/v1/channels/:id/comments`](../api.md#get-apiv1commentsid) but has a postId instead of a videoId
|
Same as [`/api/v1/channels/:id/comments`](../api.md#get-apiv1commentsid) but has a postId instead of a videoId
|
Loading…
Add table
Add a link
Reference in a new issue