Get Categories ( 取得商城分類 ) - ec-yahoo/ntu-hackathon GitHub Wiki
This API allows client to retrieve information about one or more categories.
Table Name
ecstore.category.get_categories
Parameters
Keys | Description | Required | Example |
---|---|---|---|
categoryIds | list of category id | true | 152982958,152983007 |
Sample Query
select * from ecstore.category.get_categories where categoryIds="152982958,152983007"
Sample Response
{
"query": {
"count": 1,
"created": "2017-07-13T10:17:11Z",
"lang": "zh-TW",
"results": {
"Response": {
"Status": "ok",
"Result": {
"categories": {
"category": [
{
"categoryId": "152982958",
"name": "週邊設備/零組件",
"level": 2,
"isLink": 0,
"isLeaf": 0,
"isAdult": 0,
"displayMode": "both",
"parentCategoryId": "152982920"
},
{
"categoryId": "152983007",
"name": "Transcend 創見",
"level": 4,
"isLink": 0,
"isLeaf": 0,
"isAdult": 0,
"displayMode": "both",
"parentCategoryId": "152982999"
}
]
}
}
}
}
}
}