我實現AWS SNS與AWS SES。發送額外的有效載荷PARAMS在SNS通知寄存器,並取回相同PARAMS時通知接收
我註冊的通知,調用我的HTTP端點處理程序和我收到通知的完美對象。但是,隨着通知身份的發佈,我希望發送額外的有效載荷,這些有效載荷可以在註冊的終端呼叫時收到。我做它的NodeJS
這裏註冊通知
var params = {
Identity: '[email protected]', /* required */
NotificationType: 'Bounce', //["Delivery","Bounce","Complaint"], /* required */
SnsTopic: 'arn:aws-arnstring'
};
ses.setIdentityNotificationTopic(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
的片斷反正是有送額外參數一樣Identity
和NotificationType
?
在此先感謝
你想收到什麼參數? – 2014-10-20 11:21:30
謝謝@邁克爾,我只想簡單的字符串。像{身份: '[email protected]',NotificationType: '彈跳',SnsTopic: '阿爾恩:AWS-arnstring',CAMPAIGNID: 'CMP1'};我應該在通知響應中返回'cmp1' – krish 2014-10-20 12:42:23