# Account

## &#x20;登陆（获取Token）

<mark style="color:green;">`POST`</mark> `https://dler.cloud/api/v1/login`

#### Request Body

| Name                                     | Type   | Description                  |
| ---------------------------------------- | ------ | ---------------------------- |
| email<mark style="color:red;">\*</mark>  | String |                              |
| passwd<mark style="color:red;">\*</mark> | String |                              |
| token\_expire                            | Number | Unit: days (default 30 days) |

{% tabs %}
{% tab title="200 " %}

```
{
	"ret": 200,
	"msg": "success",
	"data": {
		"token": "access_token",
		"token_expire": "9999-99-99 99:99:99",
		"plan": "Enterprise Licenses",
		"plan_time": "9999-99-99 99:99:99",
		"money": "0.00",
		"aff_money": "0.00",
		"today_used": "99GB",
		"used": "500GB",
		"unused": "524GB",
		"traffic": "1TB",
		"integral": 49 / 50
	}
}
```

{% endtab %}
{% endtabs %}

## &#x20;注销 (删除Token)

<mark style="color:green;">`POST`</mark> `https://dler.cloud/api/v1/logout`

#### Request Body

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| access\_token<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## &#x20;用户信息

<mark style="color:green;">`POST`</mark> `https://dler.cloud/api/v1/information`

#### Request Body

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| access\_token<mark style="color:red;">\*</mark> | String |             |

{% tabs %}
{% tab title="200 " %}

```
{
	"ret": 200,
	"msg": "success",
	"data": {
		"plan": "Enterprise Licenses",
		"plan_time": "9999-99-99 99:99:99",
		"money": "27159.35",
		"aff_money": "0.00",
		"today_used": "99GB",
		"used": "500GB",
		"unused": "524GB",
		"traffic": "1TB",
		"integral": 49 / 50
	}
}
```

{% endtab %}
{% endtabs %}

## &#x20;试试手气

<mark style="color:green;">`POST`</mark> `https://dler.cloud/api/v1/checkin`

#### Request Body

| Name                                            | Type   | Description |
| ----------------------------------------------- | ------ | ----------- |
| access\_token<mark style="color:red;">\*</mark> | String |             |
| multiple                                        | Number |             |

{% tabs %}
{% tab title="200 " %}

```
{
	"ret": 200,
	"msg": "success",
	"data": {
		"checkin": "增加了 999 MB 流量.",
		"today_used": "99GB",
		"used": "500GB",
		"unused": "524GB",
		"traffic": "1TB"
	}
}
```

{% endtab %}
{% endtabs %}
