INACTIVE - http://mzl.la/ghe-archive
251577d296
bump release to 0.3.0 |
||
---|---|---|
.eslintrc.js | ||
.gitignore | ||
LICENSE | ||
README.md | ||
index.js | ||
package-lock.json | ||
package.json | ||
test.js |
README.md
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('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.
existing work
Who is responsible for this?
- djustice@mozilla.com / @meandavejustice / JSON_voorhees(irc)
LICENSE
MPL 2.0