get_apppassword_json

Function get_apppassword_json 

Source
pub async fn get_apppassword_json(
    http_client: &Client,
    app_auth: &AppPasswordAuth,
    url: &str,
) -> Result<Value>
Expand description

Performs an app password-authenticated HTTP GET request and parses the response as JSON.

§Arguments

  • http_client - The HTTP client to use for the request
  • app_auth - App password authentication credentials
  • url - The URL to request

§Returns

The parsed JSON response as a serde_json::Value

§Errors

Returns ClientError::HttpRequestFailed if the HTTP request fails, or ClientError::JsonParseFailed if JSON parsing fails.