六角學院 - HexSchool
API 是什麼,能吃嗎?
Try
HackMD
六角學院 - HexSchool
·
Follow
Last edited by
六角學院
on
Sep 23, 2021
Linked with GitHub
Contributed by
18
3
1
1
1
Comments
Feedback
Log in to edit or delete your comments and be notified of replies.
Sign up
Already have an account? Log in
kj2020
2021/09/23 16:22:27
Web API:TDX 觀光 API
行政院環境保護署 - 環境資源資料開放平臺:開放資料 OpenAPI
https://opendata.epa.gov.tw/api/index.html
(Edited)
kj2020
2021/09/23 16:24:10
CDN
CDN
https://ithelp.ithome.com.tw/articles/10160421
(Edited)
kj2020
2021/09/23 16:55:08
OpenStreetMap
OpenStreetMap: - 請求:座標 - 回應:圖資、圖磚
(Edited)
Discard
Send
API 是什麼,能吃嗎?
應用程式介面(英語:Application Programming Interface)
API 中翻中
API 就像是
飲料販賣機
我想喝飲料 (你想要的資料)
我點選販賣機上的飲料 (你向 API 發出請求(request))
飲料掉到取物口 (API 回應(response)給你對應資訊)
為什麼要有 API?
使用 API 時,不需花時間理解背後程式邏輯,只需要依 API 說明來操作,它就會回傳你想要的結果
常見 API
CSS Shake
我想要一個 hover 晃動效果
我載入 CSS
CDN
,並在指定區塊設定 class
吃到 CSS 效果並擁有該功能
Web API:Leaflet + OpenStreetMap 地圖應用開發
我想要在網頁顯示公司位置
我載入 Leaflet 地圖 JS 套件,並引入
OpenStreetMap
開放街圖,並指定對應座標
網頁顯示對應地圖服務,但你並不用知道裡面的圖片顯示原理
Web API:TDX 觀光 API
我想獲得台灣觀光景點資料
我輸入說明文件上的
網址請求
方式
TDX 伺服器回應我對應的 JSON 格式資料
範例 Code
後端 WEB API:登入註冊 API
我想在平台上註冊會員
我在介面上輸入帳號密碼,並藉由介面發出網路請求
系統回應我是否註冊成功
學生範例程式碼
推薦 YouTube 影片
什麼是 API
工商
JavaScript 直播班倒數 98 位
18
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up
Comment