ogadagidi
04/18/2022, 11:24 AMogadagidi
04/18/2022, 11:56 AMalbert
04/18/2022, 12:54 PMNikil
04/18/2022, 12:55 PMNikil
04/18/2022, 12:57 PMalbert
04/18/2022, 1:42 PMogadagidi
04/18/2022, 1:51 PMogadagidi
04/18/2022, 1:53 PMalbert
04/18/2022, 2:19 PMogadagidi
04/18/2022, 2:26 PMalbert
04/18/2022, 2:32 PMogadagidi
04/18/2022, 2:33 PMZaid (Cloudflare)
04/18/2022, 7:10 PMalbert
04/18/2022, 7:11 PM4k
flag and assumed it did.joshh
04/19/2022, 4:39 AMconst response = await fetch(
'https://api.cloudflare.com/client/v4/accounts/ACCOUNTID/stream/direct_upload',
{
method: 'POST',
headers: {
'Authorization': 'Bearer '+apikey
},
body: { maxDurationSeconds: 3600 }
}
).then(response => response.json())
.then(data => {
dataRes = data;
});
I just get:
{
"errors": [
{
"code": 10005,
"message": "Bad Request"
}
],
"messages": null,
"result": null,
"success": false
}
joshh
04/19/2022, 4:39 AMjoshh
04/19/2022, 4:54 AMZaid (Cloudflare)
04/19/2022, 6:13 AMZaid (Cloudflare)
04/19/2022, 6:15 AMZaid (Cloudflare)
04/19/2022, 6:17 AMalbert
04/19/2022, 6:20 AMJSON.stringify()
your object before you can use it as the body.albert
04/19/2022, 6:21 AM[object Object]
joshh
04/19/2022, 6:40 AMjoshh
04/19/2022, 10:47 AMjoshh
04/19/2022, 10:47 AMjoshh
04/19/2022, 10:48 AMthird774 | Cloudflare Stream
04/19/2022, 1:54 PMPOST
the video to https://api.cloudflare.com/client/v4/accounts/:accountId/stream/:videoId
to update the meta datatonimasc
04/23/2022, 10:25 AMthird774 | Cloudflare Stream
04/23/2022, 3:18 PM