# GisServerApIs.StatisticsApi

All URIs are relative to *https://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**apiV1StatisticsGet**](StatisticsApi.md#apiV1StatisticsGet) | **GET** /api/v1/statistics | 
[**apiV1UsersByUserIdStatisticsGet**](StatisticsApi.md#apiV1UsersByUserIdStatisticsGet) | **GET** /api/v1/users/{userId}/statistics | 


<a name="apiV1StatisticsGet"></a>
# **apiV1StatisticsGet**
> StatisticsResponse apiV1StatisticsGet(opts)



### Example
```javascript
var GisServerApIs = require('gis_server_ap_is');

var apiInstance = new GisServerApIs.StatisticsApi();

var opts = { 
  'startTime': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endTime': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'aggregationMode': 56, // Number | 
  'whereClause': "whereClause_example", // String | 
  'sortExpression': "sortExpression_example", // String | 
  'sortDirection': 56, // Number | 
  'offset': 56, // Number | 
  'length': 56 // Number | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **startTime** | **Date**|  | [optional] 
 **endTime** | **Date**|  | [optional] 
 **aggregationMode** | **Number**|  | [optional] 
 **whereClause** | **String**|  | [optional] 
 **sortExpression** | **String**|  | [optional] 
 **sortDirection** | **Number**|  | [optional] 
 **offset** | **Number**|  | [optional] 
 **length** | **Number**|  | [optional] 

### Return type

[**StatisticsResponse**](StatisticsResponse.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

<a name="apiV1UsersByUserIdStatisticsGet"></a>
# **apiV1UsersByUserIdStatisticsGet**
> StatisticsResponse apiV1UsersByUserIdStatisticsGet(userId, opts)



### Example
```javascript
var GisServerApIs = require('gis_server_ap_is');

var apiInstance = new GisServerApIs.StatisticsApi();

var userId = "userId_example"; // String | 

var opts = { 
  'startTime': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'endTime': new Date("2013-10-20T19:20:30+01:00"), // Date | 
  'aggregationMode': 56, // Number | 
  'whereClause': "whereClause_example", // String | 
  'sortExpression': "sortExpression_example", // String | 
  'sortDirection': 56, // Number | 
  'offset': 56, // Number | 
  'length': 56 // Number | 
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **userId** | **String**|  | 
 **startTime** | **Date**|  | [optional] 
 **endTime** | **Date**|  | [optional] 
 **aggregationMode** | **Number**|  | [optional] 
 **whereClause** | **String**|  | [optional] 
 **sortExpression** | **String**|  | [optional] 
 **sortDirection** | **Number**|  | [optional] 
 **offset** | **Number**|  | [optional] 
 **length** | **Number**|  | [optional] 

### Return type

[**StatisticsResponse**](StatisticsResponse.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain, application/json, text/json

