get_profile

Function get_profile 

Source
pub async fn get_profile(client: &Client, api_key: &str) -> Result<User, String>
Expand description

Get the API key’s profile

This can be used to verify that a given Itch.io API key is valid

§Arguments

  • client - An asynchronous reqwest Client

  • api_key - A valid Itch.io API key to make the request

§Returns

A User struct with the info provided by the API

An error if something goes wrong