Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function leit(value, cb) {
- //var url = "http://api.yummly.com/v1/api/recipes?_app_id=92e09229&_app_key=cac7ebbcf3c99974ba11ea55be2ad2c6&"+value;
- var url= "https://notendur.hi.is/hro12/recipe.txt"
- request({
- uri: url,
- method: "GET",
- timeout: 10000,
- followRedirect: true,
- maxRedirects: 10,
- json: true
- }, function(error, response, body) {
- recipe = body;
- cb(recipe);
- console.log(recipe);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement