TextRequestClient.SendMessageByPhoneNumberAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Send a message to the contact with the given phone number
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.SendMessageByPhoneNumberResponse> SendMessageByPhoneNumberAsync(int idOfTheDashboardToMakeThisCallOn, string phoneNumberToMessage, Azure.Connectors.Sdk.TextRequest.Models.SendMessageByPhoneNumberInput input, System.Threading.CancellationToken cancellationToken = default);
abstract member SendMessageByPhoneNumberAsync : int * string * Azure.Connectors.Sdk.TextRequest.Models.SendMessageByPhoneNumberInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.SendMessageByPhoneNumberResponse>
override this.SendMessageByPhoneNumberAsync : int * string * Azure.Connectors.Sdk.TextRequest.Models.SendMessageByPhoneNumberInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.SendMessageByPhoneNumberResponse>
Public Overridable Function SendMessageByPhoneNumberAsync (idOfTheDashboardToMakeThisCallOn As Integer, phoneNumberToMessage As String, input As SendMessageByPhoneNumberInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendMessageByPhoneNumberResponse)
Parameters
- idOfTheDashboardToMakeThisCallOn
- Int32
Id of the dashboard to make this call on
- phoneNumberToMessage
- String
Phone Number to Message
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Send a message to the contact with the given phone number response.
Remarks
Sends a message (starting a new conversation if the given phone number has no message history).