provident 0.2.1

Unofficial client for the Provident (MeterConnex) utility metering portal: meters, usage history, and reports
Documentation
// SPDX-License-Identifier: GPL-3.0-only

//! The signed-in account. Requires [`crate::auth::Auth::login`] first; without a session these
//! calls fail with HTTP 401. Wire endpoints: `crate::models::api::internal::meter_tree` and
//! `crate::models::secure::account_info`.
//!
//! Not `Dashboard/Default.aspx/GetUtilities`: that page method intermittently answers with
//! another account's utilities (portal-side shared state), while the meter tree is per-user.

mod api_key;
mod details;
mod meters;
mod utilities;

/// Accessed as [`crate::Client::account`].
#[derive(Debug, Clone)]
pub struct Account {
    http: crate::http::Client,
}

impl Account {
    pub(crate) fn new(http: crate::http::Client) -> Self {
        Self { http }
    }
}