Skip to content

Commit 38d379c

Browse files
author
Playfab Jenkins Bot
committed
Automated build from Jenkins
1 parent edad69e commit 38d379c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

PlayFabSDK/PlayFabServerApi.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)