npm.io
1.0.1 • Published 5 years ago

gofood

Licence
MIT
Version
1.0.1
Deps
1
Size
217 kB
Vulns
23
Weekly
0
Stars
1

Gofood

Un-official Gofood API Wrapper. API end point known from https://gofood.co.id.

Documentation

Getting Started

  • Using npm
npm i gofood
  • Using yarn
yarn add gofood
  • Include Gofood module
import gf from 'gofood'
Usage API

Get Restaurant By Id

const restaurant = await gf.getRestaurant(restaurantId, location)

Get the nearest restaurant

const result = await gf.getRestaurants(location, page, searchId)

location examples are -6.2174945,106.8178377.

searchId obtained from result page 1.