Skip to content

Commit 5606b6a

Browse files
committed
Merge pull request #36 from PlayFab/nightly
Weekly Versioning PR
2 parents edad69e + c2fb8ae commit 5606b6a

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

PlayFabSDK/PlayFabAdminApi.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.8.160125",
21+
sdkVersion: "0.9.160201",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

@@ -357,8 +357,9 @@ PlayFab.AdminApi = {
357357
},
358358

359359
GetServerBuildInfo: function (request, callback) {
360+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
360361

361-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetServerBuildInfo", request, null, null, callback);
362+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetServerBuildInfo", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
362363
},
363364

364365
GetServerBuildUploadUrl: function (request, callback) {

PlayFabSDK/PlayFabClientApi.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.8.160125",
21+
sdkVersion: "0.9.160201",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

@@ -855,8 +855,9 @@ PlayFab.ClientApi = {
855855
},
856856

857857
UpdateCharacterStatistics: function (request, callback) {
858+
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
858859

859-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UpdateCharacterStatistics", request, null, null, callback);
860+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UpdateCharacterStatistics", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
860861
},
861862

862863
GetCharacterData: function (request, callback) {

PlayFabSDK/PlayFabMatchmakerApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.8.160125",
21+
sdkVersion: "0.9.160201",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

PlayFabSDK/PlayFabServerApi.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.8.160125",
21+
sdkVersion: "0.9.160201",
2222
productionServerUrl: ".playfabapi.com",
2323
logicServerUrl: null,
2424

@@ -278,6 +278,12 @@ PlayFab.ServerApi = {
278278
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/AddUserVirtualCurrency", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
279279
},
280280

281+
ConsumeItem: function (request, callback) {
282+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
283+
284+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/ConsumeItem", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
285+
},
286+
281287
GetCharacterInventory: function (request, callback) {
282288
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
283289

0 commit comments

Comments
 (0)