Пример #1
0
        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);
        }
Пример #2
0
        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);
        }