[![](https://ipfs-3speak.b-cdn.net/ipfs/bafkreigmlanu3aa66osutelahiwee4knudcole76wq44jjjvvhdsv5symm/)](https://3speak.tv/watch?v=sagarkothari88/rvkdrgzh) ▶️ [Watch on 3Speak](https://3speak.tv/watch?v=sagarkothari88/rvkdrgzh) --- Hello Team Ecency, With this Video, I'll explain followings - video upload with TUS - thumbnail upload with TUS - consume `upload_info` API ## Where to find source code? - [Here](https://github.com/spknetwork/legacy-studio-frontend-poc-react) - https://github.com/spknetwork/legacy-studio-frontend-poc-react ## EndPoints ``` const studioEndPoint = "https://studio.3speak.tv"; const tusEndPoint = "https://uploads.3speak.tv/files/"; ``` ## Code snippet for `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; } } ``` ## Code snippet for getting status of all videos of a user ``` 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; } } ``` ## Why here? - We are building open source code base. - I think, with this video, I can help more users who wants to integrate APIs - More clients can integrate with Spknetwork ## More Queries - Please reach out to me in discord 3Speak server - Or Add comment below the post ## Support Me | Please 🙏 | Support Me | |-|-| | [Donate Hive Or HBD ](https://hivelive.me/donate/sagarkothari88) | [Vote me as Hive Witness](https://hivesigner.com/sign/account-witness-vote?witness=sagarkothari88&approve=1) | ## Other Communities I recommend joining these communities on Hive & Discord. ![](https://i.imgur.com/pA7l05p.png) [![](https://i.imgur.com/3rIRMbP.png)](https://discord.gg/bGmS2tE) *Click on the banner to join* ![](https://files.peakd.com/file/peakd-hive/pravesh0/EoASy23RK8gomWV8AuSJpQHavdnD3Lic3AzoUwwLXijDbjSV6J843o5U8Xm3ToWRGrs.png) <a href=https://discord.gg/XZGPGpz></a>*Click on the banner to join* ![](https://i.imgur.com/pA7l05p.png)
## Important 3Speak Links | | | | | |-|-|-|-| |[3Speak.tv](https://3speak.tv)| [3Speak Twitter](https://twitter.com/3speakonline) | [3Speak Hive](https://peakd.com/@threespeak) | [3Speak Telegram](https://t.me/threespeak) | | [3Speak in Spanish](https://peakd.com/@threespeak-es/posts) | [Download Android App](https://appdistribution.firebase.dev/i/047cfb506633e639) | [Download iOS App](https://testflight.apple.com/join/0tipqwsZ) | [Download Desktop App](https://github.com/spknetwork/3Speak-app/releases) | [Join 3Speak Discord](https://discord.gg/NSFS2VGj83) | [Setup Encoder Node](https://ecency.com/hive-181335/@sagarkothari88/retfajht) | [Vote for 3Speak Proposal](https://peakd.com/hive-112019/@spknetwork/spk-network-funding-proposal-rhnv7e) | [Vote 3Speak as Witness](https://hivesigner.com/sign/account-witness-vote?witness=threespeak&approve=1) | Cheers Have a good one --- ▶️ [3Speak](https://3speak.tv/watch?v=sagarkothari88/rvkdrgzh)