- 首页
- 标准版(推荐)
- 开放版
- 复杂版
添加账号
POST
http://127.0.0.1:8091/email/email/user/add
请求参数
Header 参数
Safe-Key
string
可选
Body 参数application/json
user
string
邮箱账号
pass
string
邮箱密码
groupType
string
分组
isSsl
string
SSL验证
protocol
string
协议类型
popHost
string
pop3地址
popPort
string
pop3端口
imapHost
string
imap地址
imapPort
string
imap端口
testLogin
string
是否执行登录测试
示例
{
"user": "wan163@163.com",
"pass": "XOUHIWGTZ",
"groupType": "阿萨德",
"isSsl": "0",
"protocol": "imap",
"popHost": "pop.163.com",
"popPort": "110",
"imapHost": "imap.163.com",
"imapPort": "143",
"testLogin": "0"
}
示例代码
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:8091/email/email/user/add' \
--header 'Safe-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"user": "wan163@163.com",
"pass": "XOUHIWGTZ",
"groupType": "阿萨德",
"isSsl": "0",
"protocol": "imap",
"popHost": "pop.163.com",
"popPort": "110",
"imapHost": "imap.163.com",
"imapPort": "143",
"testLogin": "0"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
data
object
必需
createId
null
必需
createTime
string
必需
updateId
null
必需
updateTime
string
必需
isDelete
integer
必需
id
string
必需
user
string
必需
pass
string
必需
popHost
string
必需
popPort
string
必需
imapHost
string
必需
imapPort
string
必需
isSsl
string
必需
protocol
string
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "操作成功",
"data": {
"createId": null,
"createTime": "2024-01-02 10:55:36",
"updateId": null,
"updateTime": "2024-01-02 10:55:36",
"isDelete": 0,
"id": "54d0fc149a2405376a6acfed8c10ab92",
"user": "1@hotmail.com",
"pass": "11",
"popHost": "outlook.office365.com",
"popPort": "995",
"imapHost": "outlook.office365.com",
"imapPort": "995",
"isSsl": "0",
"protocol": "pop3"
},
"timestamp": 1704186230818
}
修改于 2024-04-01 09:35:33