# FacePokerApi.HeroApi

All URIs are relative to *https://virtserver.swaggerhub.com/krzynool/FacePokerSwag/1.0.0*

Method | HTTP request | Description
------------- | ------------- | -------------
[**editHero**](HeroApi.md#editHero) | **PUT** /table/{tableId}/hero | Representation of me
[**quitGame**](HeroApi.md#quitGame) | **DELETE** /table/{tableId}/hero | Quit the game


<a name="editHero"></a>
# **editHero**
> editHero(authorization, tableId, body)

Representation of me

### Example
```javascript
var FacePokerApi = require('face_poker_api');

var apiInstance = new FacePokerApi.HeroApi();

var authorization = "authorization_example"; // String | Your bearer token

var tableId = "tableId_example"; // String | ID of table

var body = new FacePokerApi.Player(); // Player | Me

apiInstance.editHero(authorization, tableId, body).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**| Your bearer token | 
 **tableId** | **String**| ID of table | 
 **body** | [**Player**](Player.md)| Me | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="quitGame"></a>
# **quitGame**
> quitGame(tableId, authorization)

Quit the game

### Example
```javascript
var FacePokerApi = require('face_poker_api');

var apiInstance = new FacePokerApi.HeroApi();

var tableId = "tableId_example"; // String | ID of table

var authorization = "authorization_example"; // String | Your bearer token

apiInstance.quitGame(tableId, authorization).then(function() {
  console.log('API called successfully.');
}, function(error) {
  console.error(error);
});

```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tableId** | **String**| ID of table | 
 **authorization** | **String**| Your bearer token | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

