-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
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'
}
Metadata
Metadata
Assignees
Labels
No labels