question

playfab-9 avatar image
playfab-9 asked

How can I retrieve a player's contact email address with GetPlayerProfile?,How to get contact email address with GetPlayerProfile?

Email is present in the player's title profile:

Setting has been checked for showing contact email address:

The request is working because I get a response and toggling the ShowDisplayName and ShowBannedUntil is working as expected, but ShowContactEmailAdressess never return the email.

Request

{
	"PlayFabId": "A08F868DF1931A30",
	"ProfileConstraints" : 
		{
			"ShowDisplayName" : "True",
			"ShowContactEmailAdresses" : "True",
			"ShowBannedUntil" : "True"
		}
}

Response

{
    "code": 200,
    "status": "OK",
    "data": {
        "PlayerProfile": {
            "PublisherId": "3A29534566632305",
            "TitleId": "5F54",
            "PlayerId": "A08F868DF1931A30",
            "BannedUntil": "2019-03-10T03:48:44.644Z",
            "DisplayName": "Test"
        }
    }
}

Which step(s) am I missing here? Thanks in advance!

contactemail.png (67.9 KiB)
profilesettings.png (36.2 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

·
Andy avatar image
Andy answered

There's two d's in Addresses :) Request should be:

{

	"PlayFabId": "A08F868DF1931A30",
	"ProfileConstraints" :
 		{
			"ShowDisplayName" : "True",
			"ShowContactEmailAddresses" : "True",
			"ShowBannedUntil" : "True"
		}
}
1 comment
10 |1200

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

playfab-9 avatar image playfab-9 commented ·

LOL. Thanks Andy

0 Likes 0 ·

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.