- Got a result missing the "id" property ({"account_number":"#####","resource":"954###9425","message_id":11531576,"content":"","from":"Anonymous","first_name":"","last_name":"","created_at":"Oct 25","utc_created_at":"2021-10-25T18:5
How do I fix this error? We currently do not use the id property we use message_id.
const options = {
url: '##',
method: 'GET',
headers: {
'X-API-EMAIL': bundle.authData.api_email,
'X-API-TOKEN': bundle.authData.api_key
},
params: {
'api_email': bundle.authData.api_email,
'api_key': bundle.authData.api_key
}
}
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;
// You can do any parsing you need for results here before returning them
return results;
});