Crate ezlime_rs

Crate ezlime_rs 

Source
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§

CreateLinkRequest
Request payload for creating a shortened URL.
CreatedLinkResponse
Response from the ezli.me API after creating a shortened URL.
EzlimeApi
A client for interacting with the ezli.me API.

Enums§

EzlimeApiError
Errors that can occur when interacting with the ezli.me API.