# itchio-api
A simple crate to interact with [the "server-side" API available on itch.io](https://itch.io/docs/api/serverside). Not very stable, as it's quite a work-in-progress.
## Supported endpoints
The [request()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.request) method also allows you to send a get request anywhere on itch.io. You can use it if the endpoint you want to use isn't supported!
### Officially documented
Those endpoints are officially documented on the itch.io website: https://itch.io/docs/api/serverside
- `GET https://itch.io/api/1/KEY/credentials/info` -> [get_credentials_info()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_credentials_info)
- `GET https://itch.io/api/1/KEY/me` -> [get_me()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_me)
- `GET https://itch.io/api/1/KEY/my-games` -> [get_my_games()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_my_games)
- `GET https://itch.io/api/1/KEY/game/GAME_ID/download_keys` -> [get_download_key()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_download_key)
- `GET https://itch.io/api/1/KEY/game/GAME_ID/purchases` -> [get_purchases()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_purchases)
### Not officially documented
Those endpoints are not officially documented, their existence and how they work is figured out through various means.
- `GET https://itch.io/api/1/KEY/search/games` -> [search_games()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.search_games)
- `GET https://itch.io/api/1/KEY/users/USER_ID` -> [get_user()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_user)
- `GET https://itch.io/api/1/KEY/wharf/status` -> [get_wharf_status()](https://docs.rs/itchio-api/latest/itchio_api/struct.Itchio.html#method.get_wharf_status)
Other undocumented endpoints exist but aren't supported yet.
## License
Licensed under the European Union Public Licence v1.2, please read the LICENSE file for more information.