1 unstable release
0.0.1 | Jun 5, 2023 |
---|
#64 in #interfacing
78KB
1K
SLoC
Rust API client for eclipsis-rs
Public APIs for use within whatever you want. These are ratelimited, so try to keep requests to a minimum.
Future use of the API will require an API key.
API Keys
API keys need to be passed alongside every request. With an API key, you are also expected to adhere to the following guidelines:
- Do not share your API key.
- Data can be retained for a maximum of 30 days (this is to adhere with GDPR guidelines).
API keys can also be saved to the browser for convenience using the client login/logout APIs.
You can obtain an API key by asking staff in the Eclipsis discord.
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 3.0.0
- Package version: 3.0.0
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named eclipsis-rs
and add the following to Cargo.toml
under [dependencies]
:
eclipsis-rs = { path = "./eclipsis-rs" }
Documentation for API Endpoints
All URIs are relative to https://api.xethlyx.com
Class | Method | HTTP request | Description |
---|---|---|---|
ClientApi | client_delete | DELETE /client/delete | Delete |
ClientApi | client_info | GET /client/info | Info |
ClientApi | client_login | POST /client/login | Login |
ClientApi | client_logout | POST /client/logout | Logout |
MatchApi | get_match | GET /eclipsis/match/{matchId} | Get match data |
UserApi | get_user_delta | GET /eclipsis/user/delta/{userId} | Get rating delta |
UserApi | get_user_matches | GET /eclipsis/user/matches/{userId} | Get matches |
UserApi | get_user_overview | GET /eclipsis/user/overview/{userId} | Get overview |
UserApi | get_user_playtime | GET /eclipsis/user/playtime/{userId} | Get playtime |
UserApi | get_user_rating | GET /eclipsis/user/rating/{userId} | Get rating |
UserApi | get_user_status | POST /eclipsis/user/status | Get basic status |
UserApi | get_user_teammates | GET /eclipsis/user/teammates/{userId} | Get teammates |
Documentation For Models
- ApiError
- ApiKeyData
- Match
- MatchPlayer
- MatchTeam
- Success
- Success1
- Success10
- Success10ValueInnerInner
- Success11
- Success2
- Success3
- Success4
- Success5
- Success6
- Success7
- Success7ValueInnerInnerInner
- Success8
- Success9
To get access to the crate's generated documentation, use:
cargo doc --open
Author
Dependencies
~4–16MB
~243K SLoC