@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121if ( ! PlayFab . _internalSettings ) {
2222 PlayFab . _internalSettings = {
2323 entityToken : null ,
24- sdkVersion : "1.30.180906 " ,
24+ sdkVersion : "1.31.180917 " ,
2525 requestGetParams : {
26- sdk : "JavaScriptSDK-1.30.180906 "
26+ sdk : "JavaScriptSDK-1.31.180917 "
2727 } ,
2828 sessionTicket : null ,
29+ verticalName : null , // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930 productionServerUrl : ".playfabapi.com" ,
3031 errorTitleId : "Must be have PlayFab.settings.titleId set to call this method" ,
3132 errorLoggedIn : "Must be logged in to call this method" ,
3233 errorEntityToken : "You must successfully call GetEntityToken before calling this" ,
3334 errorSecretKey : "Must have PlayFab.settings.developerSecretKey set to call this method" ,
3435
3536 GetServerUrl : function ( ) {
36- return "https://" + PlayFab . settings . titleId + PlayFab . _internalSettings . productionServerUrl ;
37+ if ( ! ( PlayFab . _internalSettings . productionServerUrl . substring ( 0 , 4 ) === "http" ) ) {
38+ if ( PlayFab . _internalSettings . verticalName ) {
39+ return "https://" + PlayFab . _internalSettings . verticalName + PlayFab . _internalSettings . productionServerUrl ;
40+ } else {
41+ return "https://" + PlayFab . settings . titleId + PlayFab . _internalSettings . productionServerUrl ;
42+ }
43+ } else {
44+ return PlayFab . _internalSettings . productionServerUrl ;
45+ }
3746 } ,
3847
3948 InjectHeaders : function ( xhr , headersObj ) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157}
149158
150159PlayFab . buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1" ;
151- PlayFab . sdkVersion = "1.30.180906 " ;
160+ PlayFab . sdkVersion = "1.31.180917 " ;
152161PlayFab . GenerateErrorReport = function ( error ) {
153162 if ( error == null )
154163 return "" ;
@@ -320,6 +329,11 @@ PlayFab.AdminApi = {
320329 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/GetMatchmakerGameModes" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
321330 } ,
322331
332+ GetMatchmakingQueue : function ( request , callback , customData , extraHeaders ) {
333+ if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
334+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/GetMatchmakingQueue" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
335+ } ,
336+
323337 GetPlayedTitleList : function ( request , callback , customData , extraHeaders ) {
324338 if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
325339 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/GetPlayedTitleList" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
@@ -475,6 +489,11 @@ PlayFab.AdminApi = {
475489 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/IncrementPlayerStatisticVersion" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
476490 } ,
477491
492+ ListMatchmakingQueues : function ( request , callback , customData , extraHeaders ) {
493+ if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
494+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/ListMatchmakingQueues" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
495+ } ,
496+
478497 ListServerBuilds : function ( request , callback , customData , extraHeaders ) {
479498 if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
480499 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/ListServerBuilds" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
@@ -500,6 +519,11 @@ PlayFab.AdminApi = {
500519 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/RefundPurchase" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
501520 } ,
502521
522+ RemoveMatchmakingQueue : function ( request , callback , customData , extraHeaders ) {
523+ if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
524+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/RemoveMatchmakingQueue" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
525+ } ,
526+
503527 RemovePlayerTag : function ( request , callback , customData , extraHeaders ) {
504528 if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
505529 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/RemovePlayerTag" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
@@ -570,6 +594,11 @@ PlayFab.AdminApi = {
570594 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/SetCatalogItems" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
571595 } ,
572596
597+ SetMatchmakingQueue : function ( request , callback , customData , extraHeaders ) {
598+ if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
599+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/SetMatchmakingQueue" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
600+ } ,
601+
573602 SetPlayerSecret : function ( request , callback , customData , extraHeaders ) {
574603 if ( ! PlayFab . settings . developerSecretKey ) throw PlayFab . _internalSettings . errorSecretKey ;
575604 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Admin/SetPlayerSecret" , request , "X-SecretKey" , PlayFab . settings . developerSecretKey , callback , customData , extraHeaders ) ;
0 commit comments