15 releases
0.12.13 | Oct 11, 2023 |
---|---|
0.12.12 | Oct 1, 2023 |
0.12.11 | Sep 27, 2023 |
0.12.9 | Aug 22, 2023 |
0.0.1 | Jul 10, 2023 |
#2067 in Web programming
113 downloads per month
31KB
811 lines
meztide
A Rust SDK for lotide
See the docs
Dual licensed under either MIT or Apache-2.0 at your choice.
lib.rs
:
A Rust SDK for lotide
Usage
use meztide::prelude::*;
#[tokio::main]
async fn main() {
let client = Client::new("https://c.tide.tk/api/unstable");
let communities = client.communities(&Default::default()).await.unwrap();
let posts = client.posts(&Default::default()).await.unwrap();
let community_id = CommunityId(1);
// Get community data
let community = community_id.to_community(&client).await.unwrap();
// Get community moderators
let moderators = community_id.moderators(&client).await.unwrap();
// Follow the community
let _ = community_id.follow(&client, false).await.unwrap();
// Delete the community
let _ = community_id.delete(&client).await.unwrap();
}
See Client
or
[ids
] for more things you can do.
See api_models
for more sights you can see.
Dependencies
~5–17MB
~237K SLoC