chesscom-openapi 0.1.1

OpenAPI-generated API client bindings for Chess.com
Documentation
# \DefaultApi

All URIs are relative to *https://api.chess.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_chess_games_archives**]DefaultApi.md#get_chess_games_archives | **get** /pub/player/{username}/games/archives | List of Monthly Archives
[**get_chess_games_for_month**]DefaultApi.md#get_chess_games_for_month | **get** /pub/player/{username}/games/{year}/{month} | Complete Monthly Archives
[**get_chess_games_for_month_pgn**]DefaultApi.md#get_chess_games_for_month_pgn | **get** /pub/player/{username}/games/{year}/{month}/pgn | Multi-Game PGN Download
[**get_daily_chess_games**]DefaultApi.md#get_daily_chess_games | **get** /pub/player/{username}/games | Current Daily Chess
[**get_daily_chess_games_to_move**]DefaultApi.md#get_daily_chess_games_to_move | **get** /pub/player/{username}/games/to-move | To-Move Daily Chess
[**get_player_online_status**]DefaultApi.md#get_player_online_status | **get** /pub/player/{username}/is-online | Get player online status.
[**get_player_profile**]DefaultApi.md#get_player_profile | **get** /pub/player/{username} | Get additional details about a player in a game.
[**get_player_stats**]DefaultApi.md#get_player_stats | **get** /pub/player/{username}/stats | Get player stats.
[**get_titled_players**]DefaultApi.md#get_titled_players | **get** /pub/titled/{title} | List of titled-player usernames.



## get_chess_games_archives

> crate::models::InlineResponse2003 get_chess_games_archives(username)
List of Monthly Archives

Get list of monthly archives available for this player

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |

### Return type

[**crate::models::InlineResponse2003**](inline_response_200_3.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_chess_games_for_month

> crate::models::InlineResponse2004 get_chess_games_for_month(username, year, month)
Complete Monthly Archives

Get list of Live and Daily Chess games that a player has finished

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |
**year** | **String** | Four digit year of the game-end | [required] |
**month** | **String** | Two-digit month of the game-end | [required] |

### Return type

[**crate::models::InlineResponse2004**](inline_response_200_4.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_chess_games_for_month_pgn

> String get_chess_games_for_month_pgn(username, year, month)
Multi-Game PGN Download

Get standard multi-game format PGN containing all games for a month

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |
**year** | **String** | Four digit year of the game-end | [required] |
**month** | **String** | Two-digit month of the game-end | [required] |

### Return type

**String**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/x-chess-pgn, application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_daily_chess_games

> crate::models::InlineResponse2001 get_daily_chess_games(username)
Current Daily Chess

Get list of Daily Chess games that a player is currently playing

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |

### Return type

[**crate::models::InlineResponse2001**](inline_response_200_1.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_daily_chess_games_to_move

> crate::models::InlineResponse2002 get_daily_chess_games_to_move(username)
To-Move Daily Chess

Get list of Daily Chess games where it is the player's turn to move

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |

### Return type

[**crate::models::InlineResponse2002**](inline_response_200_2.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_player_online_status

> crate::models::InlineResponse200 get_player_online_status(username)
Get player online status.

Tells if a user has been online in the last five minutes.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |

### Return type

[**crate::models::InlineResponse200**](inline_response_200.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_player_profile

> crate::models::Profile get_player_profile(username)
Get additional details about a player in a game.

Get additional details about a player in a game.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |

### Return type

[**crate::models::Profile**](Profile.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_player_stats

> crate::models::PlayerStats get_player_stats(username)
Get player stats.

Get ratings, win/loss, and other stats about a player's game play, tactics, lessons and Puzzle Rush score.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**username** | **String** |  | [required] |

### Return type

[**crate::models::PlayerStats**](PlayerStats.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_titled_players

> Vec<String> get_titled_players(title)
List of titled-player usernames.

List of titled-player usernames.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**title** | [**crate::models::Title**].md |  | [required] |

### Return type

**Vec<String>**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)