生成Captcha
POSThttps://unknown.ap-shanghai.tcb-api.tencentcloudapi.com/auth/v1/captcha/data
没有开启外部验证服务的时候,该接口才可用
Request
- application/json
Body
required
state string
redirect_uri string
Responses
- 200
- 401
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
data string
type string
token string
expires_in int32
{
"data": "string",
"type": "string",
"token": "string",
"expires_in": 0
}
the oauth2.0 access token is not correct or expired
- application/json
- Schema
Schema
- any
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
code int32
message string
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Authorization: http
name: Basictype: httpscheme: basic
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://unknown.ap-shanghai.tcb-api.tencentcloudapi.com/auth/v1/captcha/data' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"state": "string",
"redirect_uri": "string"
}'
ResponseClear