0
私はそのAPIを使ってYoutubeにビデオをアップロードしたいが、ビデオがあることをYouTubeに知らせるために設定する必要があるフィールドを見つけることができないpaid product placements ここに私のコードです:YouTubeのAPIビデオをアップロードして有料の商品プレースメントフィールドを設定
Youtube.videos.insert({
resource: {
// Video title and description
snippet: {
title: "Testing YoutTube API NodeJS module",
description: "Test video upload via YouTube API",
tags: ["music"],
defaultLanguage: "en"
},
// I don't want to spam my subscribers
status: {
privacyStatus: "private"
}
}
// This is for the callback function
, part: "snippet,status"
// Create the readable stream to upload the video
, media: {
body: fs.createReadStream(video_path)
}
}, (err, data) => {
if (err) {
console.log(err);
}
else {
console.log("Done.");
}
});
あなたがビデオhereをアップロードするときに設定できるすべてのフィールドの説明を見つけることができます。