Imports Amazon.SimpleNotificationService Imports Amazon.SimpleNotificationService.Model Public Class Form1 Dim myclient As New AmazonSimpleNotificationServiceClient Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim snsreq As New PublishRequest Dim snsres As New PublishResponse Dim snsmsgstng As New Dictionary(Of String, MessageAttributeValue)() snsmsgstng.Add("AWS.SNS.SMS.SenderID", New MessageAttributeValue() With {.StringValue = "testing", .DataType = "string"}) snsmsgstng.Add("AWS.SNS.SMS.SMSType", New MessageAttributeValue() With {.StringValue = "Promotional", .DataType = "string"}) snsreq.MessageAttributes = snsmsgstng snsreq.PhoneNumber = "+972543784512" 'phone No snsreq.Message = "you get message ,if yes then tells me???.." snsres = myclient.Publish(snsreq) End Sub End Class
<appSettings > <add key="AWSAccessKey" value="MYAWSAccessKey" /> <add key="AWSSecretKey" value="MYAWSSecretKey"/> <add key="AWSRegion" value="ap-southeast-1"/> </appSettings>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)