Go to file
xiaoyi ffc72d2749 feat: add ios testqualification, update login readme 2021-07-15 14:47:02 +08:00
Documentation feat: add ios testqualification, update login readme 2021-07-15 14:47:02 +08:00
Plugins feat: add ios testqualification, update login readme 2021-07-15 14:47:02 +08:00
CHANGELOG.md feat: login scene add testqualification case 2021-07-15 14:24:11 +08:00
CHANGELOG.md.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
Documentation.meta build(package): update unitypackage name 2021-04-08 11:43:43 +08:00
Plugins.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
README.md feat: add ios testqualification, update login readme 2021-07-15 14:47:02 +08:00
README.md.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
VERSIONNOTE.md Merge branch 'develop/2.x' into feat/tdsuser 2021-07-15 11:49:07 +08:00
VERSIONNOTE.md.meta feat: update release native binary 2021-06-10 11:12:59 +08:00
package.json Merge branch 'develop/2.x' into feat/tdsuser 2021-07-15 11:49:07 +08:00
package.json.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00

README.md

TapTap.Login

使用前提

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

如果开发者在游戏中同时接入了多家第三方例如支持苹果、微信、Facebook 等账户登录),只把 TapTap 当成一个普通的登录渠道,那么在客户端可以只依赖 TapLogin 这一个模块,并按照如下的流程来接入:

1.初始化

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

TapLogin.Init(string clientID);

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

登陆成功之后,会返回 AccessToken

var accessToken = await TapLogin.Login();

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();