TokenExchangeRequest

@Serializable
data class TokenExchangeRequest(val clientId: String, val clientSecret: String)

签名交换请求,用于获取 apiKey/accessToken。

VDS 认证系统使用三种类型的凭证:

  1. 应用凭证 (App Credentials) - clientId + clientSecret

  2. 平台签名 (Platform Signature) - 通过 /api/auth/token 获取

  3. OAuth 用户令牌 (OAuth User Token) - 通过 OAuth 2.0 授权码流程获取

Parameters

clientId

应用 ID(格式 vap_xxxx),SDK 统一使用 clientId 命名,与 VDS 文档中的 appId 等价

clientSecret

应用密钥

Constructors

Link copied to clipboard
constructor(clientId: String, clientSecret: String)

Properties

Link copied to clipboard
@SerialName(value = "clientId")
val clientId: String
Link copied to clipboard
@SerialName(value = "clientSecret")
val clientSecret: String