認證說明
如何取得並使用 API Token
Personal Token
個人 API Token,在 個人資料 → API Token 頁面產生。
透過 ?token=YOUR_TOKEN query string 或 Authorization: Bearer YOUR_TOKEN header 傳入,可設定 IP 白名單限制來源。
Base URL
{{ $baseUrl }}
{{ $group['title'] }}
{{ $group['desc'] }}
{{ $api['desc'] }}
@if(!empty($api['notes']))
@foreach($api['notes'] as $note)
@endforeach
@endif
{{-- 參數表 --}}
@if(!empty($api['params']))
{{ $note }}
參數
| 名稱 | 位置 | 必填 | 型別 | 說明 |
|---|---|---|---|---|
{{ $p['name'] }} |
{{ $p['in'] }} | @if($p['required']) 必填 @else 選填 @endif | {{ $p['type'] ?? '' }} |
{{ $p['desc'] }} |
Request 範例
@foreach($langs as $key => $label)
@if(isset($api['examples'][$key]))
@endif
@endforeach
@endif
@if(!empty($api['example_response']))
{{ $api['examples'][$key] }}
Response 範例
{{ $api['example_response'] }}
@endif
@if(!empty($api['response_fields']))
回傳欄位說明
| 欄位 | 型別 | 說明 |
|---|---|---|
{{ $f['name'] }} |
{{ $f['type'] }} |
{{ $f['desc'] }} |
使用系統測試帳號執行真實請求