getAvailabilitiesByPeriodAndCalendarItemTypeIdWithHttpInfo method

Future<Response> getAvailabilitiesByPeriodAndCalendarItemTypeIdWithHttpInfo(
  1. String groupId,
  2. String userId,
  3. String getCalendarItemTypeId,
  4. int startDate,
  5. int endDate,
  6. String hcpId, {
  7. int? limit,
})

Get Availabilities for HCP and appointmentType

The start of the slot is returned in YYYYDDMMHHmmss format and only slots belonging to public time tables are returned.

Note: This method returns the HTTP Response.

Parameters:

  • String groupId (required):

  • String userId (required):

  • String getCalendarItemTypeId (required):

  • int startDate (required):

  • int endDate (required):

  • String hcpId (required):

  • int limit:

Implementation

Future<Response> getAvailabilitiesByPeriodAndCalendarItemTypeIdWithHttpInfo(String groupId, String userId, String getCalendarItemTypeId, int startDate, int endDate, String hcpId, { int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/aa/available/inGroup/{groupId}/forUser/{userId}/type/{getCalendarItemTypeId}'
      .replaceAll('{groupId}', groupId)
      .replaceAll('{userId}', userId)
      .replaceAll('{getCalendarItemTypeId}', getCalendarItemTypeId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'startDate', startDate));
    queryParams.addAll(_queryParams('', 'endDate', endDate));
    queryParams.addAll(_queryParams('', 'hcpId', hcpId));
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}