SysReadProduct
Retrieve the full product meta-data for the specified product.
Service | Operation |
---|---|
productManagement | SYS_READ_PRODUCT |
Method Parameters
Parameter | Description |
---|---|
itemId | The item id being requested. |
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 itemId = "gold_bars_10";
var productManagementProxy = bridge.getProductManagementServiceProxy();
var postResult = productManagementProxy.sysReadProduct(itemId);
if (postResult.status == 200) {
// Success!
}
{
"service": "productManagement",
"operation": "SYS_READ_PRODUCT",
"data": {
"itemId": "gold_bars_10"
}
}
JSON Response
{
"data": {
"productDetails": {
"gameId": "23783",
"itemId": "gold_bars_10",
"type": "Consumable",
"iTunesSubscriptionType": null,
"category": "gold",
"title": "product",
"description": "gold_bars_10",
"imageUrl": null,
"currency": {},
"parentCurrency": {},
"peerCurrency": {
"deploypeer": {
"gems": 1
}
},
"defaultPriceId": 0,
"prices": [
{
"priceId": 0,
"referencePrice": 400,
"storeData": {
"amazon": {
"id": "com.amazon.cunsumable.gold.v1"
},
"facebook": {
"currencyList": [
{
"currency": "USD",
"price": 6
}
]
},
"googlePlay": {
"id": "3"
}
}
},
{
"priceId": 1,
"referencePrice": 500,
"storeData": {
"amazon": {
"id": "a"
}
}
}
],
"data": null,
"createdAt": 1592542611282,
"updatedAt": 1592543124830,
"version": 7,
"absoluteImageUrl": null
}
},
"status": 200
}