Socket
Socket
Sign inDemoInstall

yogiyo-api

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

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
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 01 Feb 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc