public static async Task <Certificate> Get(string host) { var url = AccountUrlHelper.Certificate("get"); Dictionary <string, string> paraDic = new Dictionary <string, string>(); paraDic.Add("domain", host); string para = JsonHelper.Serialize(paraDic); Certificate certificate = null; try { certificate = await HttpHelper.GetAsync <Certificate>(url, paraDic); } catch (Exception ex) { } return(certificate); }
public static async Task <string> Get(string url) { var responseJson = await HttpHelper.GetAsync(url); return(responseJson); }