Hello <@368829146584842242> yes I am using axios ...
# 🌎general
f
Hello @fresh-fireman-491 yes I am using axios at the top the code is const axios = require('axios'); const https = require('https'); const data = captured on botpress; async function fetchData() { try { const username = 'username'; const password = 'password'; and password const authString = Buffer.from(
${username}:${password}
).toString('base64'); const response = await axios.get(
https:///api//extinet/web/${data}
, { headers: { 'Authorization':
Basic ${authString}
// Add the Authorization header with the authString }, httpsAgent: new https.Agent({ rejectUnauthorized: false }) // Ignore SSL certificate validation (optional) }); // Handle the response data console.log('Response data:', response.data); // You can do further processing with the response data here } catch (error) { // Handle any errors console.error('Error fetching data:', error); } } // Call the function to fetch the data fetchData();