账号相关接口

90TH.CN API Documentation

获取当前API账号信息 User Info

可通过本接口获取apikey所属账号的账号信息

参数:

请求地址: https://www.90th.cn/api/user/info
请求方式: GET
计费方式: 免费

请求示例 (curl):

curl -X GET "https://www.90th.cn/api/user/info" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"

返回值示例: JSON UFT-8

{
    "code": 200,
    "data": {
        "id": 2,
        "username": "90tools",
        "nickname": "90tools",
        "email": "tools@90th.cn",
        "diamond": 98853,
        "avatar": "/upload/avatars/90.jpg?v=20180602",
        "permissions": [
            "godaddy"
        ],
        "tg_chat_id": -900575617,
        "created_at": "2018-04-01T11:31:43.000000Z"
    }
}

服务商账号列表 Service Accounts

获取您账号绑定的各个服务商的账号

参数:

请求路径: https://www.90th.cn/api/user/service_account
请求方式: GET
计费方式: 免费
参数名称 数据类型 必填 默认值 可选值/说明
type String - cloudflare, namesilo, godaddy, dnspod, dynadot, cloudns,
openprovider, gcore, aliyun, gname, westcn, spaceship, aiming, dnsla

请求示例 (curl):

curl -X GET "https://www.90th.cn/api/user/service_account?type=cloudflare" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"

返回值示例: JSON UFT-8

{
    "code": 200,
    "data": [{
        "id": 4468,
        "title": "account1@gmail.com",
        "created_at": "2021-08-14T08:58:41.000000Z"
    }, {
        "id": 4590,
        "title": "account2@gmail.com",
        "created_at": "2021-12-27T01:29:27.000000Z"
    }]
}

添加服务商账号 Service Account Create

将您在其他服务商的账号绑定到本站, 方便后续进行批量化操作

参数:

请求路径: https://www.90th.cn/api/user/service_account
请求方式: POST
计费方式: 免费
参数名称 数据类型 必填 默认值 可选值/说明
type String - cloudflare, namesilo, godaddy, dnspod, dynadot, cloudns,
openprovider, gcore, aliyun, gname, westcn, spaceship, aiming, dnsla
value Array - 数组最多3个成员, 参考自行抓包结果, 有疑问请咨询客服
例: ["90th@163.com", "ae7adb5057db89a2f0f5", ""]

请求示例 (curl):

curl -X POST "https://www.90th.cn/api/user/service_account" -d "type=cloudflare&value[]=90th@163.com&value[]=ae7adb5057db89a2f0f5&value[]=" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"

返回值示例: JSON UFT-8

{
    "code": 200,
    "msg": "操作成功"
}

删除服务商账号 Service Account Delete

删除已绑定的服务商账号

参数:

请求路径: https://www.90th.cn/api/user/service_account
请求方式: DELETE
计费方式: 免费
参数名称 数据类型 必填 默认值 可选值/说明
id Number - 已绑定的服务商账号ID

请求示例 (curl):

curl -X DELETE "https://www.90th.cn/api/user/service_account?id=1234" -H "Authorization: Bearer xxxxxxxxxxxxxxxx"

返回值示例: JSON UFT-8

{
    "code": 200,
    "msg": "删除成功"
}