public static T DownloadObject <T>(string url, string method = "POST", Dictionary <string, string> headers = null, IWebProxy proxy = null) { using (JsonWebClient client = new JsonWebClient(proxy, headers)) return(client.UpDownloadObject <T>(url, new Dictionary <string, object>(), method)); }
public static string UploadObject(Dictionary <string, object> objectsDictionary, string url, string method = "POST", Dictionary <string, string> headers = null, IWebProxy proxy = null) { using (JsonWebClient client = new JsonWebClient(proxy, headers)) return(client.UploadObject(url, objectsDictionary, method)); }