getEvents method

Future<DynamiteResponse<UpcomingEventsGetEventsResponseApplicationJson, void>> getEvents({
  1. String? location,
  2. bool? oCSAPIRequest,
})

Get information about upcoming events.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • location location/URL to filter by.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Upcoming events
  • 401: When not authenticated

See:

Implementation

Future<_i1.DynamiteResponse<UpcomingEventsGetEventsResponseApplicationJson, void>> getEvents({
  String? location,
  bool? oCSAPIRequest,
}) async {
  final _request = $getEvents_Request(
    location: location,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $getEvents_Serializer();
  return _i1.ResponseConverter<UpcomingEventsGetEventsResponseApplicationJson, void>(_serializer).convert(_response);
}