类 TokenInfo.Builder
java.lang.Object
com.lark.oapi.service.authen.v1.model.TokenInfo.Builder
- 封闭类:
TokenInfo
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明accessToken(String accessToken) user_access_token,用于获取用户资源和访问某些open apibuild()`access_token`的有效期,单位: 秒,一般是两个小时左右,需要以返回结果为准refreshExpiresIn(Integer refreshExpiresIn) `refresh_token` 的有效期,单位: 秒,一般是30天左右,需要以返回结果为准refreshToken(String refreshToken) 刷新用户 `access_token` 时使用的 token用户授予app的权限全集token 类型,固定值
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
accessToken
user_access_token,用于获取用户资源和访问某些open api示例值:u-5Dak9ZAxJ9tFUn8MaTD_BFM51FNdg5xzO0y010000HWb
- 参数:
accessToken-- 返回:
-
refreshToken
刷新用户 `access_token` 时使用的 token示例值:ur-6EyFQZyplb9URrOx5NtT_HM53zrJg59HXwy040400G.e
- 参数:
refreshToken-- 返回:
-
tokenType
token 类型,固定值示例值:Bearer
- 参数:
tokenType-- 返回:
-
expiresIn
`access_token`的有效期,单位: 秒,一般是两个小时左右,需要以返回结果为准示例值:7199
- 参数:
expiresIn-- 返回:
-
refreshExpiresIn
`refresh_token` 的有效期,单位: 秒,一般是30天左右,需要以返回结果为准示例值:2591999
- 参数:
refreshExpiresIn-- 返回:
-
scope
用户授予app的权限全集示例值:auth:user.id:read bitable:app
- 参数:
scope-- 返回:
-
build
-