#lfg-imraising This is a NodeCG bundle.
Listens for donations to a given account on ImRaising and emits API events for other bundles to use.
- Install to
nodecg/bundles/lfg-imraising
- Create
nodecg/cfg/lfg-imraising.json
with the advancedapiKey
of the ImRaising account that you wish to listen to:
{
"apiKey": "xxxxx"
}
If you would like to use this data in another bundle, add the following code to your view/panel:
nodecg.listenFor('donation', 'lfg-imraising', callback);
... where 'callback' is the name of a function with the signature function callback(data)
If you want to use tip events in another bundle's extension,
add lfg-imraising
as a bundleDependency
in your bundle's nodecg.json
Then add the following code:
var imraising = nodecg.extensions['lfg-imraising'];
imraising.on('donation', function(donation) {
// Do your thing.
});
lfg-imraising is provided under the MIT license, which is available to read in the [LICENSE][] file. [license]: LICENSE