Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
First things first
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).
- Obtain the required API Entity using the right method of the
- Perform required operations on the API entity.
Add this to Cargo.toml
[dependencies] shapir = "0.3"
and this to your crate root:
extern crate shapir;
use shapir::Connection; let conn = Connection::new() .subdomain("your-subdomain") .username("firstname.lastname@example.org") .password("your-password") .client_id("client-id") .client_secret("client-secret") .connect() .unwrap(); let items = conn.items(); let files = items.list(Path::Home, None).unwrap();
Contributions are always welcome.