0.1.8 • Published 4 years ago

glovo-node v0.1.8

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

Glovo API Node JS (unofficial)

Hello world ! This project allows to use different endpoints of the Glovo Business API. It's an open source project so don't hesitate to participate or just notify me of changes that would not be present in this package.

Here is the official documentation of the Glovo Buisness API

Get started

NPM

npm i glovo-node

Yarn

yarn add glovo-node

Set your credentials

Go to the Get Started section

Usage

Create the Glovo client

const glovo_node = require('glovo-node')

const glovo = glovo_node({
	baseURL: '<Glovo base url>', // API URL -> Actually https://api.glovoapp.com
	api_key: '<your PUBLIC API key>', // Go on your profile at the bottom of the page
	api_secret: '<your SECRET API key>', // Go on your profile at the bottom of the page
})

Orders

Delivery area

glovo.orders.deliveryArea()

see response Working areas

Estimate price

glovo.orders.estimate(params)

see response and params Estimate order price

Create order

glovo.orders.order(params)

see response Create order

Cancel

glovo.orders.cancel(<your_order_id>)

see response Cancel order

Find one

glovo.orders.find(<your_order_id>)

see response Get single order

List

glovo.orders.list()
glovo.orders.list({ limit, offset })

see response Get orders list

Courier

Get contact

glovo.courier.contact(<your_order_id>)

see response Courier contact

Tracking

Get current position

glovo.tracking.position(<your_order_id>)

see response Order tracking

Configuration

  • baseURL => Glovo API URL
  • api_key => Your public API key
  • api_secret => Your secret API key
  • header_options => header config (axios) object
  • client_options => axios options object
0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago