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 url = twilio::api::twilio_url(&self.config.account_sid);
|
||||||
let headers = match twilio::api::init_headers(
|
let headers =
|
||||||
&self.config.account_sid,
|
match twilio::api::init_headers(&self.config.account_sid, &self.config.auth_token) {
|
||||||
&self.config.auth_token,
|
Ok(headers) => headers,
|
||||||
) {
|
Err(err) => {
|
||||||
Ok(headers) => headers,
|
return Err(std::io::Error::other(err));
|
||||||
Err(err) => {
|
}
|
||||||
return Err(std::io::Error::other(err));
|
};
|
||||||
}
|
|
||||||
};
|
|
||||||
let params = twilio::api::initial_params(
|
let params = twilio::api::initial_params(
|
||||||
&self.recipient.phone_number,
|
&self.recipient.phone_number,
|
||||||
&self.message.content,
|
&self.message.content,
|
||||||
|
|||||||
Reference in New Issue
Block a user