-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61d5da9
commit 7ddcf74
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
# youtube-stream | ||
Stream Youtube Livestream Chat in Nodejs. | ||
|
||
```bash | ||
npm install --save youtube-stream | ||
``` | ||
## Usage | ||
### ``` .connect(auth, accessToken, liveChatId, callback) ``` | ||
#### ```auth``` | ||
```json | ||
{ | ||
"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 |