diff --git a/Defold/PlayFabClientSdk.zip b/Defold/PlayFabClientSdk.zip index 95f46bc0..8d4c8237 100644 Binary files a/Defold/PlayFabClientSdk.zip and b/Defold/PlayFabClientSdk.zip differ diff --git a/Defold/PlayFabClientTestExample.zip b/Defold/PlayFabClientTestExample.zip index d1db39bd..5e16abe3 100644 Binary files a/Defold/PlayFabClientTestExample.zip and b/Defold/PlayFabClientTestExample.zip differ diff --git a/Defold/PlayFabComboSdk.zip b/Defold/PlayFabComboSdk.zip index e37bb3bf..6f48c469 100644 Binary files a/Defold/PlayFabComboSdk.zip and b/Defold/PlayFabComboSdk.zip differ diff --git a/Defold/PlayFabServerSdk.zip b/Defold/PlayFabServerSdk.zip index c6fd19ee..7dcb5ceb 100644 Binary files a/Defold/PlayFabServerSdk.zip and b/Defold/PlayFabServerSdk.zip differ diff --git a/PlayFabClientSDK/PlayFab/PlayFabCloudScriptApi.lua b/PlayFabClientSDK/PlayFab/PlayFabCloudScriptApi.lua index b4a0630b..99c35a4f 100644 --- a/PlayFabClientSDK/PlayFab/PlayFabCloudScriptApi.lua +++ b/PlayFabClientSDK/PlayFab/PlayFabCloudScriptApi.lua @@ -22,4 +22,104 @@ function PlayFabCloudScriptApi.ExecuteEntityCloudScript(request, onSuccess, onEr IPlayFabHttps.MakePlayFabApiCall("/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of +-- custom server-side functionality you can implement, and it can be used in conjunction with virtually anything. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction#executefunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction#executefunctionresult +function PlayFabCloudScriptApi.ExecuteFunction(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("/CloudScript/ExecuteFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions#listfunctionsresult +function PlayFabCloudScriptApi.ListFunctions(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("/CloudScript/ListFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered HTTP triggered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions#listhttpfunctionsresult +function PlayFabCloudScriptApi.ListHttpFunctions(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("/CloudScript/ListHttpFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered Queue triggered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions#listqueuedfunctionsresult +function PlayFabCloudScriptApi.ListQueuedFunctions(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("/CloudScript/ListQueuedFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate an entity PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction#postfunctionresultforentitytriggeredactionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForEntityTriggeredAction(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("/CloudScript/PostFunctionResultForEntityTriggeredAction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate an entity PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution#postfunctionresultforfunctionexecutionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForFunctionExecution(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("/CloudScript/PostFunctionResultForFunctionExecution", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate a player PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction#postfunctionresultforplayertriggeredactionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForPlayerTriggeredAction(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("/CloudScript/PostFunctionResultForPlayerTriggeredAction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate a PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask#postfunctionresultforscheduledtaskrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForScheduledTask(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("/CloudScript/PostFunctionResultForScheduledTask", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Registers an HTTP triggered Azure function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction#registerhttpfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction#emptyresult +function PlayFabCloudScriptApi.RegisterHttpFunction(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("/CloudScript/RegisterHttpFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Registers a queue triggered Azure Function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction#registerqueuedfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction#emptyresult +function PlayFabCloudScriptApi.RegisterQueuedFunction(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("/CloudScript/RegisterQueuedFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Unregisters an Azure Function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction#unregisterfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction#emptyresult +function PlayFabCloudScriptApi.UnregisterFunction(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("/CloudScript/UnregisterFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + return PlayFabCloudScriptApi diff --git a/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua b/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua index 32be25c9..3307e9bb 100644 --- a/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua +++ b/PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua @@ -240,6 +240,15 @@ function PlayFabMultiplayerApi.GetMultiplayerServerLogs(request, onSuccess, onEr IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/GetMultiplayerServerLogs", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Gets multiplayer server logs after a server has terminated. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid#getmultiplayersessionlogsbysessionidrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid#getmultiplayerserverlogsresponse +function PlayFabMultiplayerApi.GetMultiplayerSessionLogsBySessionId(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/GetMultiplayerSessionLogsBySessionId", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + -- Get the statistics for a queue. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/match/matchmaking/getqueuestatistics -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/match/matchmaking/getqueuestatistics#getqueuestatisticsrequest diff --git a/PlayFabClientSDK/PlayFab/PlayFabSettings.lua b/PlayFabClientSDK/PlayFab/PlayFabSettings.lua index 42b524c8..b0130c15 100644 --- a/PlayFabClientSDK/PlayFab/PlayFabSettings.lua +++ b/PlayFabClientSDK/PlayFab/PlayFabSettings.lua @@ -13,9 +13,9 @@ local PlayFabSettings = { _internalSettings = { sessionTicket = nil, - sdkVersionString = "LuaSdk_0.70.200121", - buildIdentifier = "jbuild_luasdk__sdk-genericslave-2_0", - requestGetParams = {["sdk"] = "LuaSdk_0.70.200121"} + sdkVersionString = "LuaSdk_0.71.200218", + buildIdentifier = "jbuild_luasdk__sdk-genericslave-1_0", + requestGetParams = {["sdk"] = "LuaSdk_0.71.200218"} }, settings = { productionUrl = ".playfabapi.com", diff --git a/PlayFabSDK/PlayFab/PlayFabAdminApi.lua b/PlayFabSDK/PlayFab/PlayFabAdminApi.lua index 498a32ce..888e834c 100644 --- a/PlayFabSDK/PlayFab/PlayFabAdminApi.lua +++ b/PlayFabSDK/PlayFab/PlayFabAdminApi.lua @@ -113,6 +113,15 @@ function PlayFabAdminApi.CreateCloudScriptTask(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/CreateCloudScriptTask", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Create a Insights Scheduled Scaling task, which can scale Insights Performance Units on a schedule +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask#createinsightsscheduledscalingtaskrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask#createtaskresult +function PlayFabAdminApi.CreateInsightsScheduledScalingTask(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/CreateInsightsScheduledScalingTask", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Registers a relationship between a title and an Open ID Connect provider. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/authentication/createopenidconnection -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/authentication/createopenidconnection#createopenidconnectionrequest diff --git a/PlayFabSDK/PlayFab/PlayFabCloudScriptApi.lua b/PlayFabSDK/PlayFab/PlayFabCloudScriptApi.lua index b4a0630b..99c35a4f 100644 --- a/PlayFabSDK/PlayFab/PlayFabCloudScriptApi.lua +++ b/PlayFabSDK/PlayFab/PlayFabCloudScriptApi.lua @@ -22,4 +22,104 @@ function PlayFabCloudScriptApi.ExecuteEntityCloudScript(request, onSuccess, onEr IPlayFabHttps.MakePlayFabApiCall("/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of +-- custom server-side functionality you can implement, and it can be used in conjunction with virtually anything. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction#executefunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction#executefunctionresult +function PlayFabCloudScriptApi.ExecuteFunction(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("/CloudScript/ExecuteFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions#listfunctionsresult +function PlayFabCloudScriptApi.ListFunctions(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("/CloudScript/ListFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered HTTP triggered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions#listhttpfunctionsresult +function PlayFabCloudScriptApi.ListHttpFunctions(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("/CloudScript/ListHttpFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered Queue triggered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions#listqueuedfunctionsresult +function PlayFabCloudScriptApi.ListQueuedFunctions(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("/CloudScript/ListQueuedFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate an entity PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction#postfunctionresultforentitytriggeredactionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForEntityTriggeredAction(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("/CloudScript/PostFunctionResultForEntityTriggeredAction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate an entity PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution#postfunctionresultforfunctionexecutionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForFunctionExecution(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("/CloudScript/PostFunctionResultForFunctionExecution", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate a player PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction#postfunctionresultforplayertriggeredactionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForPlayerTriggeredAction(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("/CloudScript/PostFunctionResultForPlayerTriggeredAction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate a PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask#postfunctionresultforscheduledtaskrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForScheduledTask(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("/CloudScript/PostFunctionResultForScheduledTask", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Registers an HTTP triggered Azure function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction#registerhttpfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction#emptyresult +function PlayFabCloudScriptApi.RegisterHttpFunction(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("/CloudScript/RegisterHttpFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Registers a queue triggered Azure Function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction#registerqueuedfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction#emptyresult +function PlayFabCloudScriptApi.RegisterQueuedFunction(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("/CloudScript/RegisterQueuedFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Unregisters an Azure Function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction#unregisterfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction#emptyresult +function PlayFabCloudScriptApi.UnregisterFunction(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("/CloudScript/UnregisterFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + return PlayFabCloudScriptApi diff --git a/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua b/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua index 32be25c9..3307e9bb 100644 --- a/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua +++ b/PlayFabSDK/PlayFab/PlayFabMultiplayerApi.lua @@ -240,6 +240,15 @@ function PlayFabMultiplayerApi.GetMultiplayerServerLogs(request, onSuccess, onEr IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/GetMultiplayerServerLogs", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Gets multiplayer server logs after a server has terminated. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid#getmultiplayersessionlogsbysessionidrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid#getmultiplayerserverlogsresponse +function PlayFabMultiplayerApi.GetMultiplayerSessionLogsBySessionId(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/GetMultiplayerSessionLogsBySessionId", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + -- Get the statistics for a queue. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/match/matchmaking/getqueuestatistics -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/match/matchmaking/getqueuestatistics#getqueuestatisticsrequest diff --git a/PlayFabSDK/PlayFab/PlayFabSettings.lua b/PlayFabSDK/PlayFab/PlayFabSettings.lua index 42b524c8..b0130c15 100644 --- a/PlayFabSDK/PlayFab/PlayFabSettings.lua +++ b/PlayFabSDK/PlayFab/PlayFabSettings.lua @@ -13,9 +13,9 @@ local PlayFabSettings = { _internalSettings = { sessionTicket = nil, - sdkVersionString = "LuaSdk_0.70.200121", - buildIdentifier = "jbuild_luasdk__sdk-genericslave-2_0", - requestGetParams = {["sdk"] = "LuaSdk_0.70.200121"} + sdkVersionString = "LuaSdk_0.71.200218", + buildIdentifier = "jbuild_luasdk__sdk-genericslave-1_0", + requestGetParams = {["sdk"] = "LuaSdk_0.71.200218"} }, settings = { productionUrl = ".playfabapi.com", diff --git a/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua b/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua index 498a32ce..888e834c 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabAdminApi.lua @@ -113,6 +113,15 @@ function PlayFabAdminApi.CreateCloudScriptTask(request, onSuccess, onError) IPlayFabHttps.MakePlayFabApiCall("/Admin/CreateCloudScriptTask", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) end +-- Create a Insights Scheduled Scaling task, which can scale Insights Performance Units on a schedule +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask#createinsightsscheduledscalingtaskrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/admin/scheduledtask/createinsightsscheduledscalingtask#createtaskresult +function PlayFabAdminApi.CreateInsightsScheduledScalingTask(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/CreateInsightsScheduledScalingTask", request, "X-SecretKey", PlayFabSettings.settings.devSecretKey, onSuccess, onError) +end + -- Registers a relationship between a title and an Open ID Connect provider. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/admin/authentication/createopenidconnection -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/admin/authentication/createopenidconnection#createopenidconnectionrequest diff --git a/PlayFabServerSDK/PlayFab/PlayFabCloudScriptApi.lua b/PlayFabServerSDK/PlayFab/PlayFabCloudScriptApi.lua index b4a0630b..99c35a4f 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabCloudScriptApi.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabCloudScriptApi.lua @@ -22,4 +22,104 @@ function PlayFabCloudScriptApi.ExecuteEntityCloudScript(request, onSuccess, onEr IPlayFabHttps.MakePlayFabApiCall("/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Cloud Script is one of PlayFab's most versatile features. It allows client code to request execution of any kind of +-- custom server-side functionality you can implement, and it can be used in conjunction with virtually anything. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction#executefunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/executefunction#executefunctionresult +function PlayFabCloudScriptApi.ExecuteFunction(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("/CloudScript/ExecuteFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listfunctions#listfunctionsresult +function PlayFabCloudScriptApi.ListFunctions(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("/CloudScript/ListFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered HTTP triggered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listhttpfunctions#listhttpfunctionsresult +function PlayFabCloudScriptApi.ListHttpFunctions(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("/CloudScript/ListHttpFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Lists all currently registered Queue triggered Azure Functions for a given title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions#listfunctionsrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/listqueuedfunctions#listqueuedfunctionsresult +function PlayFabCloudScriptApi.ListQueuedFunctions(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("/CloudScript/ListQueuedFunctions", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate an entity PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction#postfunctionresultforentitytriggeredactionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforentitytriggeredaction#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForEntityTriggeredAction(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("/CloudScript/PostFunctionResultForEntityTriggeredAction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate an entity PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution#postfunctionresultforfunctionexecutionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforfunctionexecution#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForFunctionExecution(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("/CloudScript/PostFunctionResultForFunctionExecution", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate a player PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction#postfunctionresultforplayertriggeredactionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforplayertriggeredaction#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForPlayerTriggeredAction(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("/CloudScript/PostFunctionResultForPlayerTriggeredAction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Generate a PlayStream event for the provided function result. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask#postfunctionresultforscheduledtaskrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/postfunctionresultforscheduledtask#emptyresult +function PlayFabCloudScriptApi.PostFunctionResultForScheduledTask(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("/CloudScript/PostFunctionResultForScheduledTask", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Registers an HTTP triggered Azure function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction#registerhttpfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerhttpfunction#emptyresult +function PlayFabCloudScriptApi.RegisterHttpFunction(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("/CloudScript/RegisterHttpFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Registers a queue triggered Azure Function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction#registerqueuedfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/registerqueuedfunction#emptyresult +function PlayFabCloudScriptApi.RegisterQueuedFunction(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("/CloudScript/RegisterQueuedFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + +-- Unregisters an Azure Function with a title. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction#unregisterfunctionrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/cloudscript/server-side-cloud-script/unregisterfunction#emptyresult +function PlayFabCloudScriptApi.UnregisterFunction(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("/CloudScript/UnregisterFunction", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + return PlayFabCloudScriptApi diff --git a/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua b/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua index 32be25c9..3307e9bb 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabMultiplayerApi.lua @@ -240,6 +240,15 @@ function PlayFabMultiplayerApi.GetMultiplayerServerLogs(request, onSuccess, onEr IPlayFabHttps.MakePlayFabApiCall("/MultiplayerServer/GetMultiplayerServerLogs", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) end +-- Gets multiplayer server logs after a server has terminated. +-- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid +-- Request Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid#getmultiplayersessionlogsbysessionidrequest +-- Response Documentation: https://docs.microsoft.com/rest/api/playfab/multiplayerserver/multiplayerserver/getmultiplayersessionlogsbysessionid#getmultiplayerserverlogsresponse +function PlayFabMultiplayerApi.GetMultiplayerSessionLogsBySessionId(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/GetMultiplayerSessionLogsBySessionId", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError) +end + -- Get the statistics for a queue. -- API Method Documentation: https://docs.microsoft.com/rest/api/playfab/match/matchmaking/getqueuestatistics -- Request Documentation: https://docs.microsoft.com/rest/api/playfab/match/matchmaking/getqueuestatistics#getqueuestatisticsrequest diff --git a/PlayFabServerSDK/PlayFab/PlayFabSettings.lua b/PlayFabServerSDK/PlayFab/PlayFabSettings.lua index 09e13d25..393f92c7 100644 --- a/PlayFabServerSDK/PlayFab/PlayFabSettings.lua +++ b/PlayFabServerSDK/PlayFab/PlayFabSettings.lua @@ -13,9 +13,9 @@ local PlayFabSettings = { _internalSettings = { sessionTicket = nil, - sdkVersionString = "LuaSdk_0.70.200121", - buildIdentifier = "jbuild_luasdk__sdk-genericslave-2_0", - requestGetParams = {["sdk"] = "LuaSdk_0.70.200121"} + sdkVersionString = "LuaSdk_0.71.200218", + buildIdentifier = "jbuild_luasdk__sdk-genericslave-1_0", + requestGetParams = {["sdk"] = "LuaSdk_0.71.200218"} }, settings = { productionUrl = ".playfabapi.com",