Compare commits
24
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9f27a3f29
|
||
|
|
fcc8c3966c
|
||
|
|
4d3bb7778a
|
||
|
|
b5fd3dbfff
|
||
|
|
bb58dafed3
|
||
|
|
c71f5bed7a
|
||
|
|
6d5e10857d
|
||
|
|
70f5261b49
|
||
|
|
0fde9c2edd
|
||
|
|
a9fde833aa
|
||
|
|
0e68debd42
|
||
|
|
d21d72f596
|
||
|
|
29fcf41a9c
|
||
|
|
f0ffc580e6
|
||
|
|
57d16c6996
|
||
|
|
a065388805
|
||
|
|
3c45061026
|
||
|
|
5752741972
|
||
|
|
2971363d2f
|
||
|
|
0cbf63c78d
|
||
|
|
e487a2c275
|
||
|
|
97dcb360ab
|
||
|
|
7c3b51d6a0
|
||
|
|
c6103ebba4
|
@@ -3,10 +3,10 @@ name: Release Tagging
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- v0.3.x
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- v0.3.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ name: swoosh Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- v0.3.x
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- v0.3.x
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
|||||||
Generated
+1
-1
@@ -1573,7 +1573,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "swoosh"
|
name = "swoosh"
|
||||||
version = "0.3.0"
|
version = "0.2.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64-ng",
|
"base64-ng",
|
||||||
"const_format",
|
"const_format",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "swoosh"
|
name = "swoosh"
|
||||||
version = "0.3.0"
|
version = "0.2.2"
|
||||||
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,27 +1,5 @@
|
|||||||
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