Get Snap Profile Data
Requesting user data fetches below information
Bitmoji Avatar attached to the logged in profile
Display Name
External ID which is unique and specific to this app scope
SnapchatKitManager.RequestUserData(OnRequestUserDataComplete);Get the details of the user data in the callback
private void OnRequestUserDataComplete(SnapchatUserInfo info, string error)
{
string message = "";
if (string.IsNullOrEmpty (error))
{
message = "Display Name : " + info.DisplayName;
message += " " + "Avatar URL : " + info.BitmojiAvatar;
message += " " + "External ID : " + info.ExternalIdentifier;
}
else
{
message = error;
}
Debug.Log(message);
}Example
Last updated