欢迎光临
我们一直在努力

九八云百度小程序教程:getTemplateLibraryList

  • getTemplateLibraryList

    getTemplateLibraryList

    支持第三方平台调用。

    解释:获取小程序模板库标题列表。

    
     
    1. GET https://openapi.baidu.com/rest/2.0/smartapp/template/librarylist

    公共请求参数:

    参数名 类型 是否必须 描述
    access_token string access_token,授权小程序的接口调用凭据

    请求参数:

    参数名 类型 是否必须 描述
    offset int 用于分页,表示从 offset 开始,默认值为 0
    count int 用于分页,表示拉取 count 条记录,默认值为 0,最大为 20

    公共响应参数

    参数 类型 描述 示例值
    errno int 状态码 40001
    msg string 状态描述 参数错误
    data object 响应参数

    响应参数

    字段名 类型 描述
    total_count int 模板库标题总数
    id string 模板标题 id(获取模板标题下的关键词库时需要)
    title string 模板标题内容

    请求实例

    
     
    1. curl -X GET \
    2. 'https://openapi-test.baidu.com/rest/2.0/smartapp/template/librarylist?access_token=24
    3. .ee3671b4e41f2704280d5ddbe9a3f94c.3600.1556461507.C8Bds396khnu6KDKnqfoUUgZ31K-hBY-gJNc4SsGGjYJrS2RMh&count=20&offset=2271'

    响应示例:

    
     
    1. {
    2. "errno": 0,
    3. "msg": "success",
    4. "data": {
    5. "total_count": 2278,
    6. "list": [
    7. {
    8. "id": "BD0001",
    9. "title": "订单支付成功通知"
    10. },
    11. {
    12. "id": "BD0002",
    13. "title": "购买成功通知"
    14. },
    15. {
    16. "id": "BD0003",
    17. "title": "订单发货提醒"
    18. },
    19. {
    20. "id": "BD0004",
    21. "title": "待付款提醒"
    22. },
    23. {
    24. "id": "BD0005",
    25. "title": "付款成功通知"
    26. }
    27. ]
    28. }
    29. }

    赞(0) 打赏
    未经允许不得转载:九八云安全 » 九八云百度小程序教程:getTemplateLibraryList

    评论 抢沙发