private TelekomJsonWebRequest<TelekomResponse> CreateSendValidationKeywordWebRequest(SendValidationKeywordRequest request) { EnsureRequestValid(request); string uri = ServiceBaseUrl + "/send"; return CreateAuthenticatedRequest<TelekomResponse>(uri, HttpMethod.POST, request); }
/// <summary>Request to send a validation keyword to a phone number (async).</summary> /// <param name="request">Parameter object</param> /// <param name="callback">Handler to invoke after completion</param> public void SendValidationKeyword(SendValidationKeywordRequest request, Action<TelekomResponse> callback) { CreateSendValidationKeywordWebRequest(request).ExecuteAsync(a => callback(a)); }
/// <summary>Request to send a validation keyword to a phone number.</summary> /// <param name="request">Parameter object</param> /// <returns>Result of this operation</returns> public TelekomResponse SendValidationKeyword(SendValidationKeywordRequest request) { return CreateSendValidationKeywordWebRequest(request).Execute(); }