Skip to content

Instantly share code, notes, and snippets.

const crypto = require('crypto');
const queryString = require('query-string');
const urlencode = require('urlencode');
const rp = require('request-promise');
const method = 'GET';
const url = 'http://platform.fatsecret.com/rest/server.api';
const params = {
method: 'foods.search',
format: 'json',