public string Send(Dictionary <string, object> data, out string returnMessage) { string retrunJsonResult = _httpWebHelper.HttpPost(API_SEND, data); returnMessage = retrunJsonResult; return(retrunJsonResult); }
public bool Send(Dictionary <string, object> data, out string returnMessage) { string retrunJsonResult = _httpWebHelper.HttpPost(API_SEND, data); returnMessage = retrunJsonResult; return(HttpWebHelper.CheckReturnJsonStatus(retrunJsonResult)); }
public bool Charge(string to, string packageType) { var dataPair = new Dictionary <string, object>(); dataPair.Add("to", to); var v = new ValidationHelper(); if (v.IsChinaMobilePhoneNumber(to)) { dataPair.Add("cm", packageType); } else if (v.IsChinaUnicomPhoneNumber(to)) { dataPair.Add("cu", packageType); } else if (v.IsChinaTelecomPhoneNumber(to)) { dataPair.Add("ct", packageType); } string retrunJsonResult = _httpWebHelper.HttpPost(API_CHARGE, dataPair); return(retrunJsonResult.Contains("charge_id")); }