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

#230 in HTTP client

Download history 1/week @ 2024-02-20 3/week @ 2024-02-27 1/week @ 2024-03-05 16/week @ 2024-03-12 16/week @ 2024-03-26 51/week @ 2024-04-02

67 downloads per month

MIT/Apache

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–20MB
~279K SLoC