Megalodon
The megalodon is a client library for Fediverse. It provides REST API and streaming method which uses WebSocket. By using this library, you can take Mastodon, Pleroma, and Friendica with the same interface.
This library is Rust version of megalodon.
Supporting
- Mastodon
- Pleroma
- Friendica
Features
- REST API
- Admin API
- WebSocket for Streamings
Usage
Add your Cargo.toml like this:
[dependencies]
megalodon = { version = "0.8" }
Making Mastodon request
For a request without authentication.
let client = generator;
let res = client.get_instance.await?;
println!;
Making Mastodon request with authentication
For a request with authentication.
let client = generator;
let res = client.verify_account_credentials.await?;
println!;
License
The software is available as open source under the terms of the Apache License 2.0.