Has anyone implemented SNS in AWS with C #?
I've implemented the code below in an attempt to send a topic created by the console, but I need to do everything for our ADM in .NET.
Follow the code that I'm trying to upload by topic. It does not make a mistake, but for some reason it is not sending either. Would anyone know what's missing in it?
RegionEndpoint regionEndPoint = RegionEndpoint.USEast1;
IAmazonSimpleNotificationService snsClient =
AWSClientFactory.CreateAmazonSimpleNotificationServiceClient("#####","#######", regionEndPoint);
PublishRequest publishRequest = new PublishRequest()
{
Subject = "teste",
Message = "{\n\"APNS_SANDBOX\":\"{\\"aps\\":{\\"alert\\":\\"'sdfsdfsdfd'\\"}}\"\n}",
TopicArn = "arn:aws:sns:us-east-1:###############",
};
snsClient.Publish(publishRequest);