Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getAllTaskObjectsAsync() {
- // TODO: RETURN JSON FROM FUNCTION
- request('http://www.modulus.io', function (error, response, body) {
- getAllTaskObjects(error, response, body)
- });
- }
- function getAllTaskObjects(error, response, body) {
- if (!error && response.statusCode === 200) {
- console.log('body: ', body); // Show the HTML for the Modulus homepage.
- }
- done(null, body);
- }
Advertisement
Add Comment
Please, Sign In to add comment