is there a way to write code to make the names of the keys in this parsed data response and use them for colom names in a table and log all the keys in a table?
// Define an async function to make the HTTP request
async function fetchData() {
try {
// Make an HTTP GET request to the API endpoint
const response3 = await axios.get('https://cybh7excdzyqofqbzgm2h6vwn40xpzmu.lambda-url.us-east-1.on.aws/');
// Log the response data
console.log('Data from HTTP endpoint:', response3.data);
// Store the data in workflow.data
workflow.teamStandings = response3.data;
// Log success message
console.log('Standings logged successfully.');
// Return the response data if needed
return response3.data;
} catch (error) {
// Handle any errors
console.error('Error fetching or saving matchup data:', error.response ? error.response.data : error.message);
return null;
}
}
// Call the async function to fetch the data
const response3Data = await fetchData();
console.log('Workflow Data:', workflow.teamStandings);