2.8 KiB

manager_api_new.api.StatsApi

Load the API package

import 'package:manager_api_new/api.dart';

All URIs are relative to http://192.168.31.228:5000

Method HTTP request Description
statsGetSummary GET /api/Stats/summary
statsTrackEvent POST /api/Stats/event

statsGetSummary

StatsSummaryDTO statsGetSummary(instanceId, from, to, appType)

Example

import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = StatsApi();
final instanceId = instanceId_example; // String | 
final from = 2013-10-20T19:20:30+01:00; // DateTime | 
final to = 2013-10-20T19:20:30+01:00; // DateTime | 
final appType = appType_example; // String | 

try {
    final result = api_instance.statsGetSummary(instanceId, from, to, appType);
    print(result);
} catch (e) {
    print('Exception when calling StatsApi->statsGetSummary: $e\n');
}

Parameters

Name Type Description Notes
instanceId String [optional]
from DateTime [optional]
to DateTime [optional]
appType String [optional]

Return type

StatsSummaryDTO

Authorization

bearer

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

statsTrackEvent

statsTrackEvent(visitEventDTO)

Example

import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = StatsApi();
final visitEventDTO = VisitEventDTO(); // VisitEventDTO | 

try {
    api_instance.statsTrackEvent(visitEventDTO);
} catch (e) {
    print('Exception when calling StatsApi->statsTrackEvent: $e\n');
}

Parameters

Name Type Description Notes
visitEventDTO VisitEventDTO

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]