# SdPublicProdApi.PlayerEndpointsApi

All URIs are relative to *https://core-api.stardust.gg/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**playerCountGet**](PlayerEndpointsApi.md#playerCountGet) | **GET** /player/count | Get Player Count
[**playerCreatePost**](PlayerEndpointsApi.md#playerCreatePost) | **POST** /player/create | Create Player
[**playerDepositGetAllGet**](PlayerEndpointsApi.md#playerDepositGetAllGet) | **GET** /player/deposit-get-all | Get Player Deposits
[**playerGetAllGet**](PlayerEndpointsApi.md#playerGetAllGet) | **GET** /player/get-all | Get All Players
[**playerGetGet**](PlayerEndpointsApi.md#playerGetGet) | **GET** /player/get | Get Player
[**playerGetIdGet**](PlayerEndpointsApi.md#playerGetIdGet) | **GET** /player/get-id | Get Player ID
[**playerGetIdsGet**](PlayerEndpointsApi.md#playerGetIdsGet) | **GET** /player/get-ids | Get All Player IDs
[**playerGetInventoryGet**](PlayerEndpointsApi.md#playerGetInventoryGet) | **GET** /player/get-inventory | Get Player Inventory
[**playerMutatePost**](PlayerEndpointsApi.md#playerMutatePost) | **POST** /player/mutate | Mutate Player
[**playerMutatePut**](PlayerEndpointsApi.md#playerMutatePut) | **PUT** /player/mutate | Mutate Player
[**playerPropsRemoveDelete**](PlayerEndpointsApi.md#playerPropsRemoveDelete) | **DELETE** /player/props-remove | Remove Player Property
[**playerRemoveDelete**](PlayerEndpointsApi.md#playerRemoveDelete) | **DELETE** /player/remove | Remove Player
[**playerSetActivePost**](PlayerEndpointsApi.md#playerSetActivePost) | **POST** /player/set-active | Set Player Active
[**playerWalletGetGet**](PlayerEndpointsApi.md#playerWalletGetGet) | **GET** /player/wallet-get | Get Player Wallet
[**playerWithdraw1Post**](PlayerEndpointsApi.md#playerWithdraw1Post) | **POST** /player/withdraw1 | Withdraw From Player
[**playerWithdrawGetAllGet**](PlayerEndpointsApi.md#playerWithdrawGetAllGet) | **GET** /player/withdraw-get-all | Get Player Withdraws
[**playerWithdrawPost**](PlayerEndpointsApi.md#playerWithdrawPost) | **POST** /player/withdraw | Withdraw From Player

<a name="playerCountGet"></a>
# **playerCountGet**
> SDPlayerCountResponse playerCountGet()

Get Player Count

Get Player count within a game

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
apiInstance.playerCountGet((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**SDPlayerCountResponse**](SDPlayerCountResponse.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerCreatePost"></a>
# **playerCreatePost**
> SDPlayerCreateResponse playerCreatePost(body)

Create Player

Create a Player for a game. Returns their player id which can be used to reference them later in Stardust&#x27;s system

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let body = new SdPublicProdApi.SDPlayerCreateRequest(); // SDPlayerCreateRequest | 

apiInstance.playerCreatePost(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**SDPlayerCreateRequest**](SDPlayerCreateRequest.md)|  | 

### Return type

[**SDPlayerCreateResponse**](SDPlayerCreateResponse.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerDepositGetAllGet"></a>
# **playerDepositGetAllGet**
> SDPlayerDepositGetAllResponses playerDepositGetAllGet(opts)

Get Player Deposits

Get a history of player deposits to their Stardust Managed Wallet

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let opts = { 
  'user': "user_example", // String | user's blockchain address
  'playerId': "playerId_example", // String | Player Id (uuid)
  'limit': "limit_example", // String | maximum items returned in list
  'transactionId': "transactionId_example", // String | blockchain transaction id number
  'receiver': "receiver_example", // String | receiver's blockchain address
  'endDate': "endDate_example", // String | End Date
  'startDate': "startDate_example" // String | Start Date
};
apiInstance.playerDepositGetAllGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **user** | **String**| user&#x27;s blockchain address | [optional] 
 **playerId** | **String**| Player Id (uuid) | [optional] 
 **limit** | **String**| maximum items returned in list | [optional] 
 **transactionId** | **String**| blockchain transaction id number | [optional] 
 **receiver** | **String**| receiver&#x27;s blockchain address | [optional] 
 **endDate** | **String**| End Date | [optional] 
 **startDate** | **String**| Start Date | [optional] 

### Return type

[**SDPlayerDepositGetAllResponses**](SDPlayerDepositGetAllResponses.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerGetAllGet"></a>
# **playerGetAllGet**
> SDPlayerGetAllResponses playerGetAllGet(opts)

Get All Players

Get the List of All Players in Game

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let opts = { 
  'start': "start_example", // String | position in list
  'filter': "filter_example", // String | Find a substring within the Player unique ID field
  'limit': "limit_example" // String | maximum items returned in list
};
apiInstance.playerGetAllGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **start** | **String**| position in list | [optional] 
 **filter** | **String**| Find a substring within the Player unique ID field | [optional] 
 **limit** | **String**| maximum items returned in list | [optional] 

### Return type

[**SDPlayerGetAllResponses**](SDPlayerGetAllResponses.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerGetGet"></a>
# **playerGetGet**
> SDPlayerGetResponse playerGetGet(playerId)

Get Player

Get Details of a Player Within a Game

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let playerId = "playerId_example"; // String | Player id

apiInstance.playerGetGet(playerId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **playerId** | **String**| Player id | 

### Return type

[**SDPlayerGetResponse**](SDPlayerGetResponse.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerGetIdGet"></a>
# **playerGetIdGet**
> SDPlayerGetIdResponse playerGetIdGet(uniqueId)

Get Player ID

Get a Player&#x27;s ID via their Unique ID

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let uniqueId = "uniqueId_example"; // String | Player's Unique ID

apiInstance.playerGetIdGet(uniqueId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **uniqueId** | **String**| Player&#x27;s Unique ID | 

### Return type

[**SDPlayerGetIdResponse**](SDPlayerGetIdResponse.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerGetIdsGet"></a>
# **playerGetIdsGet**
> SDPlayerGetIdsResponses playerGetIdsGet()

Get All Player IDs

Get All Player IDs for a Given Game

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
apiInstance.playerGetIdsGet((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**SDPlayerGetIdsResponses**](SDPlayerGetIdsResponses.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerGetInventoryGet"></a>
# **playerGetInventoryGet**
> SDPlayerGetInventoryResponses playerGetInventoryGet(playerId, opts)

Get Player Inventory

Get a players inventory and all the items it holds

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let playerId = "playerId_example"; // String | Player id
let opts = { 
  'start': "start_example", // String | position in list
  'tokenIds': "tokenIds_example", // String | Comma-Separated String of token ids (ex. '3589, 3580')
  'limit': "limit_example" // String | maximum items returned in list
};
apiInstance.playerGetInventoryGet(playerId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **playerId** | **String**| Player id | 
 **start** | **String**| position in list | [optional] 
 **tokenIds** | **String**| Comma-Separated String of token ids (ex. &#x27;3589, 3580&#x27;) | [optional] 
 **limit** | **String**| maximum items returned in list | [optional] 

### Return type

[**SDPlayerGetInventoryResponses**](SDPlayerGetInventoryResponses.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerMutatePost"></a>
# **playerMutatePost**
> Empty playerMutatePost(body)

Mutate Player

Change a players data

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let body = new SdPublicProdApi.SDPlayerMutateRequest(); // SDPlayerMutateRequest | 

apiInstance.playerMutatePost(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**SDPlayerMutateRequest**](SDPlayerMutateRequest.md)|  | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerMutatePut"></a>
# **playerMutatePut**
> Empty playerMutatePut(body)

Mutate Player

Change a players data

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let body = new SdPublicProdApi.SDPlayerMutateRequest(); // SDPlayerMutateRequest | 

apiInstance.playerMutatePut(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**SDPlayerMutateRequest**](SDPlayerMutateRequest.md)|  | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerPropsRemoveDelete"></a>
# **playerPropsRemoveDelete**
> Empty playerPropsRemoveDelete(props, playerId)

Remove Player Property

Removes a Players Property in a Given Game.

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let props = "props_example"; // String | Stringify Array of player property names ex: '[\"exp\", \"health\"]' }
let playerId = "playerId_example"; // String | The Player's id, can be found with Player/getId(s). Also returned from player/create (ex. CzySggxVQz51jciGRFDY7d5BER2fav6TNEnPGjusPJPd)

apiInstance.playerPropsRemoveDelete(props, playerId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **props** | **String**| Stringify Array of player property names ex: &#x27;[\&quot;exp\&quot;, \&quot;health\&quot;]&#x27; } | 
 **playerId** | **String**| The Player&#x27;s id, can be found with Player/getId(s). Also returned from player/create (ex. CzySggxVQz51jciGRFDY7d5BER2fav6TNEnPGjusPJPd) | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerRemoveDelete"></a>
# **playerRemoveDelete**
> Empty playerRemoveDelete(playerId)

Remove Player

Removes (hides) a player from your game. This is not permanent.

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let playerId = "playerId_example"; // String | Player Id returned from player/create a UUID, i.e. 802760b0-2bb5-4fba-9237-895ed02cf8d8

apiInstance.playerRemoveDelete(playerId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **playerId** | **String**| Player Id returned from player/create a UUID, i.e. 802760b0-2bb5-4fba-9237-895ed02cf8d8 | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerSetActivePost"></a>
# **playerSetActivePost**
> Empty playerSetActivePost(body)

Set Player Active

Record that the player is active (today)

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let body = new SdPublicProdApi.SDPlayerSetActiveRequest(); // SDPlayerSetActiveRequest | 

apiInstance.playerSetActivePost(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**SDPlayerSetActiveRequest**](SDPlayerSetActiveRequest.md)|  | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerWalletGetGet"></a>
# **playerWalletGetGet**
> SDPlayerWalletGetResponse playerWalletGetGet(playerId)

Get Player Wallet

Get player&#x27;s wallet within a game

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let playerId = "playerId_example"; // String | Player id

apiInstance.playerWalletGetGet(playerId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **playerId** | **String**| Player id | 

### Return type

[**SDPlayerWalletGetResponse**](SDPlayerWalletGetResponse.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerWithdraw1Post"></a>
# **playerWithdraw1Post**
> Empty playerWithdraw1Post(body)

Withdraw From Player

Withdraw a Player&#x27;s Tokens from their Stardust Wallet

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let body = new SdPublicProdApi.SDPlayerWithdraw1Request(); // SDPlayerWithdraw1Request | 

apiInstance.playerWithdraw1Post(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**SDPlayerWithdraw1Request**](SDPlayerWithdraw1Request.md)|  | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerWithdrawGetAllGet"></a>
# **playerWithdrawGetAllGet**
> SDPlayerWithdrawGetAllResponses playerWithdrawGetAllGet(opts)

Get Player Withdraws

Get a History of All Withdraws Made by a Player

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let opts = { 
  'startTimeStamp': "startTimeStamp_example", // String | Start Date
  'endTimeStamp': "endTimeStamp_example", // String | Start Date
  'playerId': "playerId_example", // String | Player id
  'limit': "limit_example", // String | maximum items returned in list
  'cursor': "cursor_example" // String | query cursor
};
apiInstance.playerWithdrawGetAllGet(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **startTimeStamp** | **String**| Start Date | [optional] 
 **endTimeStamp** | **String**| Start Date | [optional] 
 **playerId** | **String**| Player id | [optional] 
 **limit** | **String**| maximum items returned in list | [optional] 
 **cursor** | **String**| query cursor | [optional] 

### Return type

[**SDPlayerWithdrawGetAllResponses**](SDPlayerWithdrawGetAllResponses.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

<a name="playerWithdrawPost"></a>
# **playerWithdrawPost**
> Empty playerWithdrawPost(body)

Withdraw From Player

Withdraw a Player&#x27;s Tokens from their Stardust Wallet

### Example
```javascript
import {SdPublicProdApi} from 'sd_public_prod_api';
let defaultClient = SdPublicProdApi.ApiClient.instance;

// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';

let apiInstance = new SdPublicProdApi.PlayerEndpointsApi();
let body = new SdPublicProdApi.SDPlayerWithdrawRequest(); // SDPlayerWithdrawRequest | 

apiInstance.playerWithdrawPost(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**SDPlayerWithdrawRequest**](SDPlayerWithdrawRequest.md)|  | 

### Return type

[**Empty**](Empty.md)

### Authorization

[api_key](../README.md#api_key)

### HTTP request headers

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

