2.3.2 • Published 8 years ago

barry-donations v2.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

barry-donations

An evented API wrapper for Barry's Donation Tracker, a service that makes tracking donations easier for Twitch broadcasters.

Build Status

Installation

npm install barry-donations

Example Usage

var BarryDonations = require('barry-donations');

// New donations will be received via a REST endpoint
// barry-donations takes care of making and listening to the endpoint, but you must supply the hostname
var bd = new BarryDonations({
    username: 'user',
    password: 'pass',
    hostname: 'yourserver.com', // don't add "http://" prefix. https currently unsupported
    port: 1234,                 // optional, will use a random port if not supplied
    reconnect: true             // optional, attempt to automatically reconnect when disconnected. defaults to true.
});

bd.on('connected', function () {
    console.log('connected');
});

bd.on('connectfail', function (e) {
    console.error(e);
});

bd.on('error', function (e) {
    console.error(e);
});

bd.on('disconnected', function (e) {
    console.error(e);
});

bd.on('reconnecting', function (timerDuration) {
    console.log('reconnecting in %d seconds', timerDuration);
});

bd.on('initialized', function (data) {
    console.log("[init]" + data);
});

bd.on('newdonations', function (data) {
    console.log("[newdonations] " + data);
});

Contributing

  1. Fork it ( http://github.com/langeh/barry-donations/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

barry-donations is provided under the MIT license, which is available to read in the LICENSE file.

Credits

Barry Carlyon, developer of Barry's Donation Tracker

2.3.2

8 years ago

2.3.1

9 years ago

2.3.0

9 years ago

2.2.4

9 years ago

2.2.3

9 years ago

2.2.2

9 years ago

2.2.1

9 years ago

2.2.0

9 years ago

2.1.10

9 years ago

2.1.9

9 years ago

2.1.8

9 years ago

2.1.7

9 years ago

2.1.6

9 years ago

2.1.5

9 years ago

2.1.4

9 years ago

2.1.3

9 years ago

2.1.2

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago