Last active
November 3, 2015 22:49
-
-
Save smsohan/67f1fb11bf9debbc693b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST https://api.nutritionix.com/v1_1/search -H 'Content-Type: application/json' -d "{\"appId\":\"27bea288\",\"appKey\":\"20e7dbd58d07239743c441a2488f3cbb\",\"query\":\"Coffee\"}" -H "x-spy-rest-desc: Search all items" -k -x "http://spyrest.com:9081" | |
curl -XPOST https://api.nutritionix.com/v1_1/search -H 'Content-Type: application/json' -d "{\"appId\":\"27bea288\",\"appKey\":\"20e7dbd58d07239743c441a2488f3cbb\",\"query\":\"Coffee\",\"filters\":{\"item_type\":2}}" -H "x-spy-rest-desc: Filter for packaged items" -k -x "http://spyrest.com:9081" | |
curl -XPOST https://api.nutritionix.com/v1_1/search -H 'Content-Type: application/json' -d "{\"appId\":\"27bea288\",\"appKey\":\"20e7dbd58d07239743c441a2488f3cbb\",\"query\":\"Coffee\",\"filters\":{\"not\":{\"item_type\":2}}}" -H "x-spy-rest-desc: Filter all but restaurants" -k -x "http://spyrest.com:9081" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment