aboutsummaryrefslogtreecommitdiffstats
path: root/src/group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/group.rs')
-rw-r--r--src/group.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/group.rs b/src/group.rs
index 98d83d2..9135425 100644
--- a/src/group.rs
+++ b/src/group.rs
@@ -15,7 +15,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use crate::{
- client::{self, Client},
+ client::Client,
error::Error,
};
use serde::Serialize;
@@ -30,7 +30,7 @@ impl<'a> GroupFetcher<'a> {
}
pub fn fetch(&self) -> Result<String, Error> {
- self.client.fetch_stream(client::ZOTAPI_GROUP_PATH, &())
+ self.client.fetch_stream("group", &())
}
}
@@ -64,9 +64,6 @@ impl<'a> GroupMembersFetcher<'a> {
}
pub fn fetch(&self) -> Result<String, Error> {
- self.client.fetch_stream(
- client::ZOTAPI_GROUP_MEMBERS_PATH,
- &self.id.as_ref().unwrap(),
- )
+ self.client.fetch_stream("group_members", &self.id.as_ref().unwrap())
}
}