1.0.4 • Published 5 years ago

issues-danmuku v1.0.4

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

issues-danmuku

Use the Github Issues API as a danmuku

Install

Install with npm

$ npm install issues-danmuku

Or install with yarn

$ yarn add issues-danmuku
import IssuesDanmuku from 'issues-danmuku';

Or umd builds are also available

<script src="path/to/issues-danmuku.js"></script>

Will expose the global variable to window.IssuesDanmuku.

Usage

// Instantiation
var danmuku = new IssuesDanmuku({
  api: '',
  clientID: '',
  clientSecret: ''
});

// Login
danmuku.login();

// Logout
danmuku.logout();

// Send danmu
danmuku
  .send({
    //
  })
  .then(data => {
    console.log(data);
  });

// Cache the danmu
danmuku.cache().then(danmus => {
  console.log(danmus);
});

// Get the DB
this.db;

License

MIT © Harvey Zack

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago