接口說明:
GET https://openapi.baidu.com/rest/2.0/smartapp/app/category/list
請求參數:
參數名 類型 是否必須 描述
access_token string 是 授權小程序的接口調用憑據。
category_type int 是 獲取所有類目,固定值為:2 。
返回值示例:
{
“data”: [
{
id: “1”,
category_name: “快遞業與郵政”,
category_type: “2”,
subItems: {
2: {
id: “2”,
category_name: “快遞”,
category_type: “2”,
need_quali: “1”,
category_quali: “{“desc”:”請上傳《快遞業務經營許可證》”,”list”:[[{“id”:1,”must”:1,”name”:”快遞業務經營許可證”,”desc”:””}]]}”
},
3: {
id: “3”,
category_name: “郵政”,
category_type: “2”,
need_quali: “0”,
category_quali: “”
},
…
} ,
…
],
“errno”: 0,
“msg”: “success”
}