Is there a way to get the user contact email verification status through an Api call? If so, which api/s call/s?
Thanks!
Answer by SethDu · Sep 17, 2019 at 08:17 AM
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.
Answer by countinglampposts · Jun 05, 2020 at 02:01 AM
@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
Answer by Dan Kardell · Jan 12 at 02:45 AM
@SethDu How do you re-send this if the user does not get it or delete it by mistake?
Getting Profile Language 1 Answer
How can I convert the timezone in PlayFab? 1 Answer
Multiple contact emails? 1 Answer
Understanding the limits... 1 Answer