Skip to content

Commit

Permalink
Merge pull request #39 from PlayFab/master
Browse files Browse the repository at this point in the history
Weekly SDK Publish
  • Loading branch information
Paul Gilmore committed Jan 18, 2016
2 parents e316209 + d9131b6 commit 25b29d1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PlayFabSdk/PlayFab.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var url = require("url");
var https = require("https");

exports.sdk_version = "0.7.151210";
exports.sdk_version = "0.8.160118";

var settings = exports.settings = {
useDevEnv: false,
Expand Down
18 changes: 18 additions & 0 deletions PlayFabSdk/PlayFabClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@ exports.GetFriendLeaderboardAroundCurrentUser = function (request, callback) {
});
};

exports.GetFriendLeaderboardAroundPlayer = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetFriendLeaderboardAroundPlayer", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {

if (callback != null)
callback(error, result);
});
};

exports.GetLeaderboard = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetLeaderboard", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand All @@ -486,6 +495,15 @@ exports.GetLeaderboardAroundCurrentUser = function (request, callback) {
});
};

exports.GetLeaderboardAroundPlayer = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetLeaderboardAroundPlayer", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {

if (callback != null)
callback(error, result);
});
};

exports.GetUserData = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetUserData", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playfab-sdk",
"version": "0.7.151210",
"version": "0.8.160118",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"main": "main.js",
Expand Down
2 changes: 1 addition & 1 deletion PlayFabTesting/PlayFab.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var url = require("url");
var https = require("https");

exports.sdk_version = "0.7.151210";
exports.sdk_version = "0.8.160118";

var settings = exports.settings = {
useDevEnv: false,
Expand Down
18 changes: 18 additions & 0 deletions PlayFabTesting/PlayFabClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,15 @@ exports.GetFriendLeaderboardAroundCurrentUser = function (request, callback) {
});
};

exports.GetFriendLeaderboardAroundPlayer = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetFriendLeaderboardAroundPlayer", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {

if (callback != null)
callback(error, result);
});
};

exports.GetLeaderboard = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetLeaderboard", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand All @@ -486,6 +495,15 @@ exports.GetLeaderboardAroundCurrentUser = function (request, callback) {
});
};

exports.GetLeaderboardAroundPlayer = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetLeaderboardAroundPlayer", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {

if (callback != null)
callback(error, result);
});
};

exports.GetUserData = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetUserData", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down
2 changes: 1 addition & 1 deletion PlayFabTesting/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playfab-testing",
"version": "0.7.151210",
"version": "0.8.160118",
"description": "Playfab SDK automated testing example",
"license": "Apache-2.0",
"main": "PlayFabApiTests.js",
Expand Down

0 comments on commit 25b29d1

Please sign in to comment.