Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#200218
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Feb 19, 2020
2 parents 56ccf75 + ef2c9a8 commit 577eca3
Show file tree
Hide file tree
Showing 15 changed files with 354 additions and 9 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.
100 changes: 100 additions & 0 deletions PlayFabClientSDK/PlayFab/PlayFabCloudScriptApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 9 additions & 0 deletions PlayFabClientSDK/PlayFab/PlayFabMultiplayerApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions PlayFabClientSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions PlayFabSDK/PlayFab/PlayFabAdminApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 577eca3

Please sign in to comment.