Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 504 Bytes
652f343 12506f0 652f343 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import { server, videoId } from "./config.mts"
console.log('submitting a new video..')
const response = await fetch(`${server}/`, {
method: "POST",
headers: {
"Accept": "application/json",
"Content-Type": "application/json"
},
body: JSON.stringify({
token: process.env.VC_SECRET_ACCESS_TOKEN,
sequence: {
id: videoId,
},
shots: []
})
});
console.log('response:', response)
const task = await response.json()
console.log("task:", JSON.stringify(task, null, 2))
|