Skip to main content

Crate bizowie_api

Crate bizowie_api 

Source
Expand description

Async Rust client for Bizowie’s ERP API.

Port of the Perl WWW::Bizowie::API module. Supports both the v1 and v2 API endpoints.

§Example

use bizowie_api::BizowieAPI;
use serde_json::json;

let bz = BizowieAPI::new(
    "02cc7058-cd22-4c8e-ad7c-a8f3f2a64bd0",
    "58c57abc-1e16-3571-bb35-73876bcef746",
    "mysite.bizowie.com",
)
.v2(true);

let res = bz
    .call("databases/add_note/3/10/123", Some(&json!({ "comment": "hi from Rust" })))
    .await?;

if res.success == 1 {
    println!("ok: {}", res.data);
} else {
    eprintln!("failed: {}", res.data);
}

Structs§

BizowieAPI
Async client for the Bizowie ERP API.
BizowieAPIResponse
Response returned by BizowieAPI::call.

Enums§

Error
Errors returned by BizowieAPI::call.