This is a follow up to the question I have already asked in How do I use a unique displayname of a user to get his profile or playfabID ?, the suggestion I received there was great but it uses the Client API but I want something that uses Admin API or the Server API since I will be handling it in the server.
I tried the following code it did not work
PlayFab.ServerModels.GetUserAccountInfoRequest request = new PlayFab.ServerModels.GetUserAccountInfoRequest
{
PlayFabId = "Theactualdisplayname"
};
PlayFabResult<PlayFab.ServerModels.GetUserAccountInfoResult> result = await serverAPI.GetUserAccountInfoAsync(request);
and this also
PlayFab.ServerModels.GetPlayerProfileRequest profileRequest = new PlayFab.ServerModels.GetPlayerProfileRequest
{
PlayFabId = "Theactualdisplayname"
};
PlayFabResult<PlayFab.ServerModels.GetPlayerProfileResult> profileResult = await serverAPI.GetPlayerProfileAsync(profileRequest);
Neither of them work by using TitleDisplayName they'd require a PlayFabID kindly suggest me an API that I can use over the server that takes title name in the request of a player and gives back the avatar URL