You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console.WriteLine("Sending SMS using Service Principals");
111
111
112
-
//You will need a phone number from your resource to send an SMS.
112
+
//Replace with your Azure Communication Services phone number and the target phone number.
113
113
SmsSendResultresult=instance.SendSms(endpoint, "<Your Azure Communication Services Phone Number>", "<The Phone Number you'd like to send the SMS to.>", "Hello from using Service Principals");
114
114
Console.WriteLine($"Sms id: {result.MessageId}");
115
115
Console.WriteLine($"Send Result Successful: {result.Successful}");
//We need an instance of the program class to use within this method.
131
+
//Create an instance of the Program class to invoke instance methods.
132
132
Programinstance=new();
133
133
134
134
Console.WriteLine("Retrieving new Access Token, using Service Principals");
@@ -137,7 +137,7 @@ class Program
137
137
138
138
Console.WriteLine("Sending SMS using Service Principals");
139
139
140
-
//You will need a phone number from your resource to send an SMS.
140
+
//Replace with your Azure Communication Services phone number and the target phone number.
141
141
SmsSendResultresult=instance.SendSms(endpoint, "<Your Azure Communication Services Phone Number>", "<The Phone Number you'd like to send the SMS to.>", "Hello from Service Principals");
142
142
Console.WriteLine($"Sms id: {result.MessageId}");
143
143
Console.WriteLine($"Send Result Successful: {result.Successful}");
0 commit comments