diff --git a/Defold/PlayFabClientSdk.zip b/Defold/PlayFabClientSdk.zip index f52c1e2e..72a9cc7d 100644 Binary files a/Defold/PlayFabClientSdk.zip and b/Defold/PlayFabClientSdk.zip differ diff --git a/Defold/PlayFabClientTestExample.zip b/Defold/PlayFabClientTestExample.zip index d40ac13a..e77be4bd 100644 Binary files a/Defold/PlayFabClientTestExample.zip and b/Defold/PlayFabClientTestExample.zip differ diff --git a/Defold/PlayFabComboSdk.zip b/Defold/PlayFabComboSdk.zip index 87473ebe..c5d18de0 100644 Binary files a/Defold/PlayFabComboSdk.zip and b/Defold/PlayFabComboSdk.zip differ diff --git a/Defold/PlayFabServerSdk.zip b/Defold/PlayFabServerSdk.zip index 2c362151..13c750cf 100644 Binary files a/Defold/PlayFabServerSdk.zip and b/Defold/PlayFabServerSdk.zip differ diff --git a/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua b/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua index 99a83368..b0d09137 100644 --- a/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua +++ b/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua @@ -377,6 +377,16 @@ function PlayFabMultiplayerApi.ListBuildSummaries(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/ListBuildSummaries", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Lists summarized details of all multiplayer server builds for a title. Accepts tokens for title and if game client +-- access is enabled, allows game client to request list of builds with player entity token. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2 +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2#listbuildsummariesrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2#listbuildsummariesresponse +function PlayFabMultiplayerApi.ListBuildSummariesV2(request, onSuccess, onError) + if (not PlayFabSettings.settings.titleId or not PlayFabSettings._internalSettings.entityToken) then error("Must call GetEntityToken first, to call this method") end + IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/ListBuildSummariesV2", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + -- Lists multiplayer server game certificates for a title. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listcertificatesummaries -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listcertificatesummaries#listcertificatesummariesrequest diff --git a/PlayFabClientSDK/PlayFab/PlayFabSettings.lua b/PlayFabClientSDK/PlayFab/PlayFabSettings.lua index 042f8d50..9e3c19cc 100644 --- a/PlayFabClientSDK/PlayFab/PlayFabSettings.lua +++ b/PlayFabClientSDK/PlayFab/PlayFabSettings.lua @@ -13,9 +13,9 @@ local PlayFabSettings = { _internalSettings = { sessionTicket = nil, - sdkVersionString = "LuaSdk_0.89.201027", - buildIdentifier = "jbuild_luasdk__sdk-genericslave-2_1", - requestGetParams = {["sdk"] = "LuaSdk_0.89.201027"} + sdkVersionString = "LuaSdk_0.90.201207", + buildIdentifier = "jbuild_luasdk_sdk-genericslave-2_1", + requestGetParams = {["sdk"] = "LuaSdk_0.90.201207"} }, settings = { productionUrl = ".playfabapi.com", diff --git a/PlayFabSDK/PlayFab/PlayFabAdminApi.lua b/PlayFabSDK/PlayFab/PlayFabAdminApi.lua index af431586..179db9f8 100644 --- a/PlayFabSDK/PlayFab/PlayFabAdminApi.lua +++ b/PlayFabSDK/PlayFab/PlayFabAdminApi.lua @@ -151,6 +151,16 @@ function PlayFabAdminApi.CreatePlayerStatisticDefinition(request, onSuccess, onE IPlayFabHttps.MakePlayFabApiCall("/Admin/CreatePlayerStatisticDefinition", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Creates a new player segment by defining the conditions on player properties. Also, create actions to target the player +-- segments for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment#createsegmentrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment#createsegmentresponse +function PlayFabAdminApi.CreateSegment(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/CreateSegment", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Delete a content file from the title. When deleting a file that does not exist, it returns success. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/content/deletecontent -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/content/deletecontent#deletecontentrequest @@ -197,6 +207,15 @@ function PlayFabAdminApi.DeletePlayerSharedSecret(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/DeletePlayerSharedSecret", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Deletes an existing player segment and its associated action(s) for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment#deletesegmentrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment#deletesegmentsresponse +function PlayFabAdminApi.DeleteSegment(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/DeleteSegment", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Deletes an existing virtual item store -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/deletestore -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/deletestore#deletestorerequest @@ -458,6 +477,15 @@ function PlayFabAdminApi.GetRandomResultTables(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/GetRandomResultTables", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Get detail information of a segment and its associated definition(s) and action(s) for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments#getsegmentsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments#getsegmentsresponse +function PlayFabAdminApi.GetSegments(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/GetSegments", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Retrieves the build details for the specified game server executable -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/custom-server-management/getserverbuildinfo -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/custom-server-management/getserverbuildinfo#getserverbuildinforequest @@ -970,6 +998,15 @@ function PlayFabAdminApi.UpdateRandomResultTables(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/UpdateRandomResultTables", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Updates an existing player segment and its associated definition(s) and action(s) for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment#updatesegmentrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment#updatesegmentresponse +function PlayFabAdminApi.UpdateSegment(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/UpdateSegment", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Updates an existing virtual item store with new or modified items -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updatestoreitems -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updatestoreitems#updatestoreitemsrequest diff --git a/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua b/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua index 99a83368..b0d09137 100644 --- a/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua +++ b/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua @@ -377,6 +377,16 @@ function PlayFabMultiplayerApi.ListBuildSummaries(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/ListBuildSummaries", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Lists summarized details of all multiplayer server builds for a title. Accepts tokens for title and if game client +-- access is enabled, allows game client to request list of builds with player entity token. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2 +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2#listbuildsummariesrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2#listbuildsummariesresponse +function PlayFabMultiplayerApi.ListBuildSummariesV2(request, onSuccess, onError) + if (not PlayFabSettings.settings.titleId or not PlayFabSettings._internalSettings.entityToken) then error("Must call GetEntityToken first, to call this method") end + IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/ListBuildSummariesV2", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + -- Lists multiplayer server game certificates for a title. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listcertificatesummaries -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listcertificatesummaries#listcertificatesummariesrequest diff --git a/PlayFabSDK/PlayFab/PlayFabSettings.lua b/PlayFabSDK/PlayFab/PlayFabSettings.lua index 042f8d50..9e3c19cc 100644 --- a/PlayFabSDK/PlayFab/PlayFabSettings.lua +++ b/PlayFabSDK/PlayFab/PlayFabSettings.lua @@ -13,9 +13,9 @@ local PlayFabSettings = { _internalSettings = { sessionTicket = nil, - sdkVersionString = "LuaSdk_0.89.201027", - buildIdentifier = "jbuild_luasdk__sdk-genericslave-2_1", - requestGetParams = {["sdk"] = "LuaSdk_0.89.201027"} + sdkVersionString = "LuaSdk_0.90.201207", + buildIdentifier = "jbuild_luasdk_sdk-genericslave-2_1", + requestGetParams = {["sdk"] = "LuaSdk_0.90.201207"} }, settings = { productionUrl = ".playfabapi.com", diff --git a/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua b/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua index af431586..179db9f8 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua @@ -151,6 +151,16 @@ function PlayFabAdminApi.CreatePlayerStatisticDefinition(request, onSuccess, onE IPlayFabHttps.MakePlayFabApiCall("/Admin/CreatePlayerStatisticDefinition", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Creates a new player segment by defining the conditions on player properties. Also, create actions to target the player +-- segments for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment#createsegmentrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/createsegment#createsegmentresponse +function PlayFabAdminApi.CreateSegment(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/CreateSegment", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Delete a content file from the title. When deleting a file that does not exist, it returns success. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/content/deletecontent -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/content/deletecontent#deletecontentrequest @@ -197,6 +207,15 @@ function PlayFabAdminApi.DeletePlayerSharedSecret(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/DeletePlayerSharedSecret", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Deletes an existing player segment and its associated action(s) for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment#deletesegmentrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/deletesegment#deletesegmentsresponse +function PlayFabAdminApi.DeleteSegment(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/DeleteSegment", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Deletes an existing virtual item store -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/deletestore -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/deletestore#deletestorerequest @@ -458,6 +477,15 @@ function PlayFabAdminApi.GetRandomResultTables(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/GetRandomResultTables", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Get detail information of a segment and its associated definition(s) and action(s) for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments#getsegmentsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/getsegments#getsegmentsresponse +function PlayFabAdminApi.GetSegments(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/GetSegments", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Retrieves the build details for the specified game server executable -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/custom-server-management/getserverbuildinfo -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/custom-server-management/getserverbuildinfo#getserverbuildinforequest @@ -970,6 +998,15 @@ function PlayFabAdminApi.UpdateRandomResultTables(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/UpdateRandomResultTables", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Updates an existing player segment and its associated definition(s) and action(s) for a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment#updatesegmentrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/segments/updatesegment#updatesegmentresponse +function PlayFabAdminApi.UpdateSegment(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/UpdateSegment", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Updates an existing virtual item store with new or modified items -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updatestoreitems -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/title-wide-data-management/updatestoreitems#updatestoreitemsrequest diff --git a/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua b/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua index 99a83368..b0d09137 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua @@ -377,6 +377,16 @@ function PlayFabMultiplayerApi.ListBuildSummaries(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/ListBuildSummaries", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Lists summarized details of all multiplayer server builds for a title. Accepts tokens for title and if game client +-- access is enabled, allows game client to request list of builds with player entity token. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2 +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2#listbuildsummariesrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listbuildsummariesv2#listbuildsummariesresponse +function PlayFabMultiplayerApi.ListBuildSummariesV2(request, onSuccess, onError) + if (not PlayFabSettings.settings.titleId or not PlayFabSettings._internalSettings.entityToken) then error("Must call GetEntityToken first, to call this method") end + IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/ListBuildSummariesV2", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + -- Lists multiplayer server game certificates for a title. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listcertificatesummaries -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/listcertificatesummaries#listcertificatesummariesrequest diff --git a/PlayFabServerSDK/PlayFab/PlayFabSettings.lua b/PlayFabServerSDK/PlayFab/PlayFabSettings.lua index 2d9116a2..5f3e7d3a 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabSettings.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabSettings.lua @@ -13,9 +13,9 @@ local PlayFabSettings = { _internalSettings = { sessionTicket = nil, - sdkVersionString = "LuaSdk_0.89.201027", - buildIdentifier = "jbuild_luasdk__sdk-genericslave-2_1", - requestGetParams = {["sdk"] = "LuaSdk_0.89.201027"} + sdkVersionString = "LuaSdk_0.90.201207", + buildIdentifier = "jbuild_luasdk_sdk-genericslave-2_1", + requestGetParams = {["sdk"] = "LuaSdk_0.90.201207"} }, settings = { productionUrl = ".playfabapi.com",