Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d36483e6f8 |
+9
-7
@@ -58,13 +58,15 @@ impl SendMsg {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let url = twilio::api::twilio_url(&self.config.account_sid);
|
let url = twilio::api::twilio_url(&self.config.account_sid);
|
||||||
let headers =
|
let headers = match twilio::api::init_headers(
|
||||||
match twilio::api::init_headers(&self.config.account_sid, &self.config.auth_token) {
|
&self.config.account_sid,
|
||||||
Ok(headers) => headers,
|
&self.config.auth_token,
|
||||||
Err(err) => {
|
) {
|
||||||
return Err(std::io::Error::other(err));
|
Ok(headers) => headers,
|
||||||
}
|
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