Giter Site home page Giter Site logo

collaboflow-rs's Introduction

Collaboflow REST API Client

Crates.io msrv 1.65.0 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.65.0+

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.13"

Example Usage

[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(())
        }
    }
}

Support APIs

Document

MyStatus

File

Form

User

Group

Title

LICENSE

This project is licensed under the MIT license.

collaboflow-rs's People

Contributors

codemountains avatar kazuno-fukuda avatar

Stargazers

 avatar  avatar

Watchers

 avatar

collaboflow-rs's Issues

Query params `fields` is not working.

Query params fields is not working.

getTitles

Err(ErrorResponse { status: 200, body: ErrorResponseBody { error: true, messages: ["error decoding response body: missing field `id` at line 1 column 32"] } })

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.