/// <summary> /// VerifyBySmsWebService Method /// </summary> private void ResendBySmsWebService() { string apiUrl = RxConstants.resendConfirmationCodes; try { ResendConfirmationCodesRequest objInputParam = new ResendConfirmationCodesRequest { mail = App.YourDetailsLoginEmail, pin = App.HashPIN, pharmacyid = App.SignUpPharId.ToUpper(), system_version = "android", app_version = "1.6", branding_version = "MLP" }; WebClient resetpinswebservicecall = new WebClient(); var uri = new Uri(apiUrl, UriKind.RelativeOrAbsolute); var json = JsonHelper.Serialize(objInputParam); resetpinswebservicecall.Headers["Content-type"] = "application/json"; resetpinswebservicecall.UploadStringCompleted += resetpinswebservicecall_UploadStringCompleted; resetpinswebservicecall.UploadStringAsync(uri, "POST", json); } catch (Exception) { MessageBox.Show("Sorry, Unable to process your request."); } }
/// <summary> /// Verification By Email WebService Method /// </summary> private void VerificationWebService() { string apiUrl = RxConstants.resendConfirmationCodes; try { string mailId; string pharmacyId; if (string.IsNullOrEmpty(App.YourDetailsLoginEmail) || string.IsNullOrWhiteSpace(App.YourDetailsLoginEmail)) { mailId = App.LoginEmailId; pharmacyId = App.LoginPharId; } else { mailId = App.YourDetailsLoginEmail; pharmacyId = App.SignUpPharId; } ResendConfirmationCodesRequest objInputParam = new ResendConfirmationCodesRequest { mail = mailId, pin = App.HashPIN, pharmacyid = pharmacyId.ToUpper(), system_version = "android", app_version = "1.6", branding_version = "MLP" }; WebClient resetpinswebservicecall = new WebClient(); var uri = new Uri(apiUrl, UriKind.RelativeOrAbsolute); var json = JsonHelper.Serialize(objInputParam); resetpinswebservicecall.Headers["Content-type"] = "application/json"; resetpinswebservicecall.UploadStringCompleted += resetpinswebservicecall_UploadStringCompleted; resetpinswebservicecall.UploadStringAsync(uri, "POST", json); } catch (Exception) { } }