diff options
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs index f181e65..bce4d08 100644 --- a/src/client.rs +++ b/src/client.rs @@ -25,9 +25,11 @@ use serde::Serialize; use serde_urlencoded; use std::io::Read; use abook::AbookFetcher; +use abconfig::ABConfigFetcher; use xchan::XChanFetcher; pub const ZOTAPI_ABOOK_PATH : &str = "/api/z/1.0/abook"; +pub const ZOTAPI_ABCONFIG_PATH : &str = "/api/z/1.0/abconfig"; pub const ZOTAPI_CHANNEL_STREAM_PATH : &str = "/api/z/1.0/channel/stream"; pub const ZOTAPI_NETWORK_STREAM_PATH : &str = "/api/z/1.0/network/stream"; pub const ZOTAPI_ITEM_UPDATE_PATH : &str = "/api/z/1.0/item/update"; @@ -50,6 +52,10 @@ impl Client { } } + pub fn abconfig(&self) -> ABConfigFetcher { + ABConfigFetcher::new(self) + } + pub fn abook(&self) -> AbookFetcher { AbookFetcher::new(self) } |