@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818if ( ! PlayFab . _internalSettings ) {
1919 PlayFab . _internalSettings = {
2020 sessionTicket : null ,
21- sdkVersion : "0.11.160222 " ,
21+ sdkVersion : "0.12.160307 " ,
2222 productionServerUrl : ".playfabapi.com" ,
2323 logicServerUrl : null ,
2424
@@ -236,20 +236,6 @@ PlayFab.ClientApi = {
236236 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LoginWithPlayFab" , request , null , null , overloadCallback ) ;
237237 } ,
238238
239- LoginWithPSN : function ( request , callback ) {
240- request . TitleId = PlayFab . settings . titleId != null ? PlayFab . settings . titleId : request . TitleId ; if ( request . TitleId == null ) throw "Must be have PlayFab.settings.titleId set to call this method" ;
241-
242- var overloadCallback = function ( result , error ) {
243- if ( result != null && result . data . SessionTicket != null ) {
244- PlayFab . _internalSettings . sessionTicket = result . data . SessionTicket ;
245- PlayFab . ClientApi . _MultiStepClientLogin ( result . data . SettingsForUser . NeedsAttribution ) ;
246- }
247- if ( callback != null && typeof ( callback ) == "function" )
248- callback ( result , error ) ;
249- } ;
250- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LoginWithPSN" , request , null , null , overloadCallback ) ;
251- } ,
252-
253239 LoginWithSteam : function ( request , callback ) {
254240 request . TitleId = PlayFab . settings . titleId != null ? PlayFab . settings . titleId : request . TitleId ; if ( request . TitleId == null ) throw "Must be have PlayFab.settings.titleId set to call this method" ;
255241
@@ -264,20 +250,6 @@ PlayFab.ClientApi = {
264250 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LoginWithSteam" , request , null , null , overloadCallback ) ;
265251 } ,
266252
267- LoginWithXbox : function ( request , callback ) {
268- request . TitleId = PlayFab . settings . titleId != null ? PlayFab . settings . titleId : request . TitleId ; if ( request . TitleId == null ) throw "Must be have PlayFab.settings.titleId set to call this method" ;
269-
270- var overloadCallback = function ( result , error ) {
271- if ( result != null && result . data . SessionTicket != null ) {
272- PlayFab . _internalSettings . sessionTicket = result . data . SessionTicket ;
273- PlayFab . ClientApi . _MultiStepClientLogin ( result . data . SettingsForUser . NeedsAttribution ) ;
274- }
275- if ( callback != null && typeof ( callback ) == "function" )
276- callback ( result , error ) ;
277- } ;
278- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LoginWithXbox" , request , null , null , overloadCallback ) ;
279- } ,
280-
281253 RegisterPlayFabUser : function ( request , callback ) {
282254 request . TitleId = PlayFab . settings . titleId != null ? PlayFab . settings . titleId : request . TitleId ; if ( request . TitleId == null ) throw "Must be have PlayFab.settings.titleId set to call this method" ;
283255
@@ -328,12 +300,6 @@ PlayFab.ClientApi = {
328300 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetPlayFabIDsFromKongregateIDs" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
329301 } ,
330302
331- GetPlayFabIDsFromPSNAccountIDs : function ( request , callback ) {
332- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
333-
334- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetPlayFabIDsFromPSNAccountIDs" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
335- } ,
336-
337303 GetPlayFabIDsFromSteamIDs : function ( request , callback ) {
338304 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
339305
@@ -388,24 +354,12 @@ PlayFab.ClientApi = {
388354 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LinkKongregate" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
389355 } ,
390356
391- LinkPSNAccount : function ( request , callback ) {
392- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
393-
394- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LinkPSNAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
395- } ,
396-
397357 LinkSteamAccount : function ( request , callback ) {
398358 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
399359
400360 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LinkSteamAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
401361 } ,
402362
403- LinkXboxAccount : function ( request , callback ) {
404- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
405-
406- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LinkXboxAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
407- } ,
408-
409363 SendAccountRecoveryEmail : function ( request , callback ) {
410364
411365 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/SendAccountRecoveryEmail" , request , null , null , callback ) ;
@@ -453,24 +407,12 @@ PlayFab.ClientApi = {
453407 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UnlinkKongregate" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
454408 } ,
455409
456- UnlinkPSNAccount : function ( request , callback ) {
457- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
458-
459- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UnlinkPSNAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
460- } ,
461-
462410 UnlinkSteamAccount : function ( request , callback ) {
463411 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
464412
465413 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UnlinkSteamAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
466414 } ,
467415
468- UnlinkXboxAccount : function ( request , callback ) {
469- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
470-
471- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UnlinkXboxAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
472- } ,
473-
474416 UpdateUserTitleDisplayName : function ( request , callback ) {
475417 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
476418
@@ -519,6 +461,12 @@ PlayFab.ClientApi = {
519461 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetPlayerStatistics" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
520462 } ,
521463
464+ GetPlayerStatisticVersions : function ( request , callback ) {
465+ if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
466+
467+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetPlayerStatisticVersions" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
468+ } ,
469+
522470 GetUserData : function ( request , callback ) {
523471 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
524472
@@ -801,18 +749,6 @@ PlayFab.ClientApi = {
801749 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UpdateSharedGroupData" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
802750 } ,
803751
804- ConsumePSNEntitlements : function ( request , callback ) {
805- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
806-
807- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/ConsumePSNEntitlements" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
808- } ,
809-
810- RefreshPSNAuthToken : function ( request , callback ) {
811- if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
812-
813- PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/RefreshPSNAuthToken" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
814- } ,
815-
816752 GetCloudScriptUrl : function ( request , callback ) {
817753 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
818754
0 commit comments