Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9d167da8d
|
||
|
|
eeb46dc84d
|
||
|
|
8dd26cee44 | ||
|
|
04086e3182 |
@@ -3,10 +3,10 @@ name: Release Tagging
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- v0.3.x
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- v0.3.x
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ name: swoosh Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- v0.3.x
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- v0.3.x
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
|||||||
Generated
+1
-1
@@ -1573,7 +1573,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "swoosh"
|
name = "swoosh"
|
||||||
version = "0.2.2"
|
version = "0.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64-ng",
|
"base64-ng",
|
||||||
"const_format",
|
"const_format",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "swoosh"
|
name = "swoosh"
|
||||||
version = "0.2.2"
|
version = "0.3.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.95"
|
rust-version = "1.95"
|
||||||
description = "Library to send text messages"
|
description = "Library to send text messages"
|
||||||
|
|||||||
@@ -1,5 +1,27 @@
|
|||||||
pub mod types;
|
pub mod types;
|
||||||
|
|
||||||
|
pub async fn response_to_json(response: reqwest::Response) -> serde_json::Value {
|
||||||
|
match response.json().await {
|
||||||
|
Ok(json_body) => {
|
||||||
|
json_body
|
||||||
|
/*
|
||||||
|
let res = jsonBody.as_str();
|
||||||
|
match serde_json::from_str(res) {
|
||||||
|
Ok(converted) => {
|
||||||
|
converted
|
||||||
|
}
|
||||||
|
Err(_err) => {
|
||||||
|
serde_json::Value::Null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
Err(_err) => {
|
||||||
|
serde_json::Value::Null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub async fn send_mssage(
|
pub async fn send_mssage(
|
||||||
msg: &textsender_models::message::Message,
|
msg: &textsender_models::message::Message,
|
||||||
contact: &textsender_models::contact::Contact,
|
contact: &textsender_models::contact::Contact,
|
||||||
|
|||||||
Reference in New Issue
Block a user