mozilla-basket
v0.3.0
Published
API Wrapper around mozilla basket(newsletters)
Downloads
2
Maintainers
Readme
mozilla-basket
npm install mozilla-basket
API wrapper around mozilla's basket newsletter api
Usage
// instantiate
var b = new Basket({BASKET_URL: 'https://basket.mozilla.org'});
b.subscribe('[email protected]', 'marketplace, beta', function(err, body) {
console.log(body.status);
}
Methods:
- subscribe - subscribe to newsletters
- unsubscribe - unsubscribe from newsletters
- user - post user info (token required)
- newsletters - return newsletters data
- debugUser - (requires supertoken)
- lookupUser - check if user is on list (requires apikey)
- recover - send user a password recovery email.
existing work
Who is responsible for this?
- [email protected] / @meandavejustice / JSON_voorhees(irc)
LICENSE
MPL 2.0