0.8.0 • Published 5 years ago
nicolive-api v0.8.0
nicolive-api
ニコニコ生放送のコメントビューア用に開発したコメントサーバなどに接続するためのライブラリです。以下のAPIなども利用することが可能です。
- ユーザー情報
- コミュニティ、チャンネル情報
- ニコ生アラート
Installation
npm install --save nicolive-api
Usage
import nicolive from 'nicolive-api'
nicolive.login('foo@bar.com', 'xxx').then(client => {
client.connectLive('lvxxxx').then(manager => {
manager.viewer.connection.on('comment', (comment => {
console.log(comment.text);
}));
manager.viewer.connection.on('ejected', () => {
console.log('追い出されました');
manager.disconnect();
});
});
client.connectAlert().then(viewer => {
viewer.connection.on('handshaked', () => {
console.log('handshaked');
});
viewer.connection.on('notify', (info => {
console.log(info.contentId);
}));
});
});
0.8.0
5 years ago
0.7.4
6 years ago
0.7.3
7 years ago
0.7.2
7 years ago
0.7.1
7 years ago
0.7.0
7 years ago
0.6.5
7 years ago
0.6.4
7 years ago
0.6.3
7 years ago
0.6.2
7 years ago
0.6.1
7 years ago
0.6.0
7 years ago
0.5.0
7 years ago
0.4.0
7 years ago
0.3.0
7 years ago
0.2.3
7 years ago
0.2.2
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.0
7 years ago