API文档
完整的开发者接口文档
认证接口示例
查看完整文档获取Access Token
POST /api/v3/auth/token
Content-Type: application/json
{
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"grant_type": "client_credentials"
}响应示例
{
"code": 0,
"message": "success",
"data": {
"access_token": "eyJhbGciOiJSUzI1NiIs...",
"expires_in": 7200,
"token_type": "Bearer"
}
}常见错误码
| 错误码 | 说明 | 解决方案 |
|---|---|---|
| 10001 | Token无效或已过期 | 重新获取Access Token |
| 20001 | 影院不存在 | 检查影院ID是否正确 |
| 30001 | 场次已下线 | 选择其他场次 |
| 40001 | 座位已被占用 | 重新选择座位 |