Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 608 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 608 Bytes

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.