Currently, I am working on a react native project where I am calling an API to extract data. The extraction process is successful, but now I am facing an issue with taking arguments from the extracted data.
Axios({
url: '/Authentification',
method: 'get',
baseURL: 'http://smart.netrostercloud.com/api',
transformRequest: [
function (data, headers) {
return data;
},
],
transformResponse: [
function (data) {
// console.log(data);
setData3(data);
},
],
headers: {
Authorization: 'Basic UxvwJc1GWjkOCyZoIHGuCD05gDUB72sqrgK30FgILho=',
},
});
console.log(data3);
I have utilized data3 to extract the data in my main function so that it can be viewed. Here is the link to the data: https://i.sstatic.net/7Eq0Q.png
My goal is to extract CompanyCode, UserName, Password, FirstName, and LastName from the data.