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 138b80c..d5d264a 100644 --- a/src/client.rs +++ b/src/client.rs @@ -16,6 +16,7 @@ use crate::{ error::Error, + group::GroupFetcher, item::ItemBuilder, abook::AbookFetcher, abconfig::ABConfigFetcher, @@ -35,6 +36,7 @@ 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_GROUP_PATH : &str = "/api/z/1.0/group"; pub const ZOTAPI_ITEM_UPDATE_PATH : &str = "/api/z/1.0/item/update"; pub const ZOTAPI_XCHAN_PATH : &str = "/api/z/1.0/xchan"; @@ -71,6 +73,10 @@ impl Client { self.fetch_stream(ZOTAPI_NETWORK_STREAM_PATH, &()) } + pub fn group(&self) -> GroupFetcher { + GroupFetcher::new(self) + } + pub fn item(&self) -> ItemBuilder { ItemBuilder::new(self) } |