Crates.io | collaboflow-rs |
lib.rs | collaboflow-rs |
version | 0.0.13 |
source | src |
created_at | 2022-11-23 13:56:32.882485 |
updated_at | 2023-12-10 12:31:47.452628 |
description | A Collaboflow REST API client for Rust language. |
homepage | |
repository | https://github.com/codemountains/collaboflow-rs |
max_upload_size | |
id | 721622 |
size | 163,841 |
A Collaboflow REST API client for Rust language.
This is not an official crate, just a hobby project.
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.13"
[dependencies]
collaboflow-rs = "0.0.13"
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(())
}
}
}
fields
is not supported.fields
is not supported.fields
is not supported.This project is licensed under the MIT license.