Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
380 views
in Technique[技术] by (71.8m points)

python - Add custom attributes to Pinpoint message templates using boto3

I want to pass some data so they can be used as custom attributes in Pinpoint Message template. There's predefined templates in AWS console : APNS , GCM , DefaultPushNotificationMessage. The template for APNS for example is specified in boto3 pinpoint method 'send_messages' in the following way :

message_request["MessageConfiguration"]["APNSMessage"]=apns_template

My question is where can I add custom attributes to this template in 'send_messages' method in the ' message_request["MessageConfiguration"]["APNSMessage"] ' parameter and how to use them ?

boto3 pinpoint method 'send_messages' documentation : https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/pinpoint.html#Pinpoint.Client.send_messages

question from:https://stackoverflow.com/questions/66062308/add-custom-attributes-to-pinpoint-message-templates-using-boto3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...