rs-uptobox

Crates.iors-uptobox
lib.rsrs-uptobox
version0.1.0
sourcesrc
created_at2023-01-25 17:07:04.436581
updated_at2023-01-25 17:07:04.436581
descriptionWrapper for uptobox.com
homepage
repositoryhttps://gitea.heartnerds.org/Mageas/rs-uptobox/
max_upload_size
id767627
size67,196
Arnaud Gaydamour (Mageas)

documentation

https://docs.rs/rs-uptobox

README

rs-uptobox

This crate is a wrapper around the uptobox api.

Details

// Get the files of //dev
let res = uptobox.get_files(&GetFiles::new("//dev")).await;

// Get the files of //dev with an order_by, an offset and a limit
let res = uptobox
    .get_files(
        &GetFiles::new("//dev")
            .order_by(OrderBy::FileSize)
            .offset(2)
            .limit(50),
    )
    .await;

// Move the files to a folder
let res = uptobox
    .move_files(vec!["file_id_1", "file_id_2"], 000000000)
    .await;
Commit count: 0

cargo fmt