@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
18
18
if ( ! PlayFab . _internalSettings ) {
19
19
PlayFab . _internalSettings = {
20
20
sessionTicket : null ,
21
- sdkVersion : "0.11.160222 " ,
21
+ sdkVersion : "0.12.160307 " ,
22
22
productionServerUrl : ".playfabapi.com" ,
23
23
logicServerUrl : null ,
24
24
@@ -236,20 +236,6 @@ PlayFab.ClientApi = {
236
236
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LoginWithPlayFab" , request , null , null , overloadCallback ) ;
237
237
} ,
238
238
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
-
253
239
LoginWithSteam : function ( request , callback ) {
254
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" ;
255
241
@@ -264,20 +250,6 @@ PlayFab.ClientApi = {
264
250
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LoginWithSteam" , request , null , null , overloadCallback ) ;
265
251
} ,
266
252
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
-
281
253
RegisterPlayFabUser : function ( request , callback ) {
282
254
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" ;
283
255
@@ -328,12 +300,6 @@ PlayFab.ClientApi = {
328
300
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetPlayFabIDsFromKongregateIDs" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
329
301
} ,
330
302
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
-
337
303
GetPlayFabIDsFromSteamIDs : function ( request , callback ) {
338
304
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
339
305
@@ -388,24 +354,12 @@ PlayFab.ClientApi = {
388
354
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LinkKongregate" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
389
355
} ,
390
356
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
-
397
357
LinkSteamAccount : function ( request , callback ) {
398
358
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
399
359
400
360
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/LinkSteamAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
401
361
} ,
402
362
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
-
409
363
SendAccountRecoveryEmail : function ( request , callback ) {
410
364
411
365
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/SendAccountRecoveryEmail" , request , null , null , callback ) ;
@@ -453,24 +407,12 @@ PlayFab.ClientApi = {
453
407
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UnlinkKongregate" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
454
408
} ,
455
409
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
-
462
410
UnlinkSteamAccount : function ( request , callback ) {
463
411
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
464
412
465
413
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UnlinkSteamAccount" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
466
414
} ,
467
415
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
-
474
416
UpdateUserTitleDisplayName : function ( request , callback ) {
475
417
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
476
418
@@ -519,6 +461,12 @@ PlayFab.ClientApi = {
519
461
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetPlayerStatistics" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
520
462
} ,
521
463
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
+
522
470
GetUserData : function ( request , callback ) {
523
471
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
524
472
@@ -801,18 +749,6 @@ PlayFab.ClientApi = {
801
749
PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/UpdateSharedGroupData" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
802
750
} ,
803
751
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
-
816
752
GetCloudScriptUrl : function ( request , callback ) {
817
753
if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
818
754
0 commit comments