static void UploadImages() { var client = new RestClient(host); var request = new RestRequest("images", Method.POST); var model = new ImagesPostRequest { Account = "BOA", Project = "Super Important", Image = image, ImageFormat = ".tif" }; request.RequestFormat = DataFormat.Json; request.AddBody(model); var response = client.Execute <ImagesPostResponse>(request); }
static void UploadImages() { var client = new RestClient(host); var request = new RestRequest("images", Method.POST); var model = new ImagesPostRequest { Account = "BOA", Project = "Super Important", Image = image, ImageFormat = ".tif" }; request.RequestFormat = DataFormat.Json; request.AddBody(model); var response = client.Execute<ImagesPostResponse>(request); }