Пример #1
0
        private TelekomJsonWebRequest<TelekomResponse> CreateValidateWebRequest(ValidateRequest request)
        {
            EnsureRequestValid(request);

            string uri = ServiceBaseUrl
                + string.Format("/validatednumbers/{0}", request.Number);

            return CreateAuthenticatedRequest<TelekomResponse>(uri, HttpMethod.POST, request);
        }
Пример #2
0
 /// <summary>Return the received validation code to complete phone number validation (async).</summary>
 /// <param name="request">Parameter object</param> 
 /// <param name="callback">Handler to invoke after completion</param>
 public void Validate(ValidateRequest request, Action<TelekomResponse> callback)
 {
     CreateValidateWebRequest(request).ExecuteAsync(a => callback(a));
 }
Пример #3
0
 /// <summary>Return the received validation code to complete phone number validation.</summary>
 /// <param name="request">Parameter object</param> 
 /// <returns>Result of this operation</returns>
 public TelekomResponse Validate(ValidateRequest request)
 {
     return CreateValidateWebRequest(request).Execute();
 }