Go to file
ci-gitlab 45935e841b feat:update upm 2023-11-08 10:47:35 +08:00
Documentation feat:update upm 2023-11-08 10:47:35 +08:00
Mobile feat:update upm 2023-11-08 10:47:35 +08:00
Plugins feat:update upm 2023-11-08 10:47:35 +08:00
Runtime feat:update upm 2023-11-08 10:47:35 +08:00
Standalone feat:update upm 2023-11-08 10:47:35 +08:00
CHANGELOG.md feat:update upm 2023-11-08 10:47:35 +08:00
CHANGELOG.md.meta feat:update upm 2023-11-08 10:47:35 +08:00
Documentation.meta feat:update upm 2023-11-08 10:47:35 +08:00
Mobile.meta feat:update upm 2023-11-08 10:47:35 +08:00
PC.md feat:update upm 2023-11-08 10:47:35 +08:00
PC.md.meta feat:update upm 2023-11-08 10:47:35 +08:00
Plugins.meta feat:update upm 2023-11-08 10:47:35 +08:00
README.md feat:update upm 2023-11-08 10:47:35 +08:00
README.md.meta feat:update upm 2023-11-08 10:47:35 +08:00
Runtime.meta feat:update upm 2023-11-08 10:47:35 +08:00
Standalone.meta feat:update upm 2023-11-08 10:47:35 +08:00
VERSIONNOTE.md feat:update upm 2023-11-08 10:47:35 +08:00
VERSIONNOTE.md.meta feat:update upm 2023-11-08 10:47:35 +08:00
package.json feat:update upm 2023-11-08 10:47:35 +08:00
package.json.meta feat:update upm 2023-11-08 10:47:35 +08:00

README.md

TapTap.Login

使用前提

使用 TapTap.Login 前提是必须依赖以下库:

如果游戏需要支持 PC Platform ,则参考 PC配置文档

1.初始化

如果配合 TapBoostrap 使用,则不需要调用初始化接口

TapLogin.Init(string clientID);

2.唤起 TapTap 网页 或者 TapTap 客户端进行登陆

登陆成功之后,会返回 AccessToken

var accessToken = await TapLogin.Login();

配置权限范围

// 默认使用 public_profile

var accessToken = await TapLogin.Login(new []{"public_profile"})
;

3. 获取 TapTap AccessToken

var accessToken = await TapLogin.GetAccessToken();

4. 获取 TapTap Profile

var profile = await TapLogin.FetchProfile();

5. 获取篝火测试资格

var boolean = await TapLogin.GetTestQualification();

6. 退出登陆

TapLogin.Logout();