youtube-all-in-one-uploader
v1.0.5
Published
Upoad videos and community post on youtube
Maintainers
Readme
Upload Videos and Community Post on Youtube
Upload videos and community post (poll and images) on youtube using node js without youtube api.
Installation
npm install --save youtube-all-in-one-uploaderyarn add youtube-all-in-one-uploaderUsage
Upload Video
const Youtube = require("youtube-all-in-one-uploader");
const upload = async () => {
const youtube = new Youtube();
await youtube.load();
await youtube.login(email, password);
await youtube.uploadVideo({
title: "My video",
description: "My description",
path: "./video.mp4",
});
};Upload Community Post
const Youtube = require("youtube-all-in-one-uploader");
const upload = async () => {
const youtube = new Youtube();
await youtube.load();
await youtube.login(email, password);
// Image upload
await youtube.uploadCommunityPost({
title: "My video",
img: [img, img2],
});
// Voting poll upload
await youtube.uploadCommunityPost({
title: "My video",
options: ["option 1", "option 2"],
});
};