Get Category ( 取得分類資訊 ) - ec-yahoo/ntu-hackathon GitHub Wiki

This API allows client to get category information by categoryId.

Table Name

ecstore.category.get_category

Parameters

Keys Description Required Example
categoryId category id true 2144871583

Sample Query

select * from ecstore.category.get_category where categoryId ="2144871583"

Sample Response

url : https://partner.yql.yahoo.com/v1/public/yql?q=select%20*%20from%20ecstore.category.get_category%20where%20categoryId%20%3D%222144871583%22&format=json

{
 "query": {
  "count": 1,
  "created": "2017-07-20T03:59:49Z",
  "lang": "zh-TW",
  "results": {
   "Response": {
    "Status": "ok",
    "Result": {
     "category": {
      "categoryId": "2144871583",
      "name": "漢神百貨品牌服飾",
      "level": 2,
      "isLink": 0,
      "isLeaf": 0,
      "isAdult": 0,
      "displayMode": "pic",
      "parentCategoryId": "152981801"
     }
    }
   }
  }
 }
}