Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a94dc2c5e
|
||
|
|
41b8352b3a
|
||
|
|
5943aa178b
|
+7
-9
@@ -58,15 +58,13 @@ impl SendMsg {
|
||||
};
|
||||
|
||||
let url = twilio::api::twilio_url(&self.config.account_sid);
|
||||
let headers = match twilio::api::init_headers(
|
||||
&self.config.account_sid,
|
||||
&self.config.auth_token,
|
||||
) {
|
||||
Ok(headers) => headers,
|
||||
Err(err) => {
|
||||
return Err(std::io::Error::other(err));
|
||||
}
|
||||
};
|
||||
let headers =
|
||||
match twilio::api::init_headers(&self.config.account_sid, &self.config.auth_token) {
|
||||
Ok(headers) => headers,
|
||||
Err(err) => {
|
||||
return Err(std::io::Error::other(err));
|
||||
}
|
||||
};
|
||||
let params = twilio::api::initial_params(
|
||||
&self.recipient.phone_number,
|
||||
&self.message.content,
|
||||
|
||||
Reference in New Issue
Block a user