Example #1
0
 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));
 }
Example #2
0
 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));
 }