Is there a way to get the user contact email verification status through an Api call? If so, which api/s call/s?
Thanks!
Is there a way to get the user contact email verification status through an Api call? If so, which api/s call/s?
Thanks!
Yes, you can add ProfileConstraintsin the request when calling GetPlayerProfile, for example:
{ "PlayFabId": "***********", "ProfileConstraints":{ "ShowContactEmailAddresses": true } }
The successful callback will be like:
{ "code": 200, "status": "OK", "data": { "PlayerProfile": { "PublisherId": "***********", "TitleId": "****", "PlayerId": "***********", "ContactEmailAddresses": [ { "Name": "Primary", "EmailAddress": "***********", "VerificationStatus": "Pending" } ] } } }
As you can see the VerificationStatus is provided in the response.
@SethDu I am finding that the API call results are no longer including a VerificationStatus field. The Name and EmailAddress fields are populated, but VerificationStatus is simply missing. Whats going on? Is this a playfab bug? This was working when I first implemented the system.
@countinglampposts the ans to your question is use result.PlayerProfile.ContactEmailAddress[0].VerificationStatus
if i am thinking right
I think Akarsh jain got the point. I don't see this behavior in my testing results. If you are uncertain the contained information in response, I suggest try it via Postman first. Postman (REST) SDK - PlayFab | Microsoft Docs
@SethDu How do you re-send this if the user does not get it or delete it by mistake?
4 People are following this question.