# Swagger\Client\DefaultApi All URIs are relative to */* Method | HTTP request | Description ------------- | ------------- | ------------- [**callTurn**](DefaultApi.md#callturn) | **POST** /player/call/{player} | [**createGame**](DefaultApi.md#creategame) | **GET** /game/create | [**gameIsStarted**](DefaultApi.md#gameisstarted) | **GET** /game/started/{player} | [**getTurn**](DefaultApi.md#getturn) | **GET** /player/turn/{player} | [**joinGame**](DefaultApi.md#joingame) | **GET** /game/join/{code} | [**postTurn**](DefaultApi.md#postturn) | **POST** /player/guess/{player} | [**setGameRules**](DefaultApi.md#setgamerules) | **POST** /game/rules/{player} | [**startGame**](DefaultApi.md#startgame) | **GET** /game/start/{player} | # **callTurn** > \Swagger\Client\Model\MyTurn callTurn($player) ### Example ```php callTurn($player); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->callTurn: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **player** | **string**| | ### Return type [**\Swagger\Client\Model\MyTurn**](../Model/MyTurn.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) # **createGame** > \Swagger\Client\Model\PlayerCode createGame($name) ### Example ```php createGame($name); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->createGame: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **string**| | ### Return type [**\Swagger\Client\Model\PlayerCode**](../Model/PlayerCode.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) # **gameIsStarted** > \Swagger\Client\Model\GameIsStarted gameIsStarted($player) ### Example ```php gameIsStarted($player); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->gameIsStarted: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **player** | **string**| | ### Return type [**\Swagger\Client\Model\GameIsStarted**](../Model/GameIsStarted.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) # **getTurn** > \Swagger\Client\Model\MyTurn getTurn($player) ### Example ```php getTurn($player); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getTurn: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **player** | **string**| | ### Return type [**\Swagger\Client\Model\MyTurn**](../Model/MyTurn.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) # **joinGame** > \Swagger\Client\Model\PlayerCode joinGame($name, $code) ### Example ```php joinGame($name, $code); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->joinGame: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **string**| | **code** | **string**| | ### Return type [**\Swagger\Client\Model\PlayerCode**](../Model/PlayerCode.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) # **postTurn** > \Swagger\Client\Model\MyTurn postTurn($player, $body) ### Example ```php postTurn($player, $body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->postTurn: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **player** | **string**| | **body** | [**\Swagger\Client\Model\PlayerGuess**](../Model/PlayerGuess.md)| | [optional] ### Return type [**\Swagger\Client\Model\MyTurn**](../Model/MyTurn.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **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) # **setGameRules** > \Swagger\Client\Model\MessageResponse setGameRules($player, $body) ### Example ```php setGameRules($player, $body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->setGameRules: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **player** | **string**| | **body** | [**\Swagger\Client\Model\GameRules**](../Model/GameRules.md)| | [optional] ### Return type [**\Swagger\Client\Model\MessageResponse**](../Model/MessageResponse.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **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) # **startGame** > \Swagger\Client\Model\MessageResponse startGame($player) ### Example ```php startGame($player); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->startGame: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **player** | **string**| | ### Return type [**\Swagger\Client\Model\MessageResponse**](../Model/MessageResponse.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)