- 首页
- 标准版(推荐)
- 开放版
- 复杂版
添加账号
POST
http://127.0.0.1:8091/email/email/userParam/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端口
proxyLock
string
是否使用代理
proxyHost
string
代理地址
proxyPort
string
代理端口
proxyType
string
代理类型
proxyUser
string
代理账号
proxyPassword
string
代理密码
示例
{
"user": "wan163@163.com",
"pass": "XOUHIWGTZ",
"groupType": "阿萨德",
"isSsl": "0",
"protocol": "imap",
"popHost": "pop.163.com",
"popPort": "110",
"imapHost": "imap.163.com",
"imapPort": "143",
"proxyLock": "1",
"proxyHost": "172.16.111.200",
"proxyPort": "7890",
"proxyType": "http",
"proxyUser": "test",
"proxyPassword": "test"
}
示例代码
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/userParam/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",
"proxyLock": "1",
"proxyHost": "172.16.111.200",
"proxyPort": "7890",
"proxyType": "http",
"proxyUser": "test",
"proxyPassword": "test"
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
data
object
必需
id
string
必需
user
string
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "操作成功",
"data": {
"id": "34584f3a558d299a228f74f6f2cda45e",
"user": "wan163@163.com"
},
"timestamp": 1709729348920
}
修改于 2024-04-01 09:35:08