Skip to content

API Wrapper for Deliveroo, the food delivery company

Notifications You must be signed in to change notification settings

jzarca01/node-deliveroo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

API Wrapper for Deliveroo, the food delivery company

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published