是否可以查看使用AWS Pinpoint发送的消息的内容?我目前正在使用模板发送事务性文本消息,但是我想存储所发送消息的副本。
使用其NodeJS库时,来自请求的响应仅包含MessageId和传递状态。我能够使用2way通信成功附加订阅和lambda,但我想存储最初发送的实际消息。
const params = {
ApplicationId: "",
MessageRequest: {
Addresses: {
[phoneNumber]: {
ChannelType: "SMS"
}
},
MessageConfiguration: {
SMSMessage: {
MessageType: "TRANSACTIONAL",
Substitutions: { firstName: "" }
}
},
TemplateConfiguration: {
SMSTemplate: {
Name: template.name,
Version: template.version
}
}
}
};
const response = await pinpoint.sendMessages(params).promise();
由于它是模板,我如何查看发送的短信?