getWidgetItems method
Future<DynamiteResponse<DashboardApiGetWidgetItemsResponseApplicationJson, void> >
getWidgetItems({})
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. Defaults to7
.widgets
Limit results to specific widgets. Defaults to[]
.oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: Widget items returned
See:
- $getWidgetItems_Request for the request send by this method.
- $getWidgetItems_Serializer for a converter to parse the
Response
from an executed request.
Implementation
Future<_i1.DynamiteResponse<DashboardApiGetWidgetItemsResponseApplicationJson, void>> getWidgetItems({
String? sinceIds,
int? limit,
BuiltList<String>? widgets,
bool? oCSAPIRequest,
}) async {
final _request = $getWidgetItems_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 = $getWidgetItems_Serializer();
return _i1.ResponseConverter<DashboardApiGetWidgetItemsResponseApplicationJson, void>(_serializer)
.convert(_response);
}