Skip to main content

unifly_api/integration/client/
system.rs

1use super::{Error, IntegrationClient, types};
2
3impl IntegrationClient {
4    // ── System Info ──────────────────────────────────────────────────
5
6    pub async fn get_info(&self) -> Result<types::ApplicationInfoResponse, Error> {
7        self.get("v1/info").await
8    }
9
10    // ── Sites ────────────────────────────────────────────────────────
11
12    pub async fn list_sites(
13        &self,
14        offset: i64,
15        limit: i32,
16    ) -> Result<types::Page<types::SiteResponse>, Error> {
17        self.get_with_params(
18            "v1/sites",
19            &[("offset", offset.to_string()), ("limit", limit.to_string())],
20        )
21        .await
22    }
23}