platformOrgsUsersActiveCountRetrieveWithHttpInfo method
Count of users with activity on the platform within specified range or all time Query Params 1. start_date e.g 2020-10-01 2. end_date e.g 2020-10-10 Default is all time
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> platformOrgsUsersActiveCountRetrieveWithHttpInfo(String org, { String? endDate, String? format, int? groupId, String? startDate, }) async {
// ignore: prefer_const_declarations
final path = r'/api/platform/orgs/{org}/users/active/count'
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (endDate != null) {
queryParams.addAll(_queryParams('', 'end_date', endDate));
}
if (format != null) {
queryParams.addAll(_queryParams('', 'format', format));
}
if (groupId != null) {
queryParams.addAll(_queryParams('', 'group_id', groupId));
}
if (startDate != null) {
queryParams.addAll(_queryParams('', 'start_date', startDate));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}