SDKs We offer tools to make EatStreet API even easier to use!
BETA Javascript SDK
To use the javascript sdk, add the following snippet to your html.
<script>
    (function() {
        var es = document.createElement('script'); es.type = 'text/javascript'; es.async = true;
        es.src = ('https:' == document.location.protocol ? 'https://' : 'http://developers.') + 'eatstreet.com/api-js-sdk/js/sdk-remote.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(es, s);
    })();
</script>
After onload, register the sdk with your access token.
ESApi.init('__API_EXPLORER_AUTH_KEY__');
Then you can easily use EatStreet API to do things like search for restaurants...
ESApi.searchRestaurants({ 'street-address': '316 W. Washington Ave. Madison, WI' }, function(response) {
    var address = response.address;
    var restaurants = response.restaurants;
    console.log(address, restaurants);
});
Load restaurant details
ESApi.getRestaurantDetails({ apiKey: 358 }, function(response) {
    var restaurant = response.restaurant;
    console.log(restaurant);
});
Load a menu
ESApi.getRestaurantMenu({ apiKey: 358 }, function(menuCategories) {
    console.log(menuCategories);
});
Load item customizations
ESApi.getItemCustomizations({ apiKey: 1518342 }, function(customizationGroups) {
    console.log(customizationGroups);
});
Send an order
var order = {
    "restaurantApiKey": "358",
    "items": [
        {
            "apiKey": "35191",
            "customizationChoices": [
                {
                    "apiKey": "9454246"
                }
            ],
            "comments": "Pile it high!"
        }
    ],
    "method": "pickup",
    "payment": "cash",
    "card": {
        "apiKey": null
    },
    "address": {
        "apiKey": null
    },
    "recipient": {
        "apiKey": "485ca34bedf9153e7ecdb0c1c698d2cee41ee9406039e889"
    }
};
ESApi.sendOrder(order, function(_order) {
    console.log(_order);
});
Load an order
ESApi.getOrder({ apiKey: '7422332c294e9511cc814b63e0c23d5a68581c5b05756d42' }, function(order) {
    console.log(order);
});
Load the status of an order
ESApi.getOrderStatus({ apiKey: '7422332c294e9511cc814b63e0c23d5a68581c5b05756d42' }, function(orderStatus) {
    console.log(orderStatus);
});
Register a user
var newUser = {
    'email': 'newuser@eatstreet.com',
    'password': 'password',
    'firstName': 'New',
    'lastName': 'User',
    'phone': '6086667777'
};
ESApi.registerUser(newUser, function(_newUser) {
    console.log(_newUser);
});
Update a user
var updatedUser = {
    apiKey: '485ca34bedf9153e7ecdb0c1c698d2cee41ee9406039e889',
    phone: '6086661234'
};
ESApi.updateUser(updatedUser, function(_updatedUser) {
    console.log(updatedUser);
});
Sign in a user
var signin = {
    'email': 'newuser@eatstreet.com',
    'password': 'password'
};
ESApi.signinUser(signin, function(user) {
    console.log(user);
});
Load order history
ESApi.getOrderHistory({ apiKey: '485ca34bedf9153e7ecdb0c1c698d2cee41ee9406039e889' }, function(orders) {
    console.log(orders);
});
Add an address
var addAddress = {
    'apiKey': '485ca34bedf9153e7ecdb0c1c698d2cee41ee9406039e889',
    'streetAddress': '316 W. Washington Ave. Suite 725',
    'city': 'Madison',
    'state': 'WI',
    'zip' : '53703'
};
ESApi.addAddress(addAddress, function(address) {
    console.log(address);
});
Add a card
var addCard = {
    'apiKey': '485ca34bedf9153e7ecdb0c1c698d2cee41ee9406039e889',
    'cardholderName': 'Lana Lane',
    'cardholderStreetAddress': '316 W. Washington Ave. Suite 725',
    'cardholderZip' : '53703',
    'cardNumber': '1234567891234',
    'cvv': '123',
    'expirationMonth': '02',
    'expirationYear': '19'
};
ESApi.addCard(addCard, function(card) {
    console.log(card);
});
Remove a card
var removeCard = {
    'userApiKey': '7422332c294e9511cc814b63e0c23d5a68581c5b05756d42',
    'cardApiKey': '485ca34bedf9153e7ecdb0c1c698d2cee41ee9406039e889'
};
ESApi.removeCard(removeCard, function(user) {
    console.log(user);
});
Remove an address
var removeAddress = {
    'userApiKey': '7422332c294e9511cc814b63e0c23d5a68581c5b05756d42',
    'addressApiKey': '2b5ca34bedf9153e7a33b0c1c698d2cee41ac9406039e176'
};
ESApi.removeAddress(removeAddress, function(user) {
    console.log(user);
});