Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Youtube upload API : Videos automatically private

$
0
0

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:enter image description here

And I have the correct scope:enter image description here

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.");      }    );

Viewing all articles
Browse latest Browse all 3831

Trending Articles