新聞中心
這里有您想知道的互聯網營銷解決方案
創(chuàng)新互聯百度小程序教程:getTemplateLibraryList
- getTemplateLibraryList
getTemplateLibraryList
支持第三方平臺調用。
網站建設哪家好,找成都創(chuàng)新互聯!專注于網頁設計、網站建設、微信開發(fā)、成都小程序開發(fā)、集團企業(yè)網站建設等服務項目。為回饋新老客戶創(chuàng)新互聯還提供了章丘免費建站歡迎大家使用!
解釋:獲取小程序模板庫標題列表。
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 | 狀態(tài)碼 | 40001 |
| msg | string | 狀態(tài)描述 | 參數錯誤 |
| data | object | 響應參數 | — |
響應參數
| 字段名 | 類型 | 描述 |
|---|---|---|
| total_count | int | 模板庫標題總數 |
| id | string | 模板標題 id(獲取模板標題下的關鍵詞庫時需要) |
| title | string | 模板標題內容 |
請求實例
curl -X GET \'https://openapi-test.baidu.com/rest/2.0/smartapp/template/librarylist?access_token=24.ee3671b4e41f2704280d5ddbe9a3f94c.3600.1556461507.C8Bds396khnu6KDKnqfoUUgZ31K-hBY-gJNc4SsGGjYJrS2RMh&count=20&offset=2271'
響應示例:
{"errno": 0,"msg": "success","data": {"total_count": 2278,"list": [{"id": "BD0001","title": "訂單支付成功通知"},{"id": "BD0002","title": "購買成功通知"},{"id": "BD0003","title": "訂單發(fā)貨提醒"},{"id": "BD0004","title": "待付款提醒"},{"id": "BD0005","title": "付款成功通知"}]}}
網站標題:創(chuàng)新互聯百度小程序教程:getTemplateLibraryList
文章分享:http://m.fisionsoft.com.cn/article/djdicgs.html


咨詢
建站咨詢

