Get token (#8)

Reviewed-on: #8
This commit was merged in pull request #8.
This commit is contained in:
2026-06-24 14:50:15 -04:00
parent 702fead8c8
commit b5bb605361
7 changed files with 193 additions and 28 deletions
+29
View File
@@ -0,0 +1,29 @@
pub struct Service {
pub app: crate::app::App,
pub token: textsender_models::token::Login,
}
impl Service {
pub async fn do_the_work(&mut self) {
println!("Do some work");
todo!(
r#"
Need to finish this
This function should fetch a token, check if the token is valid, and obtain a refresh token if
it has expired.
Then do the real work.
1. Check the queue
2. If there is an item, get the data,
3. Evaluate if it is schedulable
4. Get the events and iterate each one
5. starting with the message
6. Get the contact
7. Send the message
8. Record the message event response
"#
);
}
}