Rust wrapper crate around the Uptobox API.
Go to file
Arnaud Gaydamour a4aa016fbf
Fix get account (#3)
* fix: get-account point type
2023-08-28 12:53:00 +02:00
src Fix get account (#3) 2023-08-28 12:53:00 +02:00
.gitignore first commit 2023-01-20 15:54:21 +01:00
Cargo.toml Update: add metadata for cargo 2023-01-25 18:04:00 +01:00
LICENSE Add: LICENSE 2023-01-25 17:33:32 +01:00
README.md Add: README 2023-01-25 17:33:45 +01:00

README.md

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;