mozilla-basket

0.3.0 • Public • Published

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

python client

Who is responsible for this?

LICENSE

MPL 2.0

/mozilla-basket/

    Package Sidebar

    Install

    npm i mozilla-basket

    Weekly Downloads

    2

    Version

    0.3.0

    License

    MPL-2.0

    Unpacked Size

    23.1 kB

    Total Files

    6

    Last publish

    Collaborators

    • meandave