SysGetCatalogItemDefinition
Reads an existing item definition from the server, with full language fields mappings.
Service | Operation |
---|---|
itemCatalog | SYS_GET_CATALOG_ITEM_DEFINITION |
Method Parameters
Parameter | Description |
---|---|
defId | The unique id of the item definition. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var defId = "sword001";
var itemCatalogProxy = bridge.getItemCatalogServiceProxy();
var postResult = itemCatalogProxy.sysGetCatalogItemDefinition(defId);
if (postResult.status == 200) {
// Success!
}
{
"service": "itemCatalog",
"operation": "SYS_GET_CATALOG_ITEM_DEFINITION",
"data": {
"defId": "sword001"
}
}
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
}