pub struct Itchio { /* private fields */ }Expand description
What you need to make requests, it stores and uses your API key.
Implementations§
Source§impl Itchio
impl Itchio
Sourcepub async fn get_credentials_info(&self) -> Result<Info, ItchioError>
pub async fn get_credentials_info(&self) -> Result<Info, ItchioError>
Get information on how you’re accessing the API: https://itch.io/docs/api/serverside#reference/httpsitchioapi1keycredentialsinfo
Source§impl Itchio
impl Itchio
Sourcepub async fn get_download_key(
&self,
game_id: u32,
lookup: &str,
property_name: &str,
) -> Result<DownloadKey, ItchioError>
pub async fn get_download_key( &self, game_id: u32, lookup: &str, property_name: &str, ) -> Result<DownloadKey, ItchioError>
Source§impl Itchio
impl Itchio
Sourcepub async fn get_my_games(&self) -> Result<Vec<Game>, ItchioError>
pub async fn get_my_games(&self) -> Result<Vec<Game>, ItchioError>
Get the games you’ve uploaded or have edit access to: https://itch.io/docs/api/serverside#reference/profilegames-httpsitchioapi1keymy-games
Source§impl Itchio
impl Itchio
Sourcepub async fn get_purchases(
&self,
game_id: u32,
lookup: &str,
property_name: &str,
) -> Result<Vec<Purchase>, ItchioError>
pub async fn get_purchases( &self, game_id: u32, lookup: &str, property_name: &str, ) -> Result<Vec<Purchase>, ItchioError>
Gets the successful purchases from someone on a given game: https://itch.io/docs/api/serverside#reference/gameviewpurchases-httpsitchioapi1keygamegame-idpurchases
Source§impl Itchio
impl Itchio
Sourcepub async fn search_games(
&self,
query: &str,
page: u16,
) -> Result<Vec<Game>, ItchioError>
pub async fn search_games( &self, query: &str, page: u16, ) -> Result<Vec<Game>, ItchioError>
Perform a text search for published (and non-deindexed) games.
Source§impl Itchio
impl Itchio
Sourcepub async fn get_wharf_status(&self) -> Result<WharfStatus, ItchioError>
pub async fn get_wharf_status(&self) -> Result<WharfStatus, ItchioError>
Request the status of the wharf infrastructure.
Source§impl Itchio
impl Itchio
Sourcepub fn new(key: String) -> Self
pub fn new(key: String) -> Self
Create a new Itchio client using your API key, which you can find there: https://itch.io/user/settings/api-keys
Sourcepub async fn request<T: DeserializeOwned>(
&self,
endpoint: String,
) -> Result<T, ItchioError>
pub async fn request<T: DeserializeOwned>( &self, endpoint: String, ) -> Result<T, ItchioError>
Make your own requests by specifying an endpoint and struct to deserialize!