TextRequestClient.CreateContactAsync 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.
Create or update a contact
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.CreateContactResponse> CreateContactAsync(int idOfTheDashboardToMakeThisCallOn, string phoneNumberOfContact, Azure.Connectors.Sdk.TextRequest.Models.CreateContactInput input, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateContactAsync : int * string * Azure.Connectors.Sdk.TextRequest.Models.CreateContactInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.CreateContactResponse>
override this.CreateContactAsync : int * string * Azure.Connectors.Sdk.TextRequest.Models.CreateContactInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.TextRequest.Models.CreateContactResponse>
Public Overridable Function CreateContactAsync (idOfTheDashboardToMakeThisCallOn As Integer, phoneNumberOfContact As String, input As CreateContactInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CreateContactResponse)
Parameters
- idOfTheDashboardToMakeThisCallOn
- Int32
Id of the dashboard to make this call on
- phoneNumberOfContact
- String
Phone Number of contact
- input
- CreateContactInput
The request body.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Create or update a contact response.
Remarks
Creates or updates a contact (depending on whether one already exists with the given phone number).