| POST https://titleId.playfabapi.com/Match/CreateMatchmakingTicket |
|
| | How to do a Game "LEVEL": "Expert_Level" for Matchmaking Ticket ??????? |
|
|
|
|
| | var xhr = new XMLHttpRequest(); | xhr.open("POST", completeUrl, true); | xhr.setRequestHeader("Content-Type", "application/json"); | xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-1.63.200402"); |
| | xhr.onloadend = function () {var result = JSON.parse(xhr.responseText);} |
|
| | xhr.send(requestBody); | xhr.onreadystatechange = function () { | if(this.readyState === 4) {var xhrResult = JSON.parse(xhr.responseText); | if (this.status === 200) { | console.log("------- xhrResult -------"); | console.log(xhrResult); | return true; | } else { | console.log("------- xhrResult ERROR ------"); | return false; | } | } | }; |
|
|
|
| |/* --------------- Quick Match: --------------- */ | | "Player_Match" | |/* ---------- Entry Level Matches ----------- */ | | "Master_Level" | "Expert_Level" | "Candidate_Level" | "Beginner_Level" |
|
|
|
|
|
| | /* --------------- Request Body xhr.send(requestBody) --------------- */ | | >>>>> #1 | { "Creator": { | "Objects": [ { "ObjectName": "playerSkill", "DataObject": { "skillDetail": { "LEVEL": "Expert_Level" } } } ], | "Entity": { "Id": "A8140AB9109712B", "Type": "title_player_account", "TypeString": "title_player_account" } | }, | "GiveUpAfterSeconds": 120, | "MembersToMatchWith": [], | "QueueName": "QuickMatch_2_Player" | } | | OR >>>>> #2 | { | "Creator":"PlayFabId", | "GiveUpAfterSeconds": 120, | "MembersToMatchWith": [ "Type": "StringEqualityRule", "Attribute": { "Path":"Expert_Level", "Source": "User", } } ], | "QueueName": "QuickMatch_2_Player" | } | | OR >>>>> #3 | { | "Creator":"PlayFabId", | "GiveUpAfterSeconds": 120, | "MembersToMatchWith": [ {"AttributeNotSpecifiedBehavior":"UseDefault","Weight": 1, "Name": "Expert_Level"} ], | "QueueName": "QuickMatch_2_Player" | } | | OR >>>>> #4 | { | "Creator":"PlayFabId", | "GiveUpAfterSeconds": 120, | "MembersToMatchWith": [{Level:"Expert_Level"}]], | "QueueName": "QuickMatch_2_Player" | }