Crates.io | kintone |
lib.rs | kintone |
version | 0.6.2 |
created_at | 2025-07-10 04:47:48.399728+00 |
updated_at | 2025-08-29 04:21:27.099933+00 |
description | kintone REST API client |
homepage | https://github.com/nojima/kintone-rs |
repository | https://github.com/nojima/kintone-rs |
max_upload_size | |
id | 1745879 |
size | 400,408 |
DISCLAIMER: this OSS is my own personal work and does not have any relationship with Cybozu Inc. or any other organization which I belong to.
WARNING: This library is under development and is likely to undergo incompatible changes in the future.
A client library of Kintone REST APIs for Rust.
use kintone::client::{Auth, KintoneClient};
// Create a client
let client = KintoneClient::new(
"https://your-domain.cybozu.com",
Auth::api_token("your-api-token")
);
// Get a record
let response = kintone::v1::record::get_record(app_id, record_id)
.send(&client)?;
// Print the record
for (field_code, field_value) in response.record.fields() {
println!("{}: {:?}", field_code, field_value);
}
For detailed documentation, installation instructions, and usage examples, please refer to the API documentation.
kintone-rs supports a middleware system for handling cross-cutting concerns like retries, logging, and authentication. Middleware layers can be easily composed to add functionality to your Kintone client.
use std::time::Duration;
use kintone::client::{Auth, KintoneClientBuilder};
use kintone::middleware;
let client = KintoneClientBuilder::new(
"https://your-domain.cybozu.com",
Auth::api_token("your-api-token")
)
.layer(middleware::RetryLayer::new(
5, // max_attempts
Duration::from_millis(500), // initial_delay
Duration::from_secs(30), // max_delay
None // use default retry logic (retries any errors)
))
.build();
You can find runnable examples in the examples
directory.
The examples require environment variables to be set:
export KINTONE_BASE_URL=https://your-domain.cybozu.com
export KINTONE_API_TOKEN=your-api-token
cargo run --example get_record