listTimelineWithHttpInfo method

Future<Response> listTimelineWithHttpInfo({
  1. String? from,
  2. String? to,
  3. String? eventType,
  4. int? limit,
  5. Future<void>? abortTrigger,
})

Curated field events

Cost: 50 credits, flat.

Note: This method returns the HTTP Response.

Parameters:

  • String from: Inclusive lower bound on the event date, ISO-8601.

  • String to: Inclusive upper bound on the event date, ISO-8601.

  • String eventType: Event type, case-insensitive.

  • int limit:

Implementation

Future<Response> listTimelineWithHttpInfo({ String? from, String? to, String? eventType, int? limit, Future<void>? abortTrigger, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/timeline';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (from != null) {
    queryParams.addAll(_queryParams('', 'from', from));
  }
  if (to != null) {
    queryParams.addAll(_queryParams('', 'to', to));
  }
  if (eventType != null) {
    queryParams.addAll(_queryParams('', 'event_type', eventType));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const contentTypes = <String>[];


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