Skip to content

MadScripter/CloudConvert-.NET-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudConvert API .NET Wrapper

Update [16/10/2013] - Added the methods to delete and cancel a conversion.
=========================

How to use:

1 - Add the following directive:

using MadScripterWrappers;

2 - Create an instance of the CloudConvert class:

CloudConvert api = new CloudConvert("YOUR API KEY");

3 - Create a new Process ID:

api.GetProcessURL("Input format", "Output format");

4 - Upload a file for conversion:

api.UploadFile("The process URL which was created in the previous step","Path to the file you want to upload",
"The output format to which the file will be converted to","The email that will be notified once the conversion is done","A Dictionary of options which are format specific");

A Dictionary would be something like this for an image format:

Dictionary<string, string> options = new Dictionary<string, string>()
{
	{ "resize", "128x128" },
	{ "rotate", "90" }
}

Note: The email and options are optional parameters.

Formats can be found here: https://cloudconvert.org/formats
Getting the status of a conversion:
api.GetStatus("The process URL which was created in step 3");
Listing the running conversions of an API key:
```csharp api.ListProcesses(); ```

For the options here's a list:

// Video - Audio formats
video_codec
video_bitrate
video_resolution
video_ratio
video_fps
video_crf
video_qscale
		
audio_codec
audio_bitrate
audio_frequency
audio_normalize
audio_qscale
		
trim_from
trim_to

// azw - azw3 format
outputprofile
authors
title

// Image formats		
resize
resizemode
rotate
quality

// djvu format
density

// odt format	
page_range
password

// dwg format		
autocad_version

// pdf to html	
no_images

// PSD format	
mergelayers
More information can be found here: https://cloudconvert.org/page/api

About

A .NET wrapper for CloudConvert's API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages