Skip to main content
Version: 5.7.0

GetCatalogItemsPageOffset

Gets the page of catalog items from the server based on the encoded context and specified page offset, with language fields limited to the text for the current or default language.

ServiceOperation
itemCatalogGET_CATALOG_ITEMS_PAGE_OFFSET

Method Parameters

ParameterDescription
contextThe context string returned from the server from a previous call to GetCatalogItemsPage or GetCatalogItemsPageOffset.
pageOffsetThe positive or negative page offset to fetch. Uses the last page retrieved using the context string to determine a starting point.

Usage

http://localhost:3000
string context = "\"eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjp7IiRyZWdleCI6Ii4qaWxkLioiLCIkb3B0\"";
int pageOffset = 1;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.ItemCatalogService.GetCatalogItemsPageOffset(context, pageOffset, successCallback, failureCallback);
JSON Response
{
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJnYW1lSWQiOiIyMzQwMyJ9LCJzb3J0Q3JpdGVyaWEiOnsiY3JlYXRlZEF0IjoxLCJ1cGRhdGVkQXQiOi0xfSwicGFnaW5hdGlvbiI6eyJyb3dzUGVyUGFnZSI6MSwicGFnZU51bWJlciI6MiwiZG9Db3VudCI6dHJ1ZX0sIm9wdGlvbnMiOm51bGx9",
"results": {
"count": 7,
"page": 2,
"items": [
{
"gameId": "23403",
"defId": "medal_bronze_2",
"name": {
"en": "Medium Bronze Medal"
},
"desc": {
"en": ""
},
"type": "ITEM",
"category": "collectable",
"tags": [
"medal"
],
"buyPrice": {},
"sellPrice": {},
"image": null,
"resourceGroup": null,
"resourceTag": null,
"meta": {},
"initData": {},
"pState": "PUBLISHED",
"publishedAt": 1566585957049,
"createdAt": 1566585954652,
"updatedAt": 1566585957049,
"version": 2,
"stackable": false,
"consumable": false,
"uses": null,
"coolDownSecs": 0,
"recoverySecs": 0,
"activatable": false,
"statusName": null,
"activeSecs": null,
"tradable": false,
"blockchain": false,
"blockchainDefId": null
}
],
"moreAfter": true,
"moreBefore": true
}
},
"status": 200
}