init With OAuth
suspend fun initWithOAuth(clientId: String, clientSecret: String, config: OAuthConfig): FursuitTvSdk
Deprecated
Use the new initialization pattern: create SDK instance first, then call auth.initOAuth()
Replace with
FursuitTvSdk(clientId, clientSecret).apply { runBlocking { auth.initOAuth(config) } }Content copied to clipboard
使用 OAuth 2.0 初始化 SDK(静态方法)
Return
FursuitTvSdk 实例
Parameters
client Id
客户端 ID(格式 vap_xxxx)
client Secret
客户端密钥
config
OAuth 配置