1.0.1 • Published 8 years ago

dominos-pizza-profile v1.0.1

Weekly downloads
4
License
WTFPL
Repository
-
Last release
8 years ago

How to use this thing

var PizzaProfile = require('dominos-pizza-profile');

// initialize the user object
var person = new PizzaProfile.User();

// login
person.login("person@example.com", "hunter2", (profile) => {
  // the profile information is automatically stored in the user object,
  // but you can access it from here if you'd like.
  console.log(profile.FirstName);

  // note that saved cards have a separate request, so you'd need to do this:
  person.getCards((cards) => {
    // cards are also saved in User.Cards, but again, you can access them here
    console.log(cards[0]);
  });
});