
Product
Introducing the Alert Details Page: A Better Way to Explore Alerts
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.
This is a node.js wrapper for the Domino's pizza API's
This work is licenced via the DBAD Public Licence. It is a derivative work from Dominos API.
npm install pizzapi
| argument | type | default | required |
|---|---|---|---|
| address | full or partial address string | null | true |
| callback | function to pass the api result to | null | true |
| type | Delivery, Carryout, all | all | false |
this yields the least accurate information
pizzapi.Util.findNearbyStores(
'63102',
'Delivery',
function(storeData){
console.log(storeData);
}
);
this yields less accurate information but is better than just using the postal code
pizzapi.Util.findNearbyStores(
'St. Louis, MO, 63102',
'Delivery',
function(storeData){
console.log(storeData);
}
);
this yields the best information and sorts stores by actual distance
pizzapi.Util.findNearbyStores(
'700 Clark Ave, St. Louis, MO, 63102',
'Delivery',
function(storeData){
console.log(storeData);
}
);
| argument | type | default | required |
|---|---|---|---|
| storeID | string or int | null | true |
| callback | function to pass the api result to | null | true |
//Get Store Info for Store #4336
Store.getInfo(
4336,
function(storeData){
console.log(storeData);
}
);
| argument | type | default | required |
|---|---|---|---|
| storeID | string or int | null | true |
| callback | function to pass the api result to | null | true |
| lang | language string | en | false |
//Get Menu for Store #4336
Store.getMenu(
4336,
function(storeData){
console.log(storeData);
}
);
| argument | type | default | required |
|---|---|---|---|
| phone | Phone number string or int | null | true |
| callback | function to pass the api result to | null | true |
pizzapi.Track.byPhone(
2024561111,
function(pizzaData){
console.log(pizzaData);
}
);
| argument | type | default | required |
|---|---|---|---|
| orderKey | string or int | null | true |
| storeID | sting or int | null | true |
| callback | function to pass the api result to | null | true |
pizzapi.Track.byId(
123456,
12345,
function(pizzaData){
console.log(pizzaData)
}
);
Three classes exist to get orders started,
| Class | Description |
|---|---|
| dominos.class.Order | creates a basic order object |
| dominos.class.Product | creates a basic product with a quantity of 1 |
| dominos.class.Payment | creates a basic credit card payment object |
var thePresident = new pizzapi.Customer({
firstName: 'Barack',
lastName: 'Obama',
address: '700 Pennsylvania Avenue, Washington, DC...',
email: 'barack@whitehouse.gov'
});
var order = new pizzapi.Order({
customer: thePresident,
storeID: '4336'
});
order.addItem(new pizzapi.Item({
code: '14SCREEN',
options: {},
quantity: 1
}));
This step is *Strongly recommended
order.validate(function(result) {
console.log("We did it!");
});
order.price(function(result) {
console.log("Price!")
});
Order placing takes a Stripe token to minimize the amount of work you must do. This also helps to comply with PCI. At least one item must've been added to place an order.
order.place(stripeToken, function(result) {
console.log("Order placed!");
});
FAQs
node js API for Domino's pizza
The npm package pizzapi receives a total of 2 weekly downloads. As such, pizzapi popularity was classified as not popular.
We found that pizzapi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.