Socket
Socket
Sign inDemoInstall

yogiyo-api

Package Overview
Dependencies
3
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    yogiyo-api

[![npm version](https://img.shields.io/npm/v/yogiyo-api.svg?style=flat-square)](https://www.npmjs.org/package/yogiyo-api)


Version published
Maintainers
1
Created

Readme

Source

npm version

yogiyo-api

This module is for fetching yogiyo's api server response.

  1. Restaurants - itemList
import { Restaurants } from 'yogiyo-api'

const fetchRestaurantsItemList = ({ latitude, longitude, page, category }) => {
    return Restaurants.itemList({
        lat: latitude,
        lng: longitude,
        page,
        category: convertCategoryToQueryParamValue(category),
    })
}
  1. Restaurants - search
import { Restaurants } from 'yogiyo-api'

const fetchRestaurantsSearch = ({ search, page, latitude, longitude }) => {
    return Restaurants.search({
        search,
        page,
        lat: latitude,
        lng: longitude,
    })
}
  1. Restaurants - menus
import { Restaurants } from 'yogiyo-api'

const fetchRestaurantsMenus = ({ restaurantId }) => {
    return Restaurants.menus({
        restaurantId
    })
}

Keywords

FAQs

Last updated on 01 Feb 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc