Skip to content

Commit

Permalink
Merge pull request #41 from PlayFab/nightly
Browse files Browse the repository at this point in the history
Weekly Versioning PR
  • Loading branch information
zac-playfab committed Jan 25, 2016
2 parents d9131b6 + 89ad491 commit ff428cc
Show file tree
Hide file tree
Showing 8 changed files with 78 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.8.160118";
exports.sdk_version = "0.9.160125";

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

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

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

exports.GetPlayFabIDsFromPSNAccountIDs = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetPlayFabIDsFromPSNAccountIDs", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down Expand Up @@ -973,6 +982,15 @@ exports.GetCharacterLeaderboard = function (request, callback) {
});
};

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

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

exports.GetLeaderboardAroundCharacter = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetLeaderboardAroundCharacter", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down Expand Up @@ -1000,6 +1018,15 @@ exports.GrantCharacterToUser = function (request, callback) {
});
};

exports.UpdateCharacterStatistics = function (request, callback) {

PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/UpdateCharacterStatistics", request, null, null, function (error, result) {

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

exports.GetCharacterData = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetCharacterData", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down
10 changes: 10 additions & 0 deletions PlayFabSdk/PlayFabServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,16 @@ exports.ReportPlayer = function (request, callback) {
});
};

exports.RevokeInventoryItem = function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.DeveloperSecretKey set to call this method";

PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Server/RevokeInventoryItem", request, "X-SecretKey", PlayFab.settings.developerSecretKey, function (error, result) {

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

exports.SubtractCharacterVirtualCurrency = function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.DeveloperSecretKey set to call this method";

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.8.160118",
"version": "0.9.160125",
"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.8.160118";
exports.sdk_version = "0.9.160125";

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

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

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

exports.GetPlayFabIDsFromPSNAccountIDs = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetPlayFabIDsFromPSNAccountIDs", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down Expand Up @@ -973,6 +982,15 @@ exports.GetCharacterLeaderboard = function (request, callback) {
});
};

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

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

exports.GetLeaderboardAroundCharacter = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetLeaderboardAroundCharacter", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down Expand Up @@ -1000,6 +1018,15 @@ exports.GrantCharacterToUser = function (request, callback) {
});
};

exports.UpdateCharacterStatistics = function (request, callback) {

PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/UpdateCharacterStatistics", request, null, null, function (error, result) {

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

exports.GetCharacterData = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Client/GetCharacterData", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, function (error, result) {
Expand Down
10 changes: 10 additions & 0 deletions PlayFabTesting/PlayFabServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,16 @@ exports.ReportPlayer = function (request, callback) {
});
};

exports.RevokeInventoryItem = function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.DeveloperSecretKey set to call this method";

PlayFab.MakeRequest(PlayFab.GetServerUrl() + "/Server/RevokeInventoryItem", request, "X-SecretKey", PlayFab.settings.developerSecretKey, function (error, result) {

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

exports.SubtractCharacterVirtualCurrency = function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.DeveloperSecretKey set to call this method";

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.8.160118",
"version": "0.9.160125",
"description": "Playfab SDK automated testing example",
"license": "Apache-2.0",
"main": "PlayFabApiTests.js",
Expand Down

0 comments on commit ff428cc

Please sign in to comment.