Go to file
xiaoyi 920fe645d1 Merge branch 'feat/friend-v3' into release/v3.3.0
# Conflicts:
#	Assembly-CSharp-Editor.csproj
#	Assembly-CSharp.csproj
#	Assets/TapTap/Achievement/Plugins/TapTap.Achievement.dll
#	Assets/TapTap/Achievement/Plugins/TapTap.Achievement.pdb
#	Assets/TapTap/Bootstrap/Plugins/TapTap.Bootstrap.dll
#	Assets/TapTap/Bootstrap/Plugins/TapTap.Bootstrap.pdb
#	Assets/TapTap/Common/Plugins/TapTap.Common.dll
#	Assets/TapTap/Common/Plugins/TapTap.Common.pdb
#	Assets/TapTap/Common/Plugins/iOS/TapTap.Common.dll
#	Assets/TapTap/Common/Plugins/iOS/TapTap.Common.pdb
#	Assets/TapTap/License/Plugins/TapTap.License.dll
#	Assets/TapTap/License/Plugins/TapTap.License.pdb
#	Assets/TapTap/Login/Plugins/TapTap.Login.dll
#	Assets/TapTap/Login/Plugins/TapTap.Login.pdb
#	Assets/TapTap/Moment/Plugins/TapTap.Moment.dll
#	Assets/TapTap/Moment/Plugins/TapTap.Moment.pdb
#	Assets/TapTap/TapDB/Plugins/TapTap.TapDB.dll
#	Assets/TapTap/TapDB/Plugins/TapTap.TapDB.pdb
#	Assets/TapTap/TapDB/Plugins/iOS/TapTap.TapDB.dll
#	Assets/TapTap/TapDB/Plugins/iOS/TapTap.TapDB.pdb
#	ProjectSettings/EditorBuildSettings.asset
#	TapSDK/TapSDK.sln
#	TapSDK2-Unity.sln
#	TapTap.Achievement.Editor.csproj
#	TapTap.Common.Editor.csproj
#	TapTap.Login.Editor.csproj
#	TapTap.Moment.Editor.csproj
#	TapTap.TapDB.Editor.csproj
#	compile.sh
2021-10-15 12:12:47 +08:00
Documentation doc: update login doc 2021-07-15 14:50:20 +08:00
Editor feat: update achievement binary , update tds user get func 2021-07-21 16:45:56 +08:00
Plugins feat: add support fun in common 2021-09-27 10:33:25 +08:00
QRCode feat:add taptap login in PC platform , add compile maxosx unity demo 2021-07-29 14:11:49 +08:00
CHANGELOG.md feat: add taptap login permission 2021-09-06 11:00:42 +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
Editor.meta feat: update achievement binary , update tds user get func 2021-07-21 16:45:56 +08:00
Plugins.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
QRCode.meta feat:add taptap login in PC platform , add compile maxosx unity demo 2021-07-29 14:11:49 +08:00
README.md feat: add taptap login permission 2021-09-06 11:00:42 +08:00
README.md.meta feat(*): update namespace to TapTap.ModuleName 2021-04-07 16:20:41 +08:00
VERSIONNOTE.md feat: update gh draft message 2021-09-01 12:00:32 +08:00
VERSIONNOTE.md.meta feat: update release native binary 2021-06-10 11:12:59 +08:00
package.json feat: add taptap login permission 2021-09-06 11:00:42 +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、TapCommon 这 2 个模块,并按照如下的流程来接入:

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