Compare commits

..
Author SHA1 Message Date
phoenix 4dfd355bd8 Removing unused dependencies
swoosh pr / Rustfmt (pull_request) Successful in 36s
Release Tagging / release (pull_request) Successful in 51s
swoosh pr / Check (pull_request) Successful in 1m42s
swoosh pr / Clippy (pull_request) Failing after 1m45s
2026-07-03 00:40:50 -04:00
phoenix 681a7daab9 bump: textsender_models 2026-07-03 00:38:13 -04:00
phoenix c613b6011c bump: swoosh 2026-07-03 00:35:20 -04:00
phoenix 9bfb594f78 Adding new code to send message
swoosh pr / Check (pull_request) Failing after 45s
swoosh pr / Rustfmt (pull_request) Successful in 45s
Release Tagging / release (pull_request) Failing after 41s
swoosh pr / Clippy (pull_request) Failing after 2m4s
2026-07-03 00:32:19 -04:00
+3 -3
View File
@@ -40,15 +40,15 @@ impl SendMsg {
param: &crate::twilio::types::Parameters, param: &crate::twilio::types::Parameters,
) -> Result<reqwest::Response, std::io::Error> { ) -> Result<reqwest::Response, std::io::Error> {
if self.recipient.phone_number.is_empty() { if self.recipient.phone_number.is_empty() {
Err(std::io::Error::other("Recipient not provided")) return Err(std::io::Error::other("Recipient not provided"));
} else if self.message.content.is_empty() { } else if self.message.content.is_empty() {
Err(std::io::Error::other("Message not provided")) return Err(std::io::Error::other("Message not provided"));
} else if self.config.phone_number.is_empty() } else if self.config.phone_number.is_empty()
|| self.config.service_sid.is_empty() || self.config.service_sid.is_empty()
|| self.config.auth_token.is_empty() || self.config.auth_token.is_empty()
|| self.config.auth_sid.is_empty() || self.config.auth_sid.is_empty()
{ {
Err(std::io::Error::other("Config not populated")) return Err(std::io::Error::other("Config not populated"));
} else { } else {
let client = match reqwest::Client::builder().build() { let client = match reqwest::Client::builder().build() {
Ok(client) => client, Ok(client) => client,