getAvailabilitiesByPeriodAndCalendarItemTypeIdWithHttpInfo method
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:
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,
);
}