Skip to main content

eero_api/api/
account.rs

1use crate::client::EeroClient;
2use crate::error::Result;
3use crate::types::account::Account;
4
5impl EeroClient {
6    /// Get the authenticated user's account information.
7    #[tracing::instrument(skip(self))]
8    pub async fn get_account(&self) -> Result<Account> {
9        let url = self.url("/account");
10        self.get(&url).await
11    }
12}