Skip to content

JamesFrost/youtube-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2029165 · Oct 19, 2016

History

12 Commits
Oct 19, 2016
Oct 10, 2016
Oct 10, 2016
Oct 11, 2016
Oct 18, 2016
Oct 19, 2016

Repository files navigation

youtube-stream

Stream Youtube Livestream Chat in Nodejs.

npm install --save youtube-stream

Usage

.connect(auth, accessToken, liveChatId, callback)

auth

{
  "client_id" : "yourAppClientId",
  "client_secret" : "yourAppClientSecret",
  "redirect_uris" :
  [
    "yourAppRedirectUris"
  ]
}

accessToken

Access token of the user you are collecting for.

liveChatId

Live Chat Id of the live stream you want to collect.

callback

Function invoked with (err, results).

Will be executed at regular intervals with new messages.

If err is set, the stream will stop.

License

MIT