取得合法 Bearer token
Header Parameters
- account string required
iservice 提供的帳號
- password string required
iservice 提供的密碼
Responses
- 200
- 401
- application/json
- success
- Schema
- Example (from schema)
Schema
- token string
存取 api 時所需的 token
{
"token": "string"
}
- Response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1dWlkIjoiYzBhNjNlOTMtOWNiYy00YzU1LThiZmMtMmJiY2ZiZWNiZDc1IiwiYWNsIjpbImFsbCJdLCJleHAiOjE1MzY0MDgxOH0.CJp3njShltnrZVX4uRRflOkmpVo7nY5COOkiWedSjmY"
}
- application/json
- account or passwd doesn't exist
- authentication failed
- Schema
- Example (from schema)
Schema
errors object[]
code integer錯誤碼
message string錯誤訊息
{
"errors": [
{
"code": 0,
"message": "string"
}
]
}
- Response
{
"errors": [
{
"code": 89,
"message": "Account and password are required."
}
]
}
- Response
{
"errors": [
{
"code": 89,
"message": "Invalid account or password."
}
]
}
Loading...