1 import { makePutBodyRequest } from '../requests/requests'
3 function userWatchVideo (url: string, token: string, videoId: number | string, currentTime: number) {
4 const path = '/api/v1/videos/' + videoId + '/watching'
5 const fields = { currentTime }
7 return makePutBodyRequest({ url, path, token, fields, statusCodeExpected: 204 })
10 // ---------------------------------------------------------------------------