3 unstable releases

0.2.1 Jun 2, 2024
0.2.0 Feb 7, 2024
0.1.0 Oct 9, 2023

#101 in #pdf

MIT license

52KB
1K SLoC

CloudConvert Rust Client

Crates.io docs.rs MIT License

A client library for CloudConvert, built with hapic.

See the docs on docs.rs.


lib.rs:

Creating a client

To create a Client using a bearer token, then create a job:

use cloudconvert::{Client, job};
let client = Client::default_client("your_bearer_token");
client.call(job::Create{
    tasks: todo!(),
    tag: Some("your_tag".into()),
    webhook_url: None,
}).await;

Jobs

Jobs can be crated using the job::Create API call. Jobs consist of a number of named tasks.

Tasks

A task::Task enum represents one of the following tasks:

Import tasks

Processing tasks

Export tasks

Pre-made jobs

  • ImportConvertExport: An API call (underneath, job::Create) which creates a job consisting of an import task, convert task, then export task.

Webhooks

Tools for verifying and parsing webhooks can be found within the webhook module.

Dependencies

~8–19MB
~273K SLoC