# CampaignApIs.DrawingApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**drawingAnswer**](DrawingApi.md#drawingAnswer) | **POST** /Drawing/Answer | 
[**drawingAnswerList**](DrawingApi.md#drawingAnswerList) | **GET** /Drawing/AnswerList | 
[**drawingDrawingList**](DrawingApi.md#drawingDrawingList) | **GET** /Drawing/DrawingList | 
[**drawingPost**](DrawingApi.md#drawingPost) | **POST** /Drawing/Post | 


<a name="drawingAnswer"></a>
# **drawingAnswer**
> ApiResultBoolean drawingAnswer(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.DrawingApi();

var opts = { 
  'value': new CampaignApIs.PostAnswerModel(), // PostAnswerModel | 
  '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.drawingAnswer(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **value** | [**PostAnswerModel**](PostAnswerModel.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="drawingAnswerList"></a>
# **drawingAnswerList**
> PagingResultGetAnswerModel drawingAnswerList(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.DrawingApi();

var opts = { 
  'gameId': "gameId_example", // String | 
  'instanceId': 789, // Number | 
  'drawerId': "drawerId_example", // String | 
  'questionId': 56, // Number | 
  '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.drawingAnswerList(opts, callback);
```

### Parameters

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

### Return type

[**PagingResultGetAnswerModel**](PagingResultGetAnswerModel.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="drawingDrawingList"></a>
# **drawingDrawingList**
> PagingResultGetDrawingModel drawingDrawingList(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.DrawingApi();

var opts = { 
  'gameId': "gameId_example", // String | 
  'instanceId': 789, // Number | 
  'questionId': 56, // Number | 
  '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.drawingDrawingList(opts, callback);
```

### Parameters

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

### Return type

[**PagingResultGetDrawingModel**](PagingResultGetDrawingModel.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="drawingPost"></a>
# **drawingPost**
> ApiResultString drawingPost(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.DrawingApi();

var opts = { 
  'value': new CampaignApIs.PostDrawingModel(), // PostDrawingModel | 
  '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.drawingPost(opts, callback);
```

### Parameters

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

### Return type

[**ApiResultString**](ApiResultString.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

