|
|
|
- 日期:114年11月11日
- 今日人次:76522
- 總人次:59042973
|
活動訊息 Open Data
活動訊息 Open Data 使用說明
活動訊息 Open Data 使用說明
活動訊息列表
Open Data 網址:
`http://www.kh.edu.tw/json/publicInfo/eduReport/datagrid page=頁號&rows=每頁資料筆數`
範例:
[活動訊息Open Data範例連結](http://www.kh.edu.tw/json/publicInfo/eduReport/datagrid?page=1&rows=20)
回傳資料格式(JSON):
{ total: 資料總筆數, rows: [資料1, 資料2, …] }
單筆資料格式(JSON):
{ reportSn : 資料代號, author: 資料來源, title: 標題, pubDate: 發佈日期, hits: 點閱數 }
url 接在 `http://www.kh.edu.tw/json/publicInfo/eduReport/` 後,可得到該筆活動訊息Open Data。
單筆活動訊息
Open Data 網址:
`http://www.kh.edu.tw/json/publicInfo/eduReport/活動訊息代號`
範例:
[單筆活動訊息Open Data範例連結](http://www.kh.edu.tw/json/publicInfo/eduReport/20170172)
回傳資料格式(JSON):
{ reportSn: 資料代號, department: 來源科室, title: 標題, content: 內文, pics: [附圖1, 附圖2, …], publicDate: 發佈日期, hit: 點閱數}
附圖資料格式(JSON):
{sn: 附圖代號, fileName: 檔案名稱, comment: 圖片說明}
附圖網址
`http://www.kh.edu.tw/download/publicInfo/eduReport/活動訊息代號/附圖代號`
範例:
[附圖網址範例連結](http://www.kh.edu.tw/download/publicInfo/eduReport/20170165/2821)