Struct humble_cli::prelude::HumbleApi
source · pub struct HumbleApi { /* private fields */ }Implementations§
source§impl HumbleApi
impl HumbleApi
pub fn new(auth_key: &str) -> Self
pub fn list_bundle_keys(&self) -> Result<Vec<String>, ApiError>
pub fn list_bundles(&self) -> Result<Vec<Bundle>, ApiError>
pub fn read_bundle(&self, product_key: &str) -> Result<Bundle, ApiError>
sourcepub fn read_bundle_choices(&self, when: &str) -> Result<HumbleChoice, ApiError>
pub fn read_bundle_choices(&self, when: &str) -> Result<HumbleChoice, ApiError>
Read Bundle Choices for the give month and year.
when should be in the month-year format. For example: "january-2023".
Use "home" to get the current active data.