1.0.1 • Published 3 years ago
gofood v1.0.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.