Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4150af077
|
||
|
|
b411d2370f
|
@@ -37,8 +37,6 @@ pub async fn send_message(
|
||||
|
||||
let params = init_params(contact, msg, config, param);
|
||||
|
||||
println!("Params: {params:?}");
|
||||
|
||||
let url = format!(
|
||||
"https://api.twilio.com/2010-04-01/Accounts/{}/Messages.json",
|
||||
config.account_sid
|
||||
@@ -125,10 +123,7 @@ fn init_params(
|
||||
|
||||
fn convert_time_to_iso(time: time::OffsetDateTime) -> Result<String, time::error::Format> {
|
||||
use time::format_description::well_known::Iso8601;
|
||||
match time.format(&Iso8601::DEFAULT) {
|
||||
Ok(converted) => Ok(converted),
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
time.format(&Iso8601::DEFAULT)
|
||||
}
|
||||
|
||||
fn generate_auth(
|
||||
|
||||
Reference in New Issue
Block a user