Crates.io | zenn |
lib.rs | zenn |
version | 0.1.0 |
source | src |
created_at | 2023-08-12 16:11:19.208072 |
updated_at | 2023-08-12 16:11:19.208072 |
description | Unofficial ZennAPI Client. |
homepage | |
repository | https://github.com/ryohidaka/zenn-rs |
max_upload_size | |
id | 942828 |
size | 40,219 |
Unofficial ZennAPI Client.
Add this to your Cargo.toml
:
[dependencies]
zenn = "0.1.0"
use zenn::articles::fetch_articles;
use zenn::types::ArticleSearchParams;
#[tokio::main]
async fn main() {
let search_params = ArticleSearchParams {
username: "example_user".to_string(),
count: 10,
order: "latest".to_string(),
};
let result = fetch_articles(search_params).await;
match result {
Ok(data) => println!("Fetched articles: {:?}", data),
Err(err) => eprintln!("Error fetching articles: {:?}", err),
}
}
Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or submit a pull request.
This project is licensed under the MIT License.