Last active
July 31, 2016 14:07
-
-
Save jlove4m/55f4b0e5fdce0b6f2973 to your computer and use it in GitHub Desktop.
Helping Mike G's student
This file contains hidden or 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
| <? | |
| require_once './unirest/src/Unirest.php'; | |
| // These code snippets use an open-source library. http://unirest.io/php | |
| $response = Unirest\Request::get("https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/findByIngredients?ingredients=apples%2Cflour%2Csugar&limitLicense=false&number=5&ranking=1", | |
| array("X-Mashape-Key" => "<your key>","Accept" => "application/json")); | |
| echo $response->raw_body; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment