Skip to main content

Crate uni_sdk

Crate uni_sdk 

Source
Expand description

Official Rust SDK for the Unimatrix HTTP API.

UniClient provides typed access to SMS messages and OTP verification. Credentials can be supplied explicitly or loaded from UNIMTX_ACCESS_KEY_ID and UNIMTX_ACCESS_KEY_SECRET with UniClient::from_env.

Structs§

MessageService
Asynchronous SMS message operations.
OtpService
Asynchronous one-time passcode operations.
SendMessageData
Data returned after sending one or more messages.
SendMessageRequest
Parameters accepted by sms.message.send.
SendOtpRequest
Parameters accepted by otp.send.
UniClient
Asynchronous client for the Unimatrix HTTP API.
UniClientBuilder
Builder for UniClient.
UniMessage
Per-recipient message details returned by the API.
UniResponse
A successful Unimatrix API response.
VerifyOtpData
Data returned after verifying an OTP.
VerifyOtpRequest
Parameters accepted by otp.verify.

Enums§

OtpChannel
Channel used to deliver a one-time passcode.
Recipients
One phone number or a list of phone numbers.
UniError
Errors produced while configuring the client or calling the API.

Constants§

DEFAULT_ENDPOINT
Default base URL for Unimatrix API requests.
DEFAULT_SIGNING_ALGORITHM
Signing algorithm used for authenticated requests.
USER_AGENT
User agent sent with API requests.
VERSION
Version of this SDK package.

Type Aliases§

Result
Result type returned by the SDK.