Skip to content

.Net Core project to send SMS using Amazon AWS

Notifications You must be signed in to change notification settings

aragostinho/AWSmS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS SMS

.Net Core project to send SMS using Amazon AWS

AWS SNS (Simple Notification Service)

This program uses AWSSDK.Core and AWSSDK.SimpleNotificationService.

Service Layer

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.

Configuring secret key and access key

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

About

.Net Core project to send SMS using Amazon AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages