課堂上以 Chrome 為主。
Safari
複製以下網址,貼到瀏覽器上看輸出:
https://tw.rter.info/capi.php
如下圖:
如果沒有,可到這個網址安裝,是個 Chrome 瀏覽器上的套件,方便看 JSON 資料。
下載 Postman( https://www.postman.com/downloads/ ),方便進行 API 的測試與觀察。
Postman 可透過以下按鈕,跳過註冊(藍框處:lightweight API client
):
透過 postman,測試以下 API(傳送資料類型選 GET
):
https://tw.rter.info/capi.php
示意圖:
在電腦桌面或其它自己習慣的位置,建立如下圖所示的資料夾: