Ok, I was able to solve the above problem very simply.
const url = runtime.globalVars.urlg;
const responseg = await fetch( url , requestOptions)
.then(response => response.text())
.then(function (result) { console.log(result); //here goes the capture//
runtime.globalVars.json1 = (result);})
.catch(error => console.log('error', error));
Now i have another problem... i need to be able to encode some of the information in hmac Sha256.
I can't find any addons or plugins that provide me with this theme, nor information about the theme that I can use in construct 3. Any ideas?