I'm using the Youtube API to upload videos.
The videos are uploaded public, but after the upload, they automatically changed to Private.
I've done the approval from the developer console, so the youtube.upload scope has been approved already. I'm only using the scope to upload and nothing else.
Any ideas ? I tried to contact the support, but no luck :(
Edit:
My application has been verified:
And the code:
let oauth = Youtube.authenticate({ type: "oauth", client_id:"client", client_secret: "secret", redirect_url: "redirect",}); oauth.setCredentials(token);Youtube.videos.insert( { resource: { snippet: { title: `blabla`, description: `blabla`, }, status: { privacyStatus: "public", madeForKids: true, }, }, part: "snippet,status", media: { body: fs.createReadStream(`blabla.mp4`), }, }, (err, data) => { console.log("Done."); } );
