Home

Awesome

node-deliveroo

An API for Deliveroo

Usage

const Deliveroo = require('node-deliveroo');
const deliveroo = new Deliveroo();

Sign up

deliveroo.signUp(login, password);

Log in

deliveroo.login(login, password);

Update profile

deliveroo.updateProfile(userId, {mobile = '', lastName, marketingPreferences = {}, firstName});

Add a voucher to an account

deliveroo.addVoucherToUser(userId, voucher);

Get user order history

deliveroo.getHistory(userId);

Get order details

deliveroo.getOrderDetails(orderId, userId);

Get available restaurants

deliveroo.getAvailableRestaurants(lat, lng);

Get available categories

deliveroo.getAvailableCategories(lat, lng);

Get available restaurant in specific category

deliveroo.getAvailableRestaurantsInCategory(lat, lng, categoryId);

Get restaurant details

deliveroo.getRestaurantDetails(restaurantId);

Get list of saved addresses

deliveroo.getSavedAddresses(userId);

Add a new saved address

deliveroo.addSavedAddress(userId, {name, phone, address, postCode, country, userConfirmedCoordinates =
false, lat, lng})

Delete a saved address

deliveroo.deleteSavedAddress(userId, savedAddressId);

Get list of payment methods available

deliveroo.getPaymentMethods(userId);

Get Stripe tokens

deliveroo.getStripeTokens();

Add Stripe payment method to account

delivero.addPaymentMethod(userId, tokenId);

Delete a payment method

deliveroo.deletePaymentMethod(userId, paymentMethodId);