添加动态住宅流量子账号
POST
/externalapi/device/accountAdd添加动态住宅流量子账号
请求参数
Body 参数application/x-www-form-urlencoded
access_token
string
必需
用户token。用户登录之后,获取token
示例值:
{{access_token}}
type
integer
必需
套餐类型:0=全球动态住宅,1=全球静态住宅,2=全球数据中心。此处固定为:0
示例值:
0
num
integer
必需
需要生成的子账号数量
示例值:
1
changeInterval
integer
必需
IP时长,5-120分钟可选
示例值:
5
is_diff
integer
必需
是否去重:1=是;0=否
示例值:
0
agree
string
必需
协议:SOCKS5,HTTP,HTTPS
示例值:
SOCKS5
state
string
可选
州/省份,多个以逗号隔开:'anhui,jiangsu'
city
string
城市code
url
string
业务网址
use_random_username
integer
可选
创建时是否使用随机账号和密码。0=不使用,1=使用
示例值:
0
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
响应编码:1=正常,0=错误
msg
string
响应说明
time
string
执行时间戳
data
object
响应体
alloc
array [object {27}]
必需
auth
object
必需
baseFlow
integer
必需
baseFlowEnabled
boolean
必需
switch
integer
必需
switchEnabled
boolean
必需
total
integer
必需
username
string
必需
示例
{
"code": 0,
"msg": "string",
"time": "string",
"data": {
"alloc": [
{
"access": {
"port": 0,
"target": "string"
},
"allocated": true,
"amount": 0,
"basicAuth": {
"password": "string",
"username": "string"
},
"changeInterval": 0,
"city": "string",
"connection": 0,
"country": [
"string"
],
"createTime": 0,
"diffTarget": 0,
"diffUser": 0,
"enable": true,
"expiresIn": 0,
"failover": true,
"ip": [
"string"
],
"method": "string",
"orderID": "string",
"period": "string",
"rate": 0,
"remark": "string",
"source": "string",
"state": "string",
"subAccount": "string",
"type": "string",
"udp": true,
"updateTime": 0,
"version": 0
}
],
"auth": {
"account": "string",
"password": "string"
},
"baseFlow": 0,
"baseFlowEnabled": true,
"switch": 0,
"switchEnabled": true,
"total": 0,
"username": "string"
}
}
最后修改时间: 9 个月前