Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
sendblue
Sendblue API Client
This module provides a client for interacting with the Sendblue API, including methods for sending messages, retrieving messages, and evaluating phone numbers.
Overview
The Sendblue API allows you to send messages, retrieve message histories, and evaluate phone numbers for their ability to use iMessage. This module encapsulates these functionalities in a user-friendly Rust client.
Features
- Send Messages: Send single or group messages using the Sendblue API.
- Retrieve Messages: Fetch message histories with filtering and pagination options.
- Evaluate Phone Numbers: Check if a phone number can send/receive iMessages.
- Typing Indicators: Send typing indicators to recipients.
Installation
Use the cargo add command:
If you need JSON schema support, enable the schemars
feature:
Usage
To use the Sendblue API client, create an instance of SendblueClient
with your API key and secret.
use SendblueClient;
let client = new;
Examples
Sending a Message
use SendblueClient;
use MessageBuilder;
async
Retrieving Messages
use SendblueClient;
use GetMessagesParamsBuilder;
async
Evaluating a Phone Number
use SendblueClient;
use EvaluateServiceBuilder;
async
Sending a Typing Indicator
use SendblueClient;
async
Contribution
We welcome contributions! Please see the CONTRIBUTING.md file for more details on how to contribute to this project.
License
This project is dual-licensed under either of the following licenses, at your option:
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
Contact
For any questions or issues, please contact: dominik@spitzli.dev