getWidgetItemsV2 method

Future<DynamiteResponse<DashboardApiGetWidgetItemsV2ResponseApplicationJson, void>> getWidgetItemsV2({
  1. String? sinceIds,
  2. int? limit,
  3. BuiltList<String>? widgets,
  4. bool? oCSAPIRequest,
})

Get the items for the widgets.

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:

  • sinceIds Array indexed by widget Ids, contains date/id from which we want the new items.
  • limit Limit number of result items per widget, not more than 30 are allowed. Defaults to 7.
  • widgets Limit results to specific widgets. Defaults to [].
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: Widget items returned

See:

Implementation

Future<_i1.DynamiteResponse<DashboardApiGetWidgetItemsV2ResponseApplicationJson, void>> getWidgetItemsV2({
  String? sinceIds,
  int? limit,
  BuiltList<String>? widgets,
  bool? oCSAPIRequest,
}) async {
  final _request = $getWidgetItemsV2_Request(
    sinceIds: sinceIds,
    limit: limit,
    widgets: widgets,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

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