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.
- module.exports = async function (context, basicIO )
{
- const request = require('request');
- request('url', function (err, res, body) {
- basicIO.write(res.body);
- });
- }
Does anyone know what's going on?