npm install mozilla-basket
API wrapper around mozilla's basket newsletter api
// instantiate
var b = new Basket({BASKET_URL: 'https://basket.mozilla.org'});
b.subscribe('assata@example.com', '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.
- djustice@mozilla.com / @meandavejustice / JSON_voorhees(irc)
MPL 2.0