@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818if ( ! PlayFab . _internalSettings ) {
1919 PlayFab . _internalSettings = {
2020 sessionTicket : null ,
21- sdkVersion : "0.6.151210 " ,
21+ sdkVersion : "0.7.160118 " ,
2222 productionServerUrl : ".playfabapi.com" ,
2323 logicServerUrl : null ,
2424
@@ -483,6 +483,12 @@ PlayFab.ClientApi = {
483483 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetFriendLeaderboardAroundCurrentUser" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
484484 } ,
485485
486+ GetFriendLeaderboardAroundPlayer : function ( request , callback ) {
487+ if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
488+
489+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetFriendLeaderboardAroundPlayer" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
490+ } ,
491+
486492 GetLeaderboard : function ( request , callback ) {
487493 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
488494
@@ -495,6 +501,12 @@ PlayFab.ClientApi = {
495501 PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetLeaderboardAroundCurrentUser" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
496502 } ,
497503
504+ GetLeaderboardAroundPlayer : function ( request , callback ) {
505+ if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
506+
507+ PlayFab . _internalSettings . ExecuteRequest ( PlayFab . _internalSettings . GetServerUrl ( ) + "/Client/GetLeaderboardAroundPlayer" , request , "X-Authorization" , PlayFab . _internalSettings . sessionTicket , callback ) ;
508+ } ,
509+
498510 GetUserData : function ( request , callback ) {
499511 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
500512
@@ -888,6 +900,7 @@ PlayFab.ClientApi = {
888900 if ( PlayFab . _internalSettings . sessionTicket == null ) throw "Must be logged in to call this method" ;
889901
890902 var overloadCallback = function ( result , error ) {
903+ // Modify advertisingIdType: Prevents us from sending the id multiple times, and allows automated tests to determine id was sent successfully
891904 PlayFab . settings . advertisingIdType += "_Successful" ;
892905
893906 if ( callback != null && typeof ( callback ) == "function" )
0 commit comments