Receive third party API's object data

Hi @dylburger, thank you for the fast reply.

I still can’t see my data I’m afraid.

As the ParseHub package
const ParseHub = require('parsehub');
doesn’t have Promise support I would need to use your suggestion

await new Promise((resolve) => api.getAllJobs(function(err, jobs) {
  console.log(jobs);
  resolve()
}));

Is that correct?

I tried running just:

  const ParseHub = require('parsehub');
  const api = new ParseHub(myToken);
  await new Promise((resolve) => api.getAllJobs(function(err, jobs) {
    console.log(jobs);
    resolve()
  }));

But I just get Console (1) undefined

I ran console.log(api); and showed ParseHub { _apiKey: 'myToken' } on the console so I get the glimpse that it’s correctly getting the ParseHub Node.js package but it’s not really getting my data (there’s no error if I just type ‘22’ on myToken).

I also ran console.log(ParseHub); and got [Function: ParseHub] I’m used to php’s var_dump to see everything behind an object/function/var and console.log isn’t helping me to see anything further than this. I found some functions online that can mimic var_dump on js but I figured I might be diverting now.

I feel I’m missing something again or maybe I didn’t fully understand your suggestion or technique.

Thank you again,
Adrián.