Unofficial ShareFile REST API SDK for Rust.
To work with ShareFile REST API you should register you appliction first. Please follow instructions from the official documentation to obtain API key.
The SDK follows the composition of API Entities of the REST API. So for example to access Items functionality you should obtain instance of that API Entity using method items()
of the connection opened.
The workflow of the SDK usage looks like this:
Connection
(behind the scene it does more things like authentication). Connection
. Add this to Cargo.toml
toml
[dependencies]
shapir = "0.0.6"
and this to your crate root:
rust
extern crate shapir;
```rust use shapir::Connection;
let conn = Connection::new() .subdomain("your-subdomain") .username("your.username@mail.com") .password("your-password") .clientid("client-id") .clientsecret("client-secret") .connect() .unwrap();
let items = conn.items(); let files = items.list(Path::Home, None).unwrap(); ```
Contributions are always welcome.