1. 認證
Autopass 圖資 API
  • 簡介
  • 連線位置
  • 認證方式
  • 伺服器換取 Access Token
  • 用戶端連線細節
  • 錯誤訊息
  • 資料交換格式
  • 站點資料模型重點
  • <> API References
    • 認證
      • 伺服器換取 Access Token
        POST
    • 圖資功能
      • 取得各種站點資訊
      • 取得指定站點資訊
    • 回報功能
      • 回報停車場滿位狀況
      • 回報停車場停業
      • 回報新停車場資訊
      • 回報更新停車場資訊
    • 合作廠商
      • 取得合作廠商資訊
    • 服務狀態
      • 確認服務狀態
  • Schemas
    • AccessToken
    • CooperationState
    • OpeningTimeStatus
    • GasPrice
    • ParkinglotExtraInfo
    • GasStationExtraInfo
    • Parkinglot
    • GasStation
    • Store
    • StoreListResponse
    • Vendor
    • VendorListResponse
    • ReportOkResponse
    • Error
  1. 認證

伺服器換取 Access Token

POST
/oauth/token
以 OAuth2 Client Credentials Flow 換取 Access Token。請務必從後端伺服器發出連線,切勿將 client_id / client_secret 直接放在使用者 App 上換取。

Request

Authorization
Body Params application/x-www-form-urlencodedRequired

Responses

🟢200
application/json
成功取得 Access Token
Bodyapplication/json

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/oauth/token' \
--data-urlencode 'grant_type=' \
--data-urlencode 'scope=' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret='
Response Response Example
{
    "access_token": "String",
    "token_type": "bearer",
    "expires_in": 7200,
    "scope": "String",
    "created_at": 1618000000
}
Modified at 2026-09-14 08:23:15
Previous
站點資料模型重點
Next
取得各種站點資訊
Built with