Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jzarca01/node-deliveroo
API Wrapper for Deliveroo, the food delivery company
https://github.com/jzarca01/node-deliveroo
api-wrapper deliveroo nodejs
Last synced: 2 months ago
JSON representation
API Wrapper for Deliveroo, the food delivery company
- Host: GitHub
- URL: https://github.com/jzarca01/node-deliveroo
- Owner: jzarca01
- Created: 2017-12-31T15:36:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T03:13:01.000Z (over 2 years ago)
- Last Synced: 2024-08-04T00:11:06.602Z (6 months ago)
- Topics: api-wrapper, deliveroo, nodejs
- Language: JavaScript
- Homepage:
- Size: 265 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-food - node-deliveroo - Unofficial Node API for Deliveroo. (API for Food services)
README
# node-deliveroo
An API for Deliveroo
## Usage
```javascript
const Deliveroo = require('node-deliveroo');
const deliveroo = new Deliveroo();
```### Sign up
```javascript
deliveroo.signUp(login, password);
```### Log in
```javascript
deliveroo.login(login, password);
```### Update profile
```javascript
deliveroo.updateProfile(userId, {mobile = '', lastName, marketingPreferences = {}, firstName});
```### Add a voucher to an account
```javascript
deliveroo.addVoucherToUser(userId, voucher);
```### Get user order history
```javascript
deliveroo.getHistory(userId);
```### Get order details
```javascript
deliveroo.getOrderDetails(orderId, userId);
```### Get available restaurants
```javascript
deliveroo.getAvailableRestaurants(lat, lng);
```### Get available categories
```javascript
deliveroo.getAvailableCategories(lat, lng);
```### Get available restaurant in specific category
```javascript
deliveroo.getAvailableRestaurantsInCategory(lat, lng, categoryId);
```### Get restaurant details
```javascript
deliveroo.getRestaurantDetails(restaurantId);
```### Get list of saved addresses
```javascript
deliveroo.getSavedAddresses(userId);
```### Add a new saved address
```javascript
deliveroo.addSavedAddress(userId, {name, phone, address, postCode, country, userConfirmedCoordinates =
false, lat, lng})
```### Delete a saved address
```javascript
deliveroo.deleteSavedAddress(userId, savedAddressId);
```### Get list of payment methods available
```javascript
deliveroo.getPaymentMethods(userId);
```### Get Stripe tokens
```javascript
deliveroo.getStripeTokens();
```### Add Stripe payment method to account
```javascript
delivero.addPaymentMethod(userId, tokenId);
```### Delete a payment method
```javascript
deliveroo.deletePaymentMethod(userId, paymentMethodId);
```