question

Roshaan avatar image
Roshaan asked

How to get user title's join date?

Hi, for some reason I want to get the user's title joining date. As to when did they first got registered with my game. Any idea how to do that?

apissdksTitle Datagame manager
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

·
Seth Du avatar image
Seth Du answered

You can make use of ProfileConstraints in your API calls. In terms of registration date, there is a property named ShowCreated. If you called Client API GetPlayerProfile and ShowCreated was set true, the callback will provide the creation date you want. Here is a sample in Unity/C#:

PlayFabClientAPI.GetPlayerProfile(
	new GetPlayerProfileRequest
	{
		ProfileConstraints = new PlayerProfileViewConstraints
		{
			ShowCreated = true
		}
	},
	onSuccess => { },
	onFail => { }
);

GetPlayerProfile onSuccess callback will not provide additional information unless you manually set them true in the ProfileConstraints.

2 comments
10 |1200

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

Roshaan avatar image Roshaan commented ·

I did what you had shown above but it's giving me an error

Error: Request view constraints not allowed
0 Likes 0 ·
Roshaan avatar image Roshaan Roshaan commented ·

Never mind I resolved it. Found the option under settings tab "Client profile options"

1 Like 1 ·

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.