public GetCommonResponse CallBeneficiaryDeleteValidationAPI(string mobile_no, string sender_profile_id, string beneficiary_id, string otp) { string token = getToken(); string url = DMT_URL + "/beneficiary_delete_validation"; string bodyParam = "username="******"&pwd=" + API_PASSWORD + "&mobile_no=" + mobile_no + "&sender_profile_id=" + sender_profile_id + "&beneficiary_id=" + beneficiary_id + "&otp=" + otp + "&gateway=GW1&token=" + token; string API_response = ExecuteDMRAPIScriptApi(url, bodyParam); GetCommonResponse objResponse = Newtonsoft.Json.JsonConvert.DeserializeObject <GetCommonResponse>(API_response); return(objResponse); }
public GetCommonResponse CallSenderOTPAPI(string mobile_no, string otp) { string token = getToken(); string url = DMT_URL + "/sender_otp"; string bodyParam = "username="******"&pwd=" + API_PASSWORD + "&mobile_no=" + mobile_no + "&otp=" + otp + "&gateway=GW1&token=" + token; string API_response = ExecuteDMRAPIScriptApi(url, bodyParam); GetCommonResponse objResponse = Newtonsoft.Json.JsonConvert.DeserializeObject <GetCommonResponse>(API_response); return(objResponse); }