Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#171102
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Nov 3, 2017
2 parents ff42d67 + 93c98ee commit a503c9b
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 3 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.
18 changes: 18 additions & 0 deletions PlayFabClientSDK/PlayFab/PlayFabClientApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ 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
-- 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
function PlayFabClientApi.AddOrUpdateContactEmail(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddOrUpdateContactEmail", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only
-- users in the group can add new members. Shared Groups are designed for sharing data between a very small number of
-- players, please see our guide: https://api.playfab.com/docs/tutorials/landing-players/shared-groups
Expand Down Expand Up @@ -1048,6 +1057,15 @@ 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
-- 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
function PlayFabClientApi.RemoveContactEmail(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/RemoveContactEmail", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Removes a specified user from the friend list of the local user
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/RemoveFriend
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RemoveFriendRequest
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.24.171026",
sdkVersionString = "LuaSdk_0.25.171102",
buildIdentifier = "jbuild_luasdk_2"
},
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 @@ -273,6 +273,15 @@ function PlayFabAdminApi.GetMatchmakerGameModes(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/GetMatchmakerGameModes", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Gets a player's ID from an auth token.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/GetPlayerIdFromAuthToken
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetPlayerIdFromAuthTokenRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetPlayerIdFromAuthTokenResult
function PlayFabAdminApi.GetPlayerIdFromAuthToken(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/GetPlayerIdFromAuthToken", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- List all segments that a player currently belongs to at this moment in time.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/GetPlayerSegments
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetPlayersSegmentsRequest
Expand Down Expand Up @@ -603,6 +612,15 @@ function PlayFabAdminApi.ResetCharacterStatistics(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/ResetCharacterStatistics", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Reset a player's password for a given title.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/ResetPassword
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.ResetPasswordRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.ResetPasswordResult
function PlayFabAdminApi.ResetPassword(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/ResetPassword", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Completely removes all statistics for the specified user, for the current game
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/ResetUserStatistics
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.ResetUserStatisticsRequest
Expand Down
18 changes: 18 additions & 0 deletions PlayFabSDK/PlayFab/PlayFabClientApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ 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
-- 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
function PlayFabClientApi.AddOrUpdateContactEmail(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/AddOrUpdateContactEmail", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only
-- users in the group can add new members. Shared Groups are designed for sharing data between a very small number of
-- players, please see our guide: https://api.playfab.com/docs/tutorials/landing-players/shared-groups
Expand Down Expand Up @@ -1048,6 +1057,15 @@ 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
-- 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
function PlayFabClientApi.RemoveContactEmail(request, onSuccess, onError)
if (not PlayFabClientApi.IsClientLoggedIn()) then error("Must be logged in to call this method") end
IPlayFabHttps.MakePlayFabApiCall("/Client/RemoveContactEmail", request, "X-Authorization", PlayFabSettings._internalSettings.sessionTicket, onSuccess, onError)
end

-- Removes a specified user from the friend list of the local user
-- API Method Documentation: https://api.playfab.com/Documentation/Client/method/RemoveFriend
-- Request Documentation: https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RemoveFriendRequest
Expand Down
10 changes: 10 additions & 0 deletions PlayFabSDK/PlayFab/PlayFabServerApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,16 @@ function PlayFabServerApi.RevokeInventoryItem(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Server/RevokeInventoryItem", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Forces an email to be sent to the registered contact email address for the user's account based on an account recovery
-- email template
-- API Method Documentation: https://api.playfab.com/Documentation/Server/method/SendCustomAccountRecoveryEmail
-- Request Documentation: https://api.playfab.com/Documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendCustomAccountRecoveryEmailRequest
-- Result Documentation: https://api.playfab.com/Documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendCustomAccountRecoveryEmailResult
function PlayFabServerApi.SendCustomAccountRecoveryEmail(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("/Server/SendCustomAccountRecoveryEmail", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Sends an iOS/Android Push Notification to a specific user, if that user's device has been configured for Push
-- Notifications in PlayFab. If a user has linked both Android and iOS devices, both will be notified.
-- API Method Documentation: https://api.playfab.com/Documentation/Server/method/SendPushNotification
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.24.171026",
sdkVersionString = "LuaSdk_0.25.171102",
buildIdentifier = "jbuild_luasdk_2"
},
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 @@ -273,6 +273,15 @@ function PlayFabAdminApi.GetMatchmakerGameModes(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/GetMatchmakerGameModes", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Gets a player's ID from an auth token.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/GetPlayerIdFromAuthToken
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetPlayerIdFromAuthTokenRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetPlayerIdFromAuthTokenResult
function PlayFabAdminApi.GetPlayerIdFromAuthToken(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/GetPlayerIdFromAuthToken", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- List all segments that a player currently belongs to at this moment in time.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/GetPlayerSegments
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetPlayersSegmentsRequest
Expand Down Expand Up @@ -603,6 +612,15 @@ function PlayFabAdminApi.ResetCharacterStatistics(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Admin/ResetCharacterStatistics", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Reset a player's password for a given title.
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/ResetPassword
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.ResetPasswordRequest
-- Result Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.ResetPasswordResult
function PlayFabAdminApi.ResetPassword(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/ResetPassword", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Completely removes all statistics for the specified user, for the current game
-- API Method Documentation: https://api.playfab.com/Documentation/Admin/method/ResetUserStatistics
-- Request Documentation: https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.ResetUserStatisticsRequest
Expand Down
10 changes: 10 additions & 0 deletions PlayFabServerSDK/PlayFab/PlayFabServerApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -738,6 +738,16 @@ function PlayFabServerApi.RevokeInventoryItem(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Server/RevokeInventoryItem", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Forces an email to be sent to the registered contact email address for the user's account based on an account recovery
-- email template
-- API Method Documentation: https://api.playfab.com/Documentation/Server/method/SendCustomAccountRecoveryEmail
-- Request Documentation: https://api.playfab.com/Documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendCustomAccountRecoveryEmailRequest
-- Result Documentation: https://api.playfab.com/Documentation/Server/datatype/PlayFab.Server.Models/PlayFab.Server.Models.SendCustomAccountRecoveryEmailResult
function PlayFabServerApi.SendCustomAccountRecoveryEmail(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("/Server/SendCustomAccountRecoveryEmail", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError)
end

-- Sends an iOS/Android Push Notification to a specific user, if that user's device has been configured for Push
-- Notifications in PlayFab. If a user has linked both Android and iOS devices, both will be notified.
-- API Method Documentation: https://api.playfab.com/Documentation/Server/method/SendPushNotification
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.24.171026",
sdkVersionString = "LuaSdk_0.25.171102",
buildIdentifier = "jbuild_luasdk_2"
},
settings = {
Expand Down

0 comments on commit a503c9b

Please sign in to comment.