1 import { VideoImportCreate } from '../../../../shared/models/videos'
2 import { makeGetRequest, makePostBodyRequest } from '..'
4 function getYoutubeVideoUrl () {
5 return 'https://youtu.be/msX3jv1XdvM'
8 function importVideo (url: string, token: string, attributes: VideoImportCreate) {
9 const path = '/api/v1/videos/imports'
11 return makePostBodyRequest({
16 statusCodeExpected: 200
20 function getMyVideoImports (url: string, token: string) {
21 const path = '/api/v1/users/me/videos/imports'
23 return makeGetRequest({
27 statusCodeExpected: 200
31 // ---------------------------------------------------------------------------