How do I make API calls in Creator?

How do I make API calls in Creator?

I'm attempting to make an API call using the node "request" package. Whenever I execute the function, it says it executed successfully but there's never anything in the output. I'm wondering why that is. It seems like nothing is even being run inside of the function after the call is made.

}
  1. module.exports = async function (context, basicIO )
    {
  2. const request = require('request');
  3. request('url'function (err, res, body) {
  4.     basicIO.write(res.body);
  5. });
  6. }
Does anyone know what's going on?