27
Hello Team Ecency,
With this Video, I'll explain followings
upload_info
APIconst studioEndPoint = "https://studio.3speak.tv";
const tusEndPoint = "https://uploads.3speak.tv/files/";
upload_info
async function updateVideoInfo(
oFilename,
videoUrl,
thumbnailUrl,
) {
try {
const { data } = await axios.post(
`${studioEndPoint}/mobile/api/upload_info`,
{
filename: videoUrl,
oFilename: oFilename,
size: 9609313, // NOTE: please change (in bytes)
duration: 40, // NOTE: please change (seconds)
thumbnail: thumbnailUrl,
owner: username,
isReel: false, // if video is a reel/3shorts
},
{
withCredentials: false,
headers: {
"Content-Type": "application/json",
"Authorization": `Bearer ${accessToken}`,
},
}
);
return data;
} catch (e) {
console.error(e);
throw e;
}
}
async function getAllVideoStatuses(access_token) {
try {
let response = await client.get(
`${studioEndPoint}/mobile/api/my-videos`,
{
withCredentials: false,
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${access_token}`,
},
}
);
return response.data;
} catch (err) {
console.log(err);
throw err;
}
}
Please 🙏 | Support Me |
---|---|
Donate Hive Or HBD | Vote me as Hive Witness |
I recommend joining these communities on Hive & Discord.
Cheers
Have a good one
Comments:
Reply:
To comment on this video please connect a HIVE account to your profile: Connect HIVE Account