.Net Core project to send SMS using Amazon AWS
This program uses AWSSDK.Core and AWSSDK.SimpleNotificationService.
In AWSmS.Service project there are the following objects:
-
Message: The message containing the properties MessageText, PhoneNumber, MessageType and SenderId. The SenderId depends on each country, please check if your country can use SenderId on: https://docs.aws.amazon.com/sns/latest/dg/sms_supported-countries.html
-
MessageContract: DesignContract to verify well filled properties
-
MessageType: Promotional or Transaction SMS
-
SMSService: The class responsible for send SMS
-
ServiceResponse: The class responsible for obtain result after sending.
In AWSmS.Utils project, open AWSCredentials.cs and define the variables:
public static string AccessKey = "";
public static string SecretKey = "";
Any doubts about how to configure AWS Credentials?
Check here: https://docs.aws.amazon.com/sdk-for-net/v2/developer-guide/net-dg-config-creds.html