Hello, I must to create queue at realtime , but why api Matchmaking Admin - Set Matchmaking Queue doesn't work?
I get every time this message "Only title entities can call this API". What is the mean?
Hello, I must to create queue at realtime , but why api Matchmaking Admin - Set Matchmaking Queue doesn't work?
I get every time this message "Only title entities can call this API". What is the mean?
I solved, how get EntityToken ftom Title
string url = "https://7DCFA.playfabapi.com/Authentication/GetEntityToken"; string json = JsonConvert.SerializeObject(new GetEntityTokenRequest()); StringContent content = new StringContent(json, Encoding.UTF8, "application/json"); HttpClient client = new HttpClient(); client.DefaultRequestHeaders.Add("X-SecretKey", "SecretKey"); string s = await (await client.PostAsync(url, content)).Content.ReadAsStringAsync(); var token = JsonConvert.DeserializeObject<Responses.GetEntityTokenResponse>(s);
Or so
PlayFabApiSettings instanceSetting = new PlayFabApiSettings { TitleId = "TitleId", }; instanceSetting.DeveloperSecretKey = "SecretKey"; PlayFabSettings.TitleId = "TitleId"; var clientAPIInstance = new PlayFabClientInstanceAPI(instanceSetting); var titleEntityResponse = await PlayFabAuthenticationAPI.GetEntityTokenAsync(new GetEntityTokenRequest(), null, new Dictionary<string, string> { { "X-SecretKey","SecretKey" }});
You need to get a title entity token to call this API. To get a title entity token, you can use title secret key to call GetEntityToken API.
10 People are following this question.