You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 months ago | |
---|---|---|
.github | 6 months ago | |
calckey | 6 months ago | |
calckey-api | 6 months ago | |
calckey-core | 6 months ago | |
calckey-http | 6 months ago | |
calckey-test | 6 months ago | |
calckey-util | 6 months ago | |
calckey-websocket | 6 months ago | |
ci | 6 months ago | |
example | 6 months ago | |
.gitignore | 7 months ago | |
Cargo.toml | 6 months ago | |
LICENSE-APACHE | 3 years ago | |
LICENSE-MIT | 3 years ago | |
README.md | 6 months ago | |
clippy.toml | 3 years ago |
README.md
calckey-rs
A fork of misskey-rs for Calckey. Still incomplete.
TODO
- Recommended timeline
- New endpoints
- Admin meta
calckey-rs
is an asynchronous Calckey client library for Rust.
use calckey::prelude::*;
use calckey::HttpClient;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let client = HttpClient::builder("https://your.instance.example/api/")
.token("API_TOKEN")
.build()?;
client.create_note("Hello, Calckey").await?;
Ok(())
}
Take a look at the example directory for more examples.
Usage
Add the following to your Cargo.toml
:
[dependencies]
calckey = { version = "0.2", features = ["12-75-0"] }
To run the example above, you will need to add the following dependencies:
tokio = { version = "1.0", features = ["full"] }
anyhow = "1.0"
See the API documentation for further details.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.