Expand description
§ezlime-rs
A Rust client library for the ezli.me URL shortener API.
This crate provides a simple interface to create shortened URLs using the ezli.me service. To use this API, you’ll need an API key from ezli.me.
§Getting an API Key
If you’re interested in using ezli.me for your own project via the API, please join the Discord server to request an API key.
§Example
use ezlime_rs::EzlimeApi;
let api = EzlimeApi::new("your-api-key-here".to_string());
let original_url = "https://example.com/very/long/url";
let shortened = api.create_short_url(original_url).await?;
println!("Shortened URL: {}", shortened);Structs§
- Create
Link Request - Request payload for creating a shortened URL.
- Created
Link Response - Response from the ezli.me API after creating a shortened URL.
- Ezlime
Api - A client for interacting with the ezli.me API.
Enums§
- Ezlime
ApiError - Errors that can occur when interacting with the ezli.me API.