Table of Contents

> Token object

以下objects与token API直接相关。

令牌

令牌 object 具有以下属性。

属性 数据类型 描述
tokenid string (只读) 令牌的ID。
name
(required)
string 令牌的名称。
description text 令牌的描述。
userid string (更新时只读) 令牌分配的用户。

默认值:当前用户。
lastaccess timestamp (只读) 令牌最近一次认证的日期和时间。

如果令牌从未被认证过,则为零。
status integer 令牌状态。

可能的值:
0 - (默认) 启用的令牌;
1 - 禁用的令牌。
expires_at timestamp 令牌的过期日期和时间。

对于永不过期的令牌,为零。
created_at timestamp (只读) 令牌的创建日期和时间。
creator_userid string (只读) 令牌的创建者用户。

请注意,对于某些方法(更新、删除),所需/可选参数的组合是不同的。