SysGetProductList
Returns the list of products (summary details only) for the specified category (optional).
Service | Operation |
---|---|
productManagement | SYS_GET_PRODUCT_LIST |
Method Parameters
Parameter | Description |
---|---|
category | Optional. The product item category to filter on. Leave blank or null to retrieve all products. |
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 category = "bars";
var productManagementProxy = bridge.getProductManagementServiceProxy();
var postResult = productManagementProxy.sysGetProductList(category);
if (postResult.status == 200) {
// Success!
}
{
"service": "productManagement",
"operation": "SYS_GET_PRODUCT_LIST",
"data": {
"category": "bars"
}
}
JSON Response
{
"data": {
"products": [
{
"itemId": "barBundle1Imp12peer",
"defaultReferencePrice": -1,
"iTunesSubscriptionType": "Free",
"data": {
"customAttr": "value"
},
"imageUrl": "",
"description": "Bundle of 10 Bars.",
"title": "Bars (10)",
"category": "bars",
"type": "Subscription"
}
]
},
"status": 200
}