provident 0.3.1

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 /login/LoginService.aspx/ProcessLogin`: sign in with username and password.
//!
//! Always answers 200; failure is reported in [`ProcessLoginResponse`]. On success the server
//! sets the `.ASPXAUTH` cookie.

mod req;
mod res;

pub use req::{ProcessLoginRequest, ProcessLoginRequestBuilder};
pub use res::{ProcessLoginResponse, ProcessLoginResult};

/// Root-relative path, joined to the client base URL.
pub const PATH: &str = "login/LoginService.aspx/ProcessLogin";

/// HTTP verb the `[WebMethod]` accepts.
pub const METHOD: reqwest::Method = reqwest::Method::POST;