Guest User

Untitled

a guest
Oct 18th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function getAllTaskObjectsAsync() {
  2. // TODO: RETURN JSON FROM FUNCTION
  3. request('http://www.modulus.io', function (error, response, body) {
  4. getAllTaskObjects(error, response, body)
  5. });
  6. }
  7.  
  8. function getAllTaskObjects(error, response, body) {
  9. if (!error && response.statusCode === 200) {
  10. console.log('body: ', body); // Show the HTML for the Modulus homepage.
  11. }
  12. done(null, body);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment