eatstreet
This is a simple npm wrapper for the Eat Street API. So far I have only added the restaurant/menu endpoints. I will add more as I get there, or feel free to Submit a PR
-
API Key
-
Basic Usage Setup your params object with required and optional parameters and pass them and a callback to a method.
Installation
npm install eatstreet --save
var EatStreet = ;var ES = "{yourAPIKey}";
-
Methods:
Search Restaurants:
/*** Searches EatStreet for restaurants.*** `params` is an Object in the form:* {* address: String // Street Address to Search.* lat: Number // Lattitude to Search.* long: Number // Longitude to Search.* method: String // Delivery, Pickup, Both* radius: Number // Radius to Search.* search: String // Query to find keywords.* }** @param* @param*/var params =address: 'Madison, WI' // Street Address to Search.ES;Restaurant Details:
/*** Gets full details for a specific restaurant.*** `params` is an Object in the form:* {* apiKey: String // apiKey gained from SearchRestaurants* address: String // Street address to determine delivery information.* lat: Number // Lattitude to determine delivery information.* long: Number // Longitude to determine delivery information.* }** @param* @param*/var params =apiKey: '4e1ac3797e396198459c89af9c680205d30b6aeaa238f8d1'customizations: true/* Get Restaurant Details */ES;Restaurant Menu:
/*** Gets full menu for a specific restaurant.*** `params` is an Object in the form:* {* apiKey: String // apiKey gained from SearchRestaurants* customizations: Boolean // Street address to determine delivery information.* }** @param* @param*/var params =apiKey: '4e1ac3797e396198459c89af9c680205d30b6aeaa238f8d1'customizations: trueES;Item Customizations:
/*** Gets item customizations for a specific menu item.*** `params` is an Object in the form:* {* apiKey: String // apiKey gained from SearchRestaurants* }** @param* @param*//* Get a Menu Item Customizations */var params =apiKey: '6771808'ES;