Collaboflow REST API Client

Crates.io docs.rs License

A Collaboflow REST API client for Rust language.

This is not an official crate, just a hobby project.

Installation

Requirements

Importing

The driver is available on crates.io.

To use the driver in your application, simply add it to your project's Cargo.toml.

toml [dependencies] collaboflow-rs = "0.0.6"

Example Usage

toml [dependencies] collaboflow-rs = "0.0.6" tokio = "1.22.0"

```rust use collaboflow_rs::{Authorization, CollaboflowClient, Query};

[tokio::main]

async fn main() -> Result<(), ()> { let authorization = Authorization::withapikey("User id", "API key");

let client = CollaboflowClient::new("https://{Collaboflow url}/{Instance name}/api/index.cfm/v1/", authorization);

let query = Query::builder().app_cd(1); // Your app cd

let document_id: i32 = 1; // Your document id
let result = client.document.get(document_id, query).await;
match result {
    Ok(resp) => {
        println!("{:?}", resp);
        Ok(())
    },
    Err(err) => {
        println!("{:?}", err);
        Err(())
    }
}

} ```

Support APIs

Document

MyStatus

Form

User

Group

Title

LICENSE

This project is licensed under the MIT license.