Safood DB Parse Module


Keywords
Safood
License
MIT
Install
npm install Safood-Parse@0.2.4

Documentation

EatSight-npm

Node.js Module for EatSight API

Installation

Using NPM

npm install SaFood-Parse

Using Git

git clone https://github.com/GrooshBene/EatSight-npm.git

API Document


  • function createUserKey(appKey, age, sex, location, callback) : Used to create User Auth Key

Requiring

appKey : api's ds-applicationKey
age : User's Age
sex : User's Gender
location : User's location. Please refer to EatSight API Doc.
callback : Function to catch a result

Response

{ age: 20,
  sex: 'M',
  location: '1100000000',
  'DS-AccessToken': 'df3d650b-3747-4552-83e3-ddd863706c1b' }
  • function getFoodInfo(appKey, userKey, searchOptions, callback) : Getting FoodInfo Lists.

Requiring

appKey : api's ds-applicationKey
userKey : user's ds-accessToken
searchOptions : A Json Object.
callback : Function to catch a result

searchOptions Example

{
        foodType: 'PFD',
        searchField: 'foodName',
        searchValue: '자갈치',
        offset: 1,
        limit: 10,
        sortField : 'foodName'
}

Result

Please Refer to EatSight API Doc
  • function getSpecifiedInfo(appKey, userKey, foodId, callback) : Getting Specified Food Info With Food's Id.

Requiring

appKey : api's ds-applicationKey
userKey : user's ds-accessToken
foodId : food's Id
callback : function to catch result

Result

Food's Specified Info Json