aboutsummaryrefslogtreecommitdiffstats
path: root/src/zotapi.rs
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-03-25 12:00:13 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-03-25 12:00:13 +0100
commit880b640d3f63c7d26e1b604eb6c905b0973dfae7 (patch)
tree78cb6aaecaab77145c3c22e7877ec0037297a36a /src/zotapi.rs
parente0ce8e76101210918903a780af26abea5284d076 (diff)
downloadrust-zotapi-880b640d3f63c7d26e1b604eb6c905b0973dfae7.tar.gz
rust-zotapi-880b640d3f63c7d26e1b604eb6c905b0973dfae7.tar.bz2
rust-zotapi-880b640d3f63c7d26e1b604eb6c905b0973dfae7.zip
Reenable requesting abook infor for channel.simplify
Only dumps raw json response for now, make it nicer later.
Diffstat (limited to 'src/zotapi.rs')
-rw-r--r--src/zotapi.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zotapi.rs b/src/zotapi.rs
index 0a5c317..a15b51a 100644
--- a/src/zotapi.rs
+++ b/src/zotapi.rs
@@ -93,6 +93,10 @@ impl ZotApi {
Ok(self.get("channel/export/basic").send().await?.text().await?)
}
+ pub async fn abook_list(&self) -> Result<String, Error> {
+ Ok(self.get("abook").send().await?.text().await?)
+ }
+
/// Return a RequestBuilder object that's set up with the correct