const result = await this.sendResumableChunks({ ...options, pathUploadId, videoFilePath, size })
+ await this.endResumableUpload({ ...options, pathUploadId })
+
return result.body?.video || result.body as any
}
})
}
+ endResumableUpload (options: OverrideCommandOptions & {
+ pathUploadId: string
+ }) {
+ return this.deleteRequest({
+ ...options,
+
+ path: '/api/v1/videos/upload-resumable',
+ rawQuery: options.pathUploadId,
+ implicitToken: true,
+ defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
+ })
+ }
+
quickUpload (options: OverrideCommandOptions & {
name: string
nsfw?: boolean