provident 0.3.0

Unofficial client for the Provident (MeterConnex) utility metering portal: meters, usage history, and reports
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-3.0-only

//! `POST /do-rates-login`: start a rates-page session on Provident's corporate site.
//!
//! Form-encoded `LocationID` + `CustomerNumber` (yes: the *metering* portal's username and
//! password, respectively — the two sites share credentials with the fields swapped). Any
//! non-empty `CustomerNumber` is accepted; only `LocationID` is validated. The response sets
//! the `PHPSESSID` cookie that authorizes `rates-and-fees`.

mod res;

pub use res::RatesLoginResponse;

/// Root-relative path, joined to the rates site base URL.
pub const PATH: &str = "do-rates-login";

/// HTTP verb the endpoint accepts.
pub const METHOD: reqwest::Method = reqwest::Method::POST;