amazon-sns

Use Amazon SNS to send SMS messages using PHP AWS SDK v2?

▼魔方 西西 提交于 2020-01-04 05:46:08
问题 I inherited a PHP project and it's heavily integrated with AWS SDK v2. Using v3 is not an option at this time. My question is how can I leverage SNS to send text messages to specific numbers as needed? That is, I don't want to send mass notifications to a bunch of phone numbers subscribed to a specific topic when an action occurs, I want to send a notification to a specific phone number when an action occurs. I came across this https://stackoverflow.com/a/41268045/664881 but it appears to be

Use Amazon SNS to send SMS messages using PHP AWS SDK v2?

纵饮孤独 提交于 2020-01-04 05:46:03
问题 I inherited a PHP project and it's heavily integrated with AWS SDK v2. Using v3 is not an option at this time. My question is how can I leverage SNS to send text messages to specific numbers as needed? That is, I don't want to send mass notifications to a bunch of phone numbers subscribed to a specific topic when an action occurs, I want to send a notification to a specific phone number when an action occurs. I came across this https://stackoverflow.com/a/41268045/664881 but it appears to be

AWS SNS how to add line breaks in message

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-04 04:57:46
问题 I'm trying to send SNS messages via CLI in json format. aws sns publish --cli-input-json "{\"TopicArn\":\"xxx\",\"Message\":\"first line\n second line\",\"Subject\":\"Empty subject\"}" But the \n doesn't work. Neither is "\r\n" or "\n". I think the string is escaped by SNS so \n doesn't work. Does anyone know how to send a message of 2 lines?(Sending 2 messages is not an option) Appreciate your advice! 回答1: I think \\n is actually what you are looking for. I've just tested it by sending push

AWS SNS how to add line breaks in message

╄→гoц情女王★ 提交于 2020-01-04 04:57:09
问题 I'm trying to send SNS messages via CLI in json format. aws sns publish --cli-input-json "{\"TopicArn\":\"xxx\",\"Message\":\"first line\n second line\",\"Subject\":\"Empty subject\"}" But the \n doesn't work. Neither is "\r\n" or "\n". I think the string is escaped by SNS so \n doesn't work. Does anyone know how to send a message of 2 lines?(Sending 2 messages is not an option) Appreciate your advice! 回答1: I think \\n is actually what you are looking for. I've just tested it by sending push

AWS SNS is not sending SMS anymore

烂漫一生 提交于 2020-01-03 13:32:12
问题 I have been using Amazon SNS to send SMS for a while, since two days ago it stopped working. I didn't change anything on my side. Even if I try to send SMS from the console, still doesn't work. I only have 35% delivery rate for last couple of days, but since yesterday it is not working at all. 回答1: There are different ways to troubleshoot this problem. This is something addressed in the Developer Forum of AWS. Please go through the following steps to troubleshoot this problem. These could be

Trying to sending sms to India mobile through AWS SNS

旧街凉风 提交于 2020-01-03 05:41:30
问题 My use case is to send sms to India mobile through AWS SNS. I created subscriber and selected protocol as sms. For endpoint I gave my mobile number - it accepts and created subscription. I created topic for the subscription to send sms to my mobile number. It shows sent message but I didn't receive any message from the topic? How to send sms to Indian mobile number in AWS SNS? Please help me!!! Thanks in advance... 回答1: Having worked on a lot of SMS applications with consumers in every

Trying to sending sms to India mobile through AWS SNS

回眸只為那壹抹淺笑 提交于 2020-01-03 05:41:04
问题 My use case is to send sms to India mobile through AWS SNS. I created subscriber and selected protocol as sms. For endpoint I gave my mobile number - it accepts and created subscription. I created topic for the subscription to send sms to my mobile number. It shows sent message but I didn't receive any message from the topic? How to send sms to Indian mobile number in AWS SNS? Please help me!!! Thanks in advance... 回答1: Having worked on a lot of SMS applications with consumers in every

AWS SNS Endpoint getting disabled on its own

本小妞迷上赌 提交于 2020-01-01 14:55:35
问题 I have setup my Android and iOS app to be able to receive notifications via SNS. The setup is working fine and the device do receive the notifications. But later on, the notification starts to fail. I have already enabled logging for both success and failure scenarios. And according to the logs, I keep receiving errors of the form: "Endpoint is disabled:arn:aws:sns:myRegion:myAccount:endpoint/GCM/myApp/myDeviceEndpointHash" I know the error means that the endpoint is disabled. Also, I am

Can you send SNS push notification from lambda function in Amazon AWS?

不想你离开。 提交于 2020-01-01 10:17:23
问题 I am developing an application with Amazon AWS and what I am trying to achieve is to attach a lambda function to DynamoDB table, so after a new row is added ,the lambda function is triggered. In the above mentioned lambda function I want to add the functionality to send a push notification with Amazon SNS service, but I could not find any information in their documentation if that is possible and if it is, what exactly needs to be done to get it working? What I found in their documentation is

Timeout when publishing from AWS Lambda to SNS

為{幸葍}努か 提交于 2020-01-01 08:48:32
问题 I'm trying to publish some data to SNS from a Lambda function call, but it doesn't seem to be working. My function code is - public class Handler implements RequestHandler<DynamodbEvent, Void> { private static final String SNS_TOPIC_ARN = "arn:aws:sns:us-west-2:account_number:function_name"; @Override public Void handleRequest(DynamodbEvent dynamodbEvent, Context context) { LambdaLogger logger = context.getLogger(); AmazonSNSClient snsClient = new AmazonSNSClient(new