获取首页帮助分类以及常见问题.md 8.8 KB

1、获取首页帮助分类以及常见问题

获取首页帮助分类以及常见问题(method=app.help.homeCategoryFaq)

公共请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
client_secret string 50 5ac68f20cb18efe154be 进入接口提供的参数加密信息
app_version float 10 1 APP版本
os_version string 20 Android4.4 系统版本+机器型号
client_type string 20 iphone/android/ipad 手机型号(不区分大小写)
screen_size string 20 800x900 (手机尺寸)

请求参数

参数名称 参数类型 长度 可否为空 示例 默认值 备注
platformName String YOHO!BUY PC 显示平台

接口说明

接口说明
请求域名 http://api.yoho.cn
接口名 method=app.help.homeCategoryFaq
接口说明 校验是否是注册用户
http请求方式 POST/GET

返回错误

错误code 错误提示
500 参数缺失

注意,通用的头部没有列出。
请求示例 ?method=app.help.homeCategoryFaq&platformName=YOHO!BUY PC

响应

code为200即为成功,否则是失败。 响应参数,data部分
响应成功JSON(BLK-PC)格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "categorys": [
            {
                "categoryDescription": "新手指南",
                "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                "categoryItems": [
                    {
                        "categoryDescription": "登录注册",
                        "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                        "categoryLevel": 2,
                        "categoryName": "登录注册",
                        "id": 10,
                        "orderBy": 1
                    },
                    {
                        "categoryDescription": "搜索商品",
                        "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                        "categoryLevel": 2,
                        "categoryName": "搜索商品",
                        "id": 12,
                        "orderBy": 2
                    }
                ],
                "categoryLevel": 1,
                "categoryName": "新手指南",
                "id": 8,
                "orderBy": 1
            },
            {
                "categoryDescription": "这是一个公告",
                "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                "categoryLevel": 1,
                "categoryName": "公告",
                "contentItems": [
                    {
                        "caption": "差价返还公告",
                        "content": "差价返还公告",
                        "helperType": 1,
                        "id": 8,
                        "orderBy": 1
                    },
                    {
                        "caption": "警惕网络诈骗公告",
                        "content": "警惕网络诈骗公告",
                        "helperType": 1,
                        "id": 10,
                        "orderBy": 2
                    }
                ],
                "id": 14,
                "orderBy": 2
            },
            {
                "categoryDescription": "会员中心",
                "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                "categoryItems": [
                    {
                        "categoryDescription": "账户管理",
                        "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                        "categoryLevel": 2,
                        "categoryName": "账户管理",
                        "contentItems": [
                            {
                                "caption": "账号管理",
                                "content": "账号如何管理?",
                                "helperType": 1,
                                "id": 12,
                                "orderBy": 1
                            },
                            {
                                "caption": "账号管理2",
                                "content": "账号还可以这么管理",
                                "helperType": 1,
                                "id": 14,
                                "orderBy": 2
                            }
                        ],
                        "id": 20,
                        "orderBy": 1
                    },
                    {
                        "categoryDescription": "密码管理",
                        "categoryIco": "/2016/12/09/17/025c8608fd0b33a283afe595046d67793b.jpg",
                        "categoryLevel": 2,
                        "categoryName": "密码管理",
                        "contentItems": [
                            {
                                "caption": "密码管理",
                                "content": "密码这么管理",
                                "helperType": 1,
                                "id": 16,
                                "orderBy": 1
                            }
                        ],
                        "id": 22,
                        "orderBy": 2
                    },
                    {
                        "categoryDescription": "无图标会员中心",
                        "categoryIco": "",
                        "categoryLevel": 2,
                        "categoryName": "无图标会员中心",
                        "id": 24,
                        "orderBy": 3
                    }
                ],
                "categoryLevel": 1,
                "categoryName": "会员中心",
                "id": 18,
                "orderBy": 3
            }
        ],
        "faqs": [
            {
                "caption": "账号帮助",
                "content": "<p>\r\n\t请上传证件\r\n</p>\r\n<p>\r\n\t<img src=\"http://img11.static.yhbimg.com/goodsimg/2016/12/09/17/016ae11a9445207acc3a01286f4eeee83e.jpg\" alt=\"\" />\r\n</p>",
                "helperType": 2,
                "id": 2,
                "orderBy": 1
            },
            {
                "caption": "账号管理",
                "content": "账号如何管理?",
                "helperType": 1,
                "id": 12,
                "orderBy": 1
            },
            {
                "caption": "密码管理",
                "content": "密码这么管理",
                "helperType": 1,
                "id": 16,
                "orderBy": 1
            }
        ]
    },
    "md5": "56e926453c4b165b117bc163610e490b",
    "message": "操作成功"
}

响应成功JSON(APP)格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "categorys": [
            {
                "categoryDescription": "订单修改,取消订单,地址修改",
                "categoryIco": "",
                "categoryLevel": 1,
                "categoryName": "订单查询",
                "contentItems": [
                    {
                        "caption": "发货要多长时间?",
                        "content": "发货要多长时间内容",
                        "helperType": 1,
                        "id": 18,
                        "orderBy": 1
                    },
                    {
                        "caption": "我的订单为何不能货到付款?",
                        "content": "我的订单为何不能货到付款?内容",
                        "helperType": 1,
                        "id": 20,
                        "orderBy": 2
                    }
                ],
                "id": 26,
                "orderBy": 1
            },
            {
                "categoryDescription": "物流费用,失效,跟踪,",
                "categoryIco": "",
                "categoryLevel": 1,
                "categoryName": "物流问题",
                "contentItems": [
                    {
                        "caption": "物流为什么不能送到天上?",
                        "content": "物流为何不能送到天上?内容",
                        "helperType": 1,
                        "id": 22,
                        "orderBy": 1
                    }
                ],
                "id": 28,
                "orderBy": 2
            }
        ],
        "faqs": [
            {
                "caption": "发货要多长时间?",
                "content": "发货要多长时间内容",
                "helperType": 1,
                "id": 18,
                "orderBy": 1
            }
        ]
    },
    "md5": "022a95a1f518942256796eabd8b27c48",
    "message": "操作成功"
}