mediaflow Rust SDK
This is an unofficial Rust SDK for Mediaflow.
API documentation can be found here: https://static.mediaflowpro.com/doc/
Supports both programmatic and CLI usage (via cli feature).
Beta quality disclaimer
The project's API is still very much in fluctuation. Pin your dependency to the current minor version to avoid breaking changes. From 1.0 and forward we will keep a stable API.
CLI
This is the easiest way to get started. To find out what you can do with the CLI, just append --help or -h to the installed mediaflow command.
Please note that you need to add the cli feature for CLI access. Using cargo-edit you can do this by calling: cargo add mediaflow --features cli
Config file
It's recommended to create an INI config file before using the CLI (see previous section on setup), to avoid having to provide all OAuth 2 details with every command execution.
You can use mediaflow default-ini-path to find the default INI config location.
Write your settings to the file, in this example using heredoc syntax:
After this you just have to provide the section name to start using the CLI:
Environment variables
As an alternative you can provide environment variables directly. For example:
Programmatic access
See example below on how to integrate into your code.
use ;
let config = new;
let api = new;
let files = api.get_folder_files_recursive.await?;
println!;