コード例 #1
0
 public ConvertRequest(string inputformat, string outputformat, string fileurl, ConverterOptions convertOptions = null)
 {
     this.inputformat      = inputformat;
     this.outputformat     = outputformat;
     this.file             = fileurl;
     this.converteroptions = convertOptions;
 }
コード例 #2
0
        public Status Convert(string inputFormat, string outputFormat, string fileurl, ConverterOptions convertOptions = null)
        {
            try
            {
                var request = new ConvertRequest(inputFormat, outputFormat, fileurl, convertOptions);

                var response = this.Send <Status, ConvertRequest>("https://api.cloudconvert.com/convert", request);

                return(response);
            }
            catch (Exception e)
            {
                return(null);
            }
        }