question

jaran avatar image
jaran asked

unreal c++ InfoRequestParameters

Trying to figure out how to set the request.InfoRequest parameters in c++ to return the players profile for a login with custom id request. Anyone know the syntax.

Also is there by any chance a thorough example unreal c++ project

PlayFab::ClientModels::FLoginWithCustomIDRequest request;
	request.CustomId = FGenericPlatformMisc::GetDeviceId(); //TEXT("GettingStartedGuide");
	request.Createrequest.InfoRequestParameters = ?????
	request.InfoRequestParameters->GetPlayerProfile = true;
10 |1200

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

jaran avatar image
jaran answered

Figured it out...have to call makeshared. Really need a full featured ue4 example. If anyone knows of one please let me know.

PlayFab::ClientModels::FLoginWithCustomIDRequest request;
	request.CustomId = FGenericPlatformMisc::GetDeviceId(); //TEXT("GettingStartedGuide");
	request.CreateAccount = true;
	request.InfoRequestParameters = MakeShared<PlayFab::ClientModels::FGetPlayerCombinedInfoRequestParams>();
	request.InfoRequestParameters->GetPlayerProfile = true;
10 |1200

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

Seth Du avatar image
Seth Du answered

InfoRequestParameters is a property defined by PlayFab, whose type is GetPlayerCombinedInfoRequestParams. Usually the definition is included in the SDK. You may refer to the documentation to check the properties of GetPlayerCombinedInfoRequestParams on https://docs.microsoft.com/zh-cn/rest/api/playfab/client/authentication/loginwithcustomid?view=playfab-rest#getplayercombinedinforequestparams

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.