You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What seems to me from following example, is that library will return just body of response for err or data, what about headers? What if i need status code of response?
...transactional.sendSmartEmail({
To: [...],
Data: {...},
smartEmailID: ...,
clientID: ...
}, function (err, data) {
if (err) {
console.log('ERROR', err)
} else {
console.log('RESPONSE', response)
}
})
For example if recipient is omitted, err would be:
{
Code: 952,
Message: 'Recipient is required. At least one To, CC, or a BCC address is required'
}
The text was updated successfully, but these errors were encountered:
What seems to me from following example, is that library will return just body of response for
err
ordata
, what about headers? What if i need status code of response?For example if recipient is omitted,
err
would be:The text was updated successfully, but these errors were encountered: