getPendingItemsMyPendingItemsGetWithHttpInfo method

Future<Response> getPendingItemsMyPendingItemsGetWithHttpInfo({
  1. int? page,
  2. int? size,
})

Get Pending Items

Retrieve all unclaimed pending items for your account. These are items from various sources (achievements, grand exchange, events, etc.) that can be claimed by any character on your account using /my/{name}/action/claim/{id}.

Note: This method returns the HTTP Response.

Parameters:

  • int page: Page number

  • int size: Page size

Implementation

Future<Response> getPendingItemsMyPendingItemsGetWithHttpInfo({
  int? page,
  int? size,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/my/pending-items';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (size != null) {
    queryParams.addAll(_queryParams('', 'size', size));
  }

  const contentTypes = <String>[];

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