绑定/换绑邮箱
POST
/user/bind_email
请求参数
Header 参数
Accept
string
可选
默认值:
application/json
Authorization
string
可选
默认值:
Bearer {{token}}
Body 参数application/json
email
string
邮箱
code
string
邮件验证码
示例
{
"email": "m.ifinwuxgax@vcfcyh.pf",
"code": "123456"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:8000/api/v2/user/bind_email' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "m.ifinwuxgax@vcfcyh.pf",
"code": "123456"
}'
返回响应
🟢201成功
application/json
Body
status
string
必需
message
string
必需
time
integer
必需
示例
{
"status": "string",
"message": "string",
"time": 0
}
修改于 2024-11-26 08:47:54