- 首页
- 标准版(推荐)
- 开放版
- 复杂版
添加代理
POST
http://127.0.0.1:8091/email/email/proxy/add
请求参数
Header 参数
Safe-Key
string
可选
Body 参数application/json
host
string
必需
port
string
必需
type
string
必需
user
string
可选
password
string
可选
status
string
必需
useNum
string
可选
示例
{
"host": "172.16.111.200",
"port": "7890",
"type": "http",
"user": "test",
"password": "test",
"status": "0",
"useNum": ""
}
示例代码
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/proxy/add' \
--header 'Safe-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"host": "172.16.111.200",
"port": "7890",
"type": "http",
"user": "test",
"password": "test",
"status": "0",
"useNum": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
success
boolean
必需
msg
string
必需
data
object
必需
createId
null
必需
createTime
string
必需
updateId
null
必需
updateTime
string
必需
isDelete
integer
必需
id
string
必需
host
string
必需
port
string
必需
type
string
必需
user
string
必需
password
string
必需
useNum
integer
必需
status
string
必需
timestamp
integer
必需
示例
{
"code": 200,
"success": true,
"msg": "操作成功",
"data": {
"createId": null,
"createTime": "2024-01-01 14:15:09",
"updateId": null,
"updateTime": "2024-01-02 12:21:30",
"isDelete": 0,
"id": "54e442d5b201be4c8fb9472ec81c2623",
"host": "127.0.0.1",
"port": "7890",
"type": "http",
"user": "",
"password": "",
"useNum": 1,
"status": "0"
},
"timestamp": 1704186596455
}
修改于 2024-01-02 09:20:19