aboutsummaryrefslogtreecommitdiffstats
path: root/src/skweets.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/skweets.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/skweets.rs b/src/skweets.rs
new file mode 100644
index 0000000..91369ec
--- /dev/null
+++ b/src/skweets.rs
@@ -0,0 +1,10 @@
+use crate::error::BlossomError;
+use mastodon_async::entities::status::Status;
+use mastodon_async::prelude::*;
+
+pub async fn get_recents(client: &Mastodon) -> Result<Vec<Status>, BlossomError> {
+ Ok(client
+ .statuses("cel", Default::default())
+ .await?
+ .initial_items)
+}