Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab01daafea | ||
|
|
8dd26cee44 |
Generated
+1
-1
@@ -1573,7 +1573,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
||||
|
||||
[[package]]
|
||||
name = "swoosh"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
dependencies = [
|
||||
"base64-ng",
|
||||
"const_format",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "swoosh"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
edition = "2024"
|
||||
rust-version = "1.95"
|
||||
description = "Library to send text messages"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
pub mod types;
|
||||
|
||||
pub async fn response_to_json(response: reqwest::Response) -> serde_json::Value {
|
||||
match response.json().await {
|
||||
Ok(json_body) => json_body,
|
||||
Err(_err) => serde_json::Value::Null,
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn send_mssage(
|
||||
msg: &textsender_models::message::Message,
|
||||
contact: &textsender_models::contact::Contact,
|
||||
|
||||
Reference in New Issue
Block a user