Fork of the misskey-rs client library for Calckey
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.
Go to file
Kainoa Kanter c75ab66bed
docs: todo
6 months ago
.github Calckey-ify 6 months ago
calckey More Calckey 6 months ago
calckey-api Add recommended timeline 6 months ago
calckey-core More Calckey 6 months ago
calckey-http More Calckey 6 months ago
calckey-test More Calckey 6 months ago
calckey-util Add recommended timeline 6 months ago
calckey-websocket More Calckey 6 months ago
ci Calckey-ify 6 months ago
example Calckey-ify 6 months ago
.gitignore ci: use Cargo.lock in CI 7 months ago
Cargo.toml Calckey-ify 6 months ago
LICENSE-APACHE Fix: Fix copyright notice 3 years ago
LICENSE-MIT Fix: Fix copyright notice 3 years ago
README.md docs: todo 6 months ago
clippy.toml Add: Add clippy config to allow moderate size of complex types 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

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.