920fe645d1
# 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 |
||
---|---|---|
Documentation | ||
Editor | ||
Plugins | ||
QRCode | ||
CHANGELOG.md | ||
CHANGELOG.md.meta | ||
Documentation.meta | ||
Editor.meta | ||
Plugins.meta | ||
QRCode.meta | ||
README.md | ||
README.md.meta | ||
VERSIONNOTE.md | ||
VERSIONNOTE.md.meta | ||
package.json | ||
package.json.meta |
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();