| Crates.io | simple_cloudconvert |
| lib.rs | simple_cloudconvert |
| version | 0.7.1 |
| created_at | 2025-01-02 12:35:02.034884+00 |
| updated_at | 2025-01-16 07:47:38.516764+00 |
| description | Simple Cloudconvert functionality for converting files |
| homepage | |
| repository | https://github.com/raisfeld-ori/cloudconvert-converting |
| max_upload_size | |
| id | 1501504 |
| size | 50,295 |
This is a package for converting a file from one format to another using cloudconvert. This package is very minimal and uses Cloudconvert API in order to convert files.
fn main(){
use dotenv::dotenv;
let _ = dotenv().ok();
let converter = Converter::new("YOUR CLOUDCONVER API KEY");
let link = converter.convert("path/to/file", // example: "C:\\Users\\user\\file.csv"
"file format", // the format of the input file. example: "csv". Find all valid formats here: https://api.cloudconvert.com/v2/convert/formats
"output format"); // the output format you want
println!("{}", link.unwrap()); // A link to the new file. example: https://eu-central.storage.cloudconvert.com/tasks/loremipsumloremipsum
}
Get Your cloudconvert API key from here (Requires a cloudconvert account)
converter.convertrequest::blocking, this could result in errors in async programs.This package is NOT a cloudconvert API client. You can find that here. This is a package for pure usage.