#collaboflow

collaboflow-rs

A Collaboflow REST API client for Rust language

2 releases

Uses new Rust 2021

new 0.0.10 Dec 8, 2022
0.0.9 Dec 4, 2022
0.0.7 Nov 30, 2022

#53 in HTTP client

Download history 30/week @ 2022-11-17 117/week @ 2022-11-24 85/week @ 2022-12-01

232 downloads per month

MIT license

125KB
3K SLoC

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

  • Rust 1.63+

Importing

The driver is available on crates.io.

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

[dependencies]
collaboflow-rs = "0.0.10"

Example Usage

[dependencies]
collaboflow-rs = "0.0.10"
tokio = "1.22.0"
use collaboflow_rs::{Authorization, CollaboflowClient, Query};

#[tokio::main]
async fn main() -> Result<(), ()> {
    let authorization = Authorization::with_api_key("User id", "API key");

    let client = CollaboflowClient::new("https://{Collaboflow url}/{Instance name}/api/index.cfm", 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.

Dependencies

~5–14MB
~273K SLoC