Unofficial ZennAPI Client.
Add this to your Cargo.toml
:
toml
[dependencies]
zenn = "0.1.0"
```rust use zenn::articles::fetch_articles; use zenn::types::ArticleSearchParams;
async fn main() { let searchparams = ArticleSearchParams { username: "exampleuser".tostring(), count: 10, order: "latest".tostring(), };
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.