获取小程序类目

接口说明:

  1. GET https://openapi.baidu.com/rest/2.0/smartapp/app/category/list

请求参数:

参数名类型是否必须描述
access_tokenstring授权小程序的接口调用凭据。
category_typeint获取所有类目,固定值为:2 。

返回值示例:

  1. {
    "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"
    }