// Call the Contentstack Analytics API to retreive the data
var requestOptions = {
method: "GET",
headers: {
api_key: input.apiKey,
authtoken: input.authToken,
"Content-Type": "application/json"
},
redirect: "follow"
};
let result1 = await (
await fetch(
"https://app.contentstack.com/analytics/v2/job/" +
input.jobId +
"/data?orgUid=" +
input.orgUid,
requestOptions
)
).json();
return [result1];
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.