Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#171127
Browse files Browse the repository at this point in the history
  • Loading branch information
playfabjenkinsbot committed Nov 28, 2017
2 parents 25517e1 + 8742d94 commit 859c11c
Show file tree
Hide file tree
Showing 11 changed files with 85 additions and 7 deletions.
Binary file modified Defold/PlayFabClientSdk.zip
Binary file not shown.
Binary file modified Defold/PlayFabClientTestExample.zip
Binary file not shown.
Binary file modified Defold/PlayFabComboSdk.zip
Binary file not shown.
Binary file modified Defold/PlayFabServerSdk.zip
Binary file not shown.
25 changes: 23 additions & 2 deletions PlayFabClientSDK/PlayFab/PlayFabClientApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function PlayFabClientApi.AddGenericID(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/AddGenericID", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Adds or updates a contact email to the player's profile
-- Adds or updates a contact email to the player's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/AddOrUpdateContactEmail
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.AddOrUpdateContactEmailRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.AddOrUpdateContactEmailResult
Expand Down Expand Up @@ -344,6 +344,17 @@ function PlayFabClientApi.GetLeaderboardForUserCharacters(request, onSuccess, on
IPlayFabHttps.MakePlayFabApiCall("/Client/GetLeaderboardForUserCharacters", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client
-- completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to
-- create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/GetPaymentToken
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.GetPaymentTokenRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.GetPaymentTokenResult
function PlayFabClientApi.GetPaymentToken(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPaymentToken", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Gets a Photon custom authentication token that can be used to securely join the player into a Photon room. See
-- https://api.playfab.com/docs/using-photon-with-playfab/ for more details.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/GetPhotonAuthenticationToken
Expand Down Expand Up @@ -1057,7 +1068,7 @@ function PlayFabClientApi.RegisterWithWindowsHello(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/RegisterWithWindowsHello", request, nil, nil, onSuccess, onError)
end

-- Removes a contact email from the player's profile
-- Removes a contact email from the player's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/RemoveContactEmail
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RemoveContactEmailRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RemoveContactEmailResult
Expand Down Expand Up @@ -1096,6 +1107,16 @@ function PlayFabClientApi.RemoveSharedGroupMembers(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/RemoveSharedGroupMembers", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Write a PlayStream event to describe the provided player device information. This API method is not designed to be
-- called directly by developers. Each PlayFab client SDK will eventually report this information automatically.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/ReportDeviceInfo
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.DeviceInfoRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.EmptyResult
function PlayFabClientApi.ReportDeviceInfo(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ReportDeviceInfo", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Submit a report for another player (due to bad bahavior, etc.), so that customer service representatives for the title
-- can take action concerning potentially toxic players.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/ReportPlayer
Expand Down
2 changes: 1 addition & 1 deletion PlayFabClientSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
local PlayFabSettings = {
_internalSettings = {
sessionTicket = nil,
sdkVersionString = "LuaSdk_0.26.171106",
sdkVersionString = "LuaSdk_0.27.171127",
buildIdentifier = "jbuild_luasdk_0"
},
settings = {
Expand Down
18 changes: 18 additions & 0 deletions PlayFabSDK/PlayFab/PlayFabAdminApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ function PlayFabAdminApi.BanUsers(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/BanUsers", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Checks the global count for the limited edition item.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/CheckLimitedEditionItemAvailability
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.CheckLimitedEditionItemAvailabilityRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.CheckLimitedEditionItemAvailabilityResult
function PlayFabAdminApi.CheckLimitedEditionItemAvailability(request, onSuccess, onError)
if (not PlayFabSettings.settings.titleId or not PlayFabSettings.settings.devSecretKey) then error("Must have PlayFabSettings.settings.devSecretKey set to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Admin/CheckLimitedEditionItemAvailability", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Create an ActionsOnPlayersInSegment task, which iterates through all players in a segment to execute action.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/CreateActionsOnPlayersInSegmentTask
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.CreateActionsOnPlayerSegmentTaskRequest
Expand Down Expand Up @@ -530,6 +539,15 @@ function PlayFabAdminApi.GrantItemsToUsers(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/GrantItemsToUsers", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Increases the global count for the given scarce resource.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/IncrementLimitedEditionItemAvailability
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.IncrementLimitedEditionItemAvailabilityRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.IncrementLimitedEditionItemAvailabilityResult
function PlayFabAdminApi.IncrementLimitedEditionItemAvailability(request, onSuccess, onError)
if (not PlayFabSettings.settings.titleId or not PlayFabSettings.settings.devSecretKey) then error("Must have PlayFabSettings.settings.devSecretKey set to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Admin/IncrementLimitedEditionItemAvailability", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Resets the indicated statistic, removing all player entries for it and backing up the old values.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/IncrementPlayerStatisticVersion
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.IncrementPlayerStatisticVersionRequest
Expand Down
25 changes: 23 additions & 2 deletions PlayFabSDK/PlayFab/PlayFabClientApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function PlayFabClientApi.AddGenericID(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/AddGenericID", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Adds or updates a contact email to the player's profile
-- Adds or updates a contact email to the player's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/AddOrUpdateContactEmail
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.AddOrUpdateContactEmailRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.AddOrUpdateContactEmailResult
Expand Down Expand Up @@ -344,6 +344,17 @@ function PlayFabClientApi.GetLeaderboardForUserCharacters(request, onSuccess, on
IPlayFabHttps.MakePlayFabApiCall("/Client/GetLeaderboardForUserCharacters", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client
-- completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to
-- create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/GetPaymentToken
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.GetPaymentTokenRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.GetPaymentTokenResult
function PlayFabClientApi.GetPaymentToken(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/GetPaymentToken", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Gets a Photon custom authentication token that can be used to securely join the player into a Photon room. See
-- https://api.playfab.com/docs/using-photon-with-playfab/ for more details.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/GetPhotonAuthenticationToken
Expand Down Expand Up @@ -1057,7 +1068,7 @@ function PlayFabClientApi.RegisterWithWindowsHello(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/RegisterWithWindowsHello", request, nil, nil, onSuccess, onError)
end

-- Removes a contact email from the player's profile
-- Removes a contact email from the player's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/RemoveContactEmail
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RemoveContactEmailRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RemoveContactEmailResult
Expand Down Expand Up @@ -1096,6 +1107,16 @@ function PlayFabClientApi.RemoveSharedGroupMembers(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Client/RemoveSharedGroupMembers", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Write a PlayStream event to describe the provided player device information. This API method is not designed to be
-- called directly by developers. Each PlayFab client SDK will eventually report this information automatically.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/ReportDeviceInfo
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.DeviceInfoRequest
-- Result Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.EmptyResult
function PlayFabClientApi.ReportDeviceInfo(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/ReportDeviceInfo", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Submit a report for another player (due to bad bahavior, etc.), so that customer service representatives for the title
-- can take action concerning potentially toxic players.
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/ReportPlayer
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
local PlayFabSettings = {
_internalSettings = {
sessionTicket = nil,
sdkVersionString = "LuaSdk_0.26.171106",
sdkVersionString = "LuaSdk_0.27.171127",
buildIdentifier = "jbuild_luasdk_0"
},
settings = {
Expand Down
18 changes: 18 additions & 0 deletions PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ function PlayFabAdminApi.BanUsers(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/BanUsers", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Checks the global count for the limited edition item.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/CheckLimitedEditionItemAvailability
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.CheckLimitedEditionItemAvailabilityRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.CheckLimitedEditionItemAvailabilityResult
function PlayFabAdminApi.CheckLimitedEditionItemAvailability(request, onSuccess, onError)
if (not PlayFabSettings.settings.titleId or not PlayFabSettings.settings.devSecretKey) then error("Must have PlayFabSettings.settings.devSecretKey set to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Admin/CheckLimitedEditionItemAvailability", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Create an ActionsOnPlayersInSegment task, which iterates through all players in a segment to execute action.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/CreateActionsOnPlayersInSegmentTask
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.CreateActionsOnPlayerSegmentTaskRequest
Expand Down Expand Up @@ -530,6 +539,15 @@ function PlayFabAdminApi.GrantItemsToUsers(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/GrantItemsToUsers", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Increases the global count for the given scarce resource.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/IncrementLimitedEditionItemAvailability
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.IncrementLimitedEditionItemAvailabilityRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.IncrementLimitedEditionItemAvailabilityResult
function PlayFabAdminApi.IncrementLimitedEditionItemAvailability(request, onSuccess, onError)
if (not PlayFabSettings.settings.titleId or not PlayFabSettings.settings.devSecretKey) then error("Must have PlayFabSettings.settings.devSecretKey set to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Admin/IncrementLimitedEditionItemAvailability", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Resets the indicated statistic, removing all player entries for it and backing up the old values.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/IncrementPlayerStatisticVersion
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.IncrementPlayerStatisticVersionRequest
Expand Down
2 changes: 1 addition & 1 deletion PlayFabServerSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

local PlayFabSettings = {
_internalSettings = {
sdkVersionString = "LuaSdk_0.26.171106",
sdkVersionString = "LuaSdk_0.27.171127",
buildIdentifier = "jbuild_luasdk_0"
},
settings = {
Expand Down

0 comments on commit 859c11c

Please sign in to comment.