Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c9d167da8d
|
||
|
|
eeb46dc84d
|
||
|
|
8dd26cee44 | ||
|
|
04086e3182 |
@@ -3,10 +3,10 @@ name: Release Tagging
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- v0.3.x
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- v0.3.x
|
||||
- main
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
||||
@@ -3,10 +3,10 @@ name: swoosh Build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- v0.3.x
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- v0.3.x
|
||||
- main
|
||||
|
||||
jobs:
|
||||
check:
|
||||
|
||||
Generated
+1
-1
@@ -1573,7 +1573,7 @@ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
||||
|
||||
[[package]]
|
||||
name = "swoosh"
|
||||
version = "0.2.2"
|
||||
version = "0.3.0"
|
||||
dependencies = [
|
||||
"base64-ng",
|
||||
"const_format",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "swoosh"
|
||||
version = "0.2.2"
|
||||
version = "0.3.0"
|
||||
edition = "2024"
|
||||
rust-version = "1.95"
|
||||
description = "Library to send text messages"
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
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(
|
||||
msg: &textsender_models::message::Message,
|
||||
contact: &textsender_models::contact::Contact,
|
||||
|
||||
Reference in New Issue
Block a user