imgbb-rs
ImgBB API wrapper for rust
Getting Started
- Register/Log in to ImbBB
- Obtain the API Key
- Use the API Key in with the library
Usage
Straightforward
use ImgBB;
use tokio;
async
With uploader
use ImgBB;
use tokio;
async
Supported data types
- File & Path
imgbb.read_file.expect.upload.await
// or
imgbb.upload_file.await
- Bytes (
AsRef<u8>)
imgbb.read_bytes.upload.await
// or
imgbb.upload_bytes.await
- Base64 String
imgbb.read_base64.upload.await
// or
imgbb.upload_base64.await
License
imgbb-rs is licensed under the GNU GPL v3.0