From f8bc5c8343c96e3319b550d98b8b415c912a96b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E6=8C=AF=E5=AE=87?= Date: Thu, 15 Jul 2021 06:04:16 +0000 Subject: [PATCH] doc: TDSUser --- Documentation/README.md | 13 +++++++++++-- README.md | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/Documentation/README.md b/Documentation/README.md index 2184795..80a7e76 100644 --- a/Documentation/README.md +++ b/Documentation/README.md @@ -49,24 +49,33 @@ TapBootstrap.Init(config); > 登陆成功之后,都会得到一个 `TDSUser` 实例 -#### 使用 TapTap OAuth 授权结果直接登陆账户系统 +#### 使用 TapTap OAuth 授权结果直接登陆/注册账户系统 ```c# var tdsUser = await TDSUser.LoginWithTapTap(); ``` #### 游客登陆 + ```c# var tdsUser = await TDSUser.LoginAnonymously(); ``` -#### 绑定第三方平台账号 +#### 使用第三方平台授权登录/注册账户 + ```c# var tdsUser = await TDSUser.LoginWithAuthData(Dictionary authData, string platform, LCUserAuthDataLoginOption option = null); ``` +#### 绑定第三方平台授权 + +```c# +await TDSUser.AssociateAuthData(Dictionary authData, string platform); +``` + #### 退出登陆 + ```c# TDSUser.Logout(); ``` diff --git a/README.md b/README.md index 574cc67..f73a2d9 100644 --- a/README.md +++ b/README.md @@ -49,24 +49,33 @@ TapBootstrap.Init(config); > 登陆成功之后,都会得到一个 `TDSUser` 实例 -#### 使用 TapTap OAuth 授权结果直接登陆账户系统 +#### 使用 TapTap OAuth 授权结果直接登陆/注册账户系统 ```c# var tdsUser = await TDSUser.LoginWithTapTap(); ``` #### 游客登陆 + ```c# var tdsUser = await TDSUser.LoginAnonymously(); ``` -#### 绑定第三方平台账号 +#### 使用第三方平台授权登录/注册账户 + ```c# var tdsUser = await TDSUser.LoginWithAuthData(Dictionary authData, string platform, LCUserAuthDataLoginOption option = null); ``` +#### 绑定第三方平台授权 + +```c# +await TDSUser.AssociateAuthData(Dictionary authData, string platform); +``` + #### 退出登陆 + ```c# TDSUser.Logout(); ```