pptp api
Base URLs:
Authentication
Default
GET pptp套餐获取
GET /v2/getpptpprdlist
请求参数
名称 位置 类型 必选 说明 agentid query string 否 none ti query integer 否 当前时间戳根据ti字段单位是s,判断请求是否过期 nonce query string 否 随机字符,每次要不一样 sign query string 否 md5($ti . $nonce . $apikey)
返回示例
200 Response
{
"errcode": "0",
"msg": [
{
"id": "18",
"name": "全国18省90地区混播(一号通) PPTP",
"day_price": "5",
"week_price": "18",
"month_price": "48",
"month3_price": "126",
"month6_price": "240",
"year_price": "480"
}
]
}
返回结果
状态码 状态码含义 说明 数据模型 200 none Inline
返回数据结构
GET pptp创建
GET /v2/addpptp
Body 请求参数
{}
请求参数
名称 位置 类型 必选 说明 prdid query string 否 none vpnuser query string 否 none password query string 否 none day query string 否 测试test 日:1,周:7,月:30,季:90,半年:180,年:360 remark query string 否 none agentid query string 否 none ti query integer 否 当前时间戳根据ti字段单位是s,判断请求是否过期 nonce query string 否 随机字符,每次要不一样 sign query string 否 md5($ti . $nonce . $apikey) body body object 否 none
返回示例
200 Response
{"errcode":"0","msg":[{"error":"0","msg":"创建成功","vpnuser":"nan","password":"a123456"}]}
返回结果
状态码 状态码含义 说明 数据模型 200 none Inline
返回数据结构
GET pptp续费
GET /v2/pptprenew
请求参数
名称 位置 类型 必选 说明 vpnuser query string 否 none day query string 否 测试test 日:1,周:7,月:30,季:90,半年:180,年:360 agentid query string 否 none ti query integer 否 当前时间戳根据ti字段单位是s,判断请求是否过期 nonce query string 否 随机字符,每次要不一样 sign query string 否 md5($ti . $nonce . $apikey)
返回示例
200 Response
{"errcode":"0","msg":{"vpnuser":"nan","msg":"续费成功","expiretime":"2025-10-18 11:28:46"}}
返回结果
状态码 状态码含义 说明 数据模型 200 none Inline
返回数据结构
GET pptp申请退款
GET /v2/pptpreFund
请求参数
名称 位置 类型 必选 说明 vpnuser query string 否 none agentid query string 否 none ti query integer 否 当前时间戳根据ti字段单位是s,判断请求是否过期 nonce query string 否 随机字符,每次要不一样 sign query string 否 md5($ti . $nonce . $apikey)
返回示例
200 Response
{"errcode":"0","msg":"申请退款成功"}
返回结果
状态码 状态码含义 说明 数据模型 200 none Inline
返回数据结构
GET pptp取消退款
GET /v2/pptpunreFund
请求参数
名称 位置 类型 必选 说明 vpnuser query string 否 none agentid query string 否 none ti query integer 否 当前时间戳根据ti字段单位是s,判断请求是否过期 nonce query string 否 随机字符,每次要不一样 sign query string 否 md5($ti . $nonce . $apikey)
返回示例
200 Response
{"errcode":"0","msg":"取消申请退款成功"}
返回结果
状态码 状态码含义 说明 数据模型 200 none Inline
暂无评论,快来分享您的想法吧!