Skip to main content
Version: 5.7.0

GetCatalogItemDefinition

Reads an existing item definition from the server, with language fields limited to the current or default language.

ServiceOperation
itemCatalogGET_CATALOG_ITEM_DEFINITION

Method Parameters

ParameterDescription
defIdThe unique id of the item definition.

Usage

http://localhost:3000
string defId = "sword001";
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.GetCatalogItemDefinition(defId, successCallback, failureCallback);
JSON Response
{
"data": {
"defId": "boost_rapidfire",
"name": "Rapid Fire",
"desc": "Rapid fire for the next match.",
"type": "ITEM",
"category": "boost",
"tags": null,
"buyPrice": {
"coins": 200
},
"sellPrice": {
"coins": 400
},
"image": null,
"resourceGroup": null,
"resourceTag": null,
"meta": {},
"initData": {},
"pState": "PUBLISHED",
"publishedAt": 1566850042148,
"createdAt": 1566849704195,
"updatedAt": 1566850232538,
"version": 4,
"stackable": false,
"consumable": false,
"uses": null,
"coolDownSecs": 0,
"recoverySecs": 0,
"activatable": true,
"statusName": "boosted",
"activeSecs": 900000,
"tradable": true,
"blockchain": false,
"blockchainDefId": null
},
"status": 200
}