diff options
Diffstat (limited to 'shared/server-commands/videos')
-rw-r--r-- | shared/server-commands/videos/videos-command.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shared/server-commands/videos/videos-command.ts b/shared/server-commands/videos/videos-command.ts index 590244484..b5df9c325 100644 --- a/shared/server-commands/videos/videos-command.ts +++ b/shared/server-commands/videos/videos-command.ts | |||
@@ -210,6 +210,20 @@ export class VideosCommand extends AbstractCommand { | |||
210 | }) | 210 | }) |
211 | } | 211 | } |
212 | 212 | ||
213 | listMySubscriptionVideos (options: OverrideCommandOptions & VideosCommonQuery = {}) { | ||
214 | const { sort = '-createdAt' } = options | ||
215 | const path = '/api/v1/users/me/subscriptions/videos' | ||
216 | |||
217 | return this.getRequestBody<ResultList<Video>>({ | ||
218 | ...options, | ||
219 | |||
220 | path, | ||
221 | query: { sort, ...this.buildListQuery(options) }, | ||
222 | implicitToken: true, | ||
223 | defaultExpectedStatus: HttpStatusCode.OK_200 | ||
224 | }) | ||
225 | } | ||
226 | |||
213 | // --------------------------------------------------------------------------- | 227 | // --------------------------------------------------------------------------- |
214 | 228 | ||
215 | list (options: OverrideCommandOptions & VideosCommonQuery = {}) { | 229 | list (options: OverrideCommandOptions & VideosCommonQuery = {}) { |