I'm trying to assign a value from my axios' response to a variable. How do I assign ContactID to a variable to use further?
my axios response:
{"0":{"Type":"ACCREC","Contact":{"ContactID":"b612f859-b9ea-4b98-a888-f0a666f859d4","AccountNumber":"TestingSylvester","ContactStatus":"ACTIVE","Name":"Testing }}}
my axios request:
.then(function (response) {
console.log(JSON.stringify(response.data));
this.axiosResponse.push(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
I tried this, but I get the error: "Cannot read property 'axiosResponse' of undefined"