misskey

Crates.iomisskey
lib.rsmisskey
version0.3.0-rc.1
sourcesrc
created_at2020-09-15 13:48:26.245717
updated_at2022-05-16 15:56:28.725636
descriptionAsynchronous client for Misskey
homepagehttps://github.com/coord-e/misskey-rs
repositoryhttps://github.com/coord-e/misskey-rs.git
max_upload_size
id289013
size36,389
coord_e (coord-e)

documentation

https://docs.rs/misskey/0.3.0-rc.1

README

misskey-rs

crates.io docs.rs Actions Status PRs Welcome

misskey-rs is an asynchronous Misskey client library for Rust.

use misskey::prelude::*;
use misskey::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, Misskey").await?;

  Ok(())
}

Take a look at the example directory for more examples.

Usage

Add the following to your Cargo.toml:

[dependencies]
misskey = { version = "0.3.0-rc.1", 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.

Commit count: 447

cargo fmt