I have successfully sent text message using AWS - Amazon Simple Notification Service NuGet package in my sample Application. (In this Package, it will automatically install AWSSDK- Core runtime) But, when I was trying to merge code in my current Project where We have already used AWS SDK for other Amazon Services, I am not getting one of the Property required for sending text message.
For Sending text message, We need to Create Publish Request object and pass that Object to AmazonSimpleNotificationServiceClient.
Please find below code
AmazonSimpleNotificationServiceClient smsClient = new AmazonSimpleNotificationServiceClient("Access Key", "Secret Access Key", Region);
PublishRequest publishRequest = new PublishRequest();
publishRequest.Message = message;
publishRequest.MessageAttributes = smsAttributes;
publishRequest.PhoneNumber = "Phone number to which need to send text message";
Then, we need to pass this object to SNS
PublishResponse result = smsClient.Publish(publishRequest);
But I am not getting "PhoneNumber" property in my current Project which refers latest updated AWS SDK (Installed NuGEt Package in my Project - AWS SDK for .NET with latest version).
If I have tried to install earlier NuGEt package with which I have successfully run the code, I am getting conflicts as I am getting class "AmazonSimpleNotificationServiceClient" in both dlls viz. Core and AWSSDK.
Please suggest.