# CampaignApIs.GameApi

All URIs are relative to *https://campaigncore-gameresourcev5.chinacloudsites.cn*

Method | HTTP request | Description
------------- | ------------- | -------------
[**gameAddImage**](GameApi.md#gameAddImage) | **POST** /Game/AddImage | add image to instance
[**gameCodes**](GameApi.md#gameCodes) | **GET** /Game/Codes | 游戏 - 错误码表
[**gameDelete**](GameApi.md#gameDelete) | **DELETE** /Game/Delete | 游戏 - 删除
[**gameDeleteImage**](GameApi.md#gameDeleteImage) | **DELETE** /Game/DeleteImage | Delete game image
[**gameDeleteInstance**](GameApi.md#gameDeleteInstance) | **DELETE** /Game/DeleteInstance | Delete game instance
[**gameDetail**](GameApi.md#gameDetail) | **GET** /Game/Detail | 游戏 - 详情
[**gameEditInstance**](GameApi.md#gameEditInstance) | **PUT** /Game/EditInstance | Edit game instance
[**gameGet**](GameApi.md#gameGet) | **GET** /Game/Get | 游戏 - 列表
[**gameInstance**](GameApi.md#gameInstance) | **GET** /Game/Instance | Get game instance
[**gameInstances**](GameApi.md#gameInstances) | **GET** /Game/Instances | Get game instances
[**gamePost**](GameApi.md#gamePost) | **POST** /Game/Post | 游戏 - 创建
[**gamePostInstance**](GameApi.md#gamePostInstance) | **POST** /Game/PostInstance | Create new game instance
[**gamePut**](GameApi.md#gamePut) | **PUT** /Game/Put | 游戏 - 更新


<a name="gameAddImage"></a>
# **gameAddImage**
> ApiResultBoolean gameAddImage(opts)

add image to instance

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'imageId': 789, // Number | 
  'instanceId': 789, // Number | 
  'imageType': 56, // Number | 
  'imageName': "imageName_example", // String | 
  'imageDetails': "imageDetails_example", // String | 
  'imageUrl': "imageUrl_example", // String | 
  'isDeleted': true, // Boolean | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameAddImage(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **imageId** | **Number**|  | [optional] 
 **instanceId** | **Number**|  | [optional] 
 **imageType** | **Number**|  | [optional] 
 **imageName** | **String**|  | [optional] 
 **imageDetails** | **String**|  | [optional] 
 **imageUrl** | **String**|  | [optional] 
 **isDeleted** | **Boolean**|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameCodes"></a>
# **gameCodes**
> [ErrorCodeModel] gameCodes(opts)

游戏 - 错误码表

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameCodes(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **apiVersion** | **String**|  | [optional] 

### Return type

[**[ErrorCodeModel]**](ErrorCodeModel.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameDelete"></a>
# **gameDelete**
> ApiResultBoolean gameDelete(opts)

游戏 - 删除

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'id': "id_example", // String | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameDelete(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | [**String**](.md)|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameDeleteImage"></a>
# **gameDeleteImage**
> ApiResultBoolean gameDeleteImage(opts)

Delete game image

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'imageId': 789, // Number | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameDeleteImage(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **imageId** | **Number**|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameDeleteInstance"></a>
# **gameDeleteInstance**
> ApiResultBoolean gameDeleteInstance(opts)

Delete game instance

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'instanceId': 789, // Number | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameDeleteInstance(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **instanceId** | **Number**|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameDetail"></a>
# **gameDetail**
> ApiResultGameList gameDetail(opts)

游戏 - 详情

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'id': "id_example", // String | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameDetail(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | [**String**](.md)|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultGameList**](ApiResultGameList.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameEditInstance"></a>
# **gameEditInstance**
> ApiResultBoolean gameEditInstance(opts)

Edit game instance

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'value': new CampaignApIs.GameInstance(), // GameInstance | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameEditInstance(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **value** | [**GameInstance**](GameInstance.md)|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: application/json

<a name="gameGet"></a>
# **gameGet**
> PagingResultGameList gameGet(opts)

游戏 - 列表

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'take': 56, // Number | 
  'skip': 56, // Number | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameGet(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **take** | **Number**|  | [optional] 
 **skip** | **Number**|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**PagingResultGameList**](PagingResultGameList.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameInstance"></a>
# **gameInstance**
> ApiResultGameInstance gameInstance(opts)

Get game instance

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'instanceId': 789, // Number | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameInstance(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **instanceId** | **Number**|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultGameInstance**](ApiResultGameInstance.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gameInstances"></a>
# **gameInstances**
> PagingResultGameInstance gameInstances(opts)

Get game instances

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'gameId': "gameId_example", // String | 
  'take': 56, // Number | 
  'skip': 56, // Number | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gameInstances(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **gameId** | [**String**](.md)|  | [optional] 
 **take** | **Number**|  | [optional] 
 **skip** | **Number**|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**PagingResultGameInstance**](PagingResultGameInstance.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

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

<a name="gamePost"></a>
# **gamePost**
> ApiResultBoolean gamePost(opts)

游戏 - 创建

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'value': new CampaignApIs.GameList(), // GameList | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gamePost(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **value** | [**GameList**](GameList.md)|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: application/json

<a name="gamePostInstance"></a>
# **gamePostInstance**
> ApiResultBoolean gamePostInstance(opts)

Create new game instance

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'value': new CampaignApIs.GameInstance(), // GameInstance | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gamePostInstance(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **value** | [**GameInstance**](GameInstance.md)|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: application/json

<a name="gamePut"></a>
# **gamePut**
> ApiResultBoolean gamePut(opts)

游戏 - 更新

### Example
```javascript
var CampaignApIs = require('campaign_ap_is');
var defaultClient = CampaignApIs.ApiClient.instance;

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

// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = 'YOUR ACCESS TOKEN';

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

var apiInstance = new CampaignApIs.GameApi();

var opts = { 
  'value': new CampaignApIs.GameList(), // GameList | 
  'apiVersion': "apiVersion_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.gamePut(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **value** | [**GameList**](GameList.md)|  | [optional] 
 **apiVersion** | **String**|  | [optional] 

### Return type

[**ApiResultBoolean**](ApiResultBoolean.md)

### Authorization

[AccessToken](../README.md#AccessToken), [OAuth2](../README.md#OAuth2), [SubscriptionKey](../README.md#SubscriptionKey)

### HTTP request headers

 - **Content-Type**: application/json-patch+json, application/json, text/json, application/_*+json
 - **Accept**: application/json

