1.0.3 • Published 7 years ago
youtube-api-non.official v1.0.3
Youtube Easy API
Classes
YoutubeVideo
Right now we only have two classes. This is one, the YoutubeVideo class. You pass a URL to its constructor, and these are the properties it returns to you:
this.url: URL you passed to it
this.title: The title of the video
this.author: Who posted the video
this.authorObj: The author object of who posted the video.
this.likes: Likes
this.dislikes: Dislikes
this.channelSubscribers: How many people subscribed to the author
this.descriptionTxt: Description from #eow-description
YoutubeChannel
this.url: URL you passed to it
this.name: The channel name
this.subscribers: The number of subscribers the channel has.
How to use
New youtube video: new require("youtube-api-non.official").youtubeVid([url)
New youtube video: new require("youtube-api-non.official").youtubeChan([url)