question

Darius Vu avatar image
Darius Vu asked

How to get the email verification status in SDK 2.93.200817?

Dear Support Team,

Now I am using Playfab SDK 2.93.200817, but I cannot get the email verification status as the picture below. Although I used the ProfileConstraints and set ShowContactEmailAddresses = true.

 public void GetPlayerProfile(string playFabId)
    {
        PlayFabClientAPI.GetPlayerProfile(new GetPlayerProfileRequest()
        {
            PlayFabId = playFabId,
            ProfileConstraints = new PlayerProfileViewConstraints()
            {
                ShowContactEmailAddresses = true
            }
        },
        result => Debug.Log("The player's DisplayName profile data is: " + result.PlayerProfile.ContactEmailAddresses.VerificationStatus),
        error => Debug.LogError(error.GenerateErrorReport()));
    }

Could you tell me how to get the email verification status?

Thank you so much!!!

sdks
1.png (24.3 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Darius Vu avatar image
Darius Vu answered

I found the reason, because ContactEmailAddresses is the list,we must change like this and it is working.

result.PlayerProfile.ContactEmailAddresses[0].VerificationStatus
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.