# SwiftShiftApi.StatisticsApi

All URIs are relative to *http://localhost:3000*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getSiteStats**](StatisticsApi.md#getSiteStats) | **GET** /organizations/{organization_id}/sites/{site_id}/statistics/{view_name} | 


<a name="getSiteStats"></a>
# **getSiteStats**
> InlineResponse2001 getSiteStats(viewName, siteId, organizationId, opts)



get site stats

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.StatisticsApi();
let viewName = "viewName_example"; // String | the name of the statistics db view
let siteId = "siteId_example"; // String | id of the site
let organizationId = "organizationId_example"; // String | id of the organization
let opts = {
  'orderBy': "orderBy_example", // String | a type orm json orderBy compliant statement
  'groupBy': "groupBy_example", // String | a type orm json groupBy compliant statement
  'where': "where_example", // String | a type orm json where compliant statement
  'select': "select_example", // String | a type orm json select compliant statement
  'q': "q_example" // String | resource query language
};
apiInstance.getSiteStats(viewName, siteId, organizationId, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **viewName** | **String**| the name of the statistics db view | 
 **siteId** | **String**| id of the site | 
 **organizationId** | **String**| id of the organization | 
 **orderBy** | **String**| a type orm json orderBy compliant statement | [optional] 
 **groupBy** | **String**| a type orm json groupBy compliant statement | [optional] 
 **where** | **String**| a type orm json where compliant statement | [optional] 
 **select** | **String**| a type orm json select compliant statement | [optional] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse2001**](InlineResponse2001.md)

### Authorization

No authorization required

### HTTP request headers

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

