SNS AWS in . NET C#

Asked

Viewed 111 times

2

Someone has already implemented SNS in AWS with C#?

I implemented the code below in an attempt by sending by topic created by the console, but need to do everything by our ADM on . net.

Follow the code I am trying to send by topic. No error, but for some reason also not sending. Would anyone know what’s missing from 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);
  • 1

    I decided I had to subscribe to Vices...

1 answer

0


I decided I had to subscribe to Vices

Browser other questions tagged

You are not signed in. Login or sign up in order to post.