Expand description
Unofficial ClickSend SDK for Rust.
Async by default. Enable the blocking feature for a sync mirror that
does not pull in tokio at runtime (it uses [reqwest::blocking]).
use clicksend_rs::{Client, SmsMessage, SmsMessageCollection};
use std::time::Duration;
let client = Client::builder("user", "key")
.timeout(Duration::from_secs(15))
.build()?;
let coll = SmsMessageCollection::new(vec![
SmsMessage::new("+1234567890", "hello"),
]);
let est = client.sms().price(&coll).await?;Re-exports§
pub use client::AccountApi;pub use client::Client;pub use client::ClientBuilder;pub use client::EmailApi;pub use client::MmsApi;pub use client::RetryConfig;pub use client::SmsApi;pub use client::VoiceApi;pub use errors::ClickSendError;pub use types::AccountData;pub use types::ApiEnvelope;pub use types::Currency;pub use types::DeliveryReceiptWebhook;pub use types::Email;pub use types::EmailFrom;pub use types::EmailRecipient;pub use types::InboundSmsWebhook;pub use types::MmsMessage;pub use types::MmsMessageCollection;pub use types::Paginated;pub use types::SmsHistoryItem;pub use types::SmsInboundItem;pub use types::SmsMessage;pub use types::SmsMessageCollection;pub use types::SmsReceiptItem;pub use types::SmsSendData;pub use types::SmsSendMessageResult;pub use types::VoiceMessage;pub use types::VoiceMessageCollection;