Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#180709
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Jul 9, 2018
2 parents ae5aa4b + 8100d3c commit f4fd8c1
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 6 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/PlayFabEntityApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ function PlayFabEntityApi.DeleteRole(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Group/DeleteRole", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Executes CloudScript using the Entity Profile
-- API Method Documentation: https://api.playfab.com/Documentation/CloudScript/method/ExecuteEntityCloudScript
-- Request Documentation: https://api.playfab.com/Documentation/CloudScript/datatype/PlayFab.CloudScript.Models/PlayFab.CloudScript.Models.ExecuteEntityCloudScriptRequest
-- Result Documentation: https://api.playfab.com/Documentation/CloudScript/datatype/PlayFab.CloudScript.Models/PlayFab.CloudScript.Models.ExecuteCloudScriptResult
function PlayFabEntityApi.ExecuteEntityCloudScript(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/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Finalize file uploads to an entity's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/File/method/FinalizeFileUploads
-- Request Documentation: https://api.playfab.com/Documentation/File/datatype/PlayFab.File.Models/PlayFab.File.Models.FinalizeFileUploadsRequest
Expand Down Expand Up @@ -377,4 +386,13 @@ function PlayFabEntityApi.UpdateRole(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Group/UpdateRole", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Write batches of entity based events to PlayStream.
-- API Method Documentation: https://api.playfab.com/Documentation/Event/method/WriteEvents
-- Request Documentation: https://api.playfab.com/Documentation/Event/datatype/PlayFab.Event.Models/PlayFab.Event.Models.WriteEventsRequest
-- Result Documentation: https://api.playfab.com/Documentation/Event/datatype/PlayFab.Event.Models/PlayFab.Event.Models.WriteEventsResponse
function PlayFabEntityApi.WriteEvents(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("/Event/WriteEvents", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

return PlayFabEntityApi
4 changes: 2 additions & 2 deletions PlayFabClientSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
local PlayFabSettings = {
_internalSettings = {
sessionTicket = nil,
sdkVersionString = "LuaSdk_0.35.180705",
buildIdentifier = "jbuild_luasdk_0"
sdkVersionString = "LuaSdk_0.37.180709",
buildIdentifier = "jbuild_luasdk_2"
},
settings = {
devSecretKey = nil,
Expand Down
18 changes: 18 additions & 0 deletions PlayFabSDK/PlayFab/PlayFabEntityApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ function PlayFabEntityApi.DeleteRole(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Group/DeleteRole", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Executes CloudScript using the Entity Profile
-- API Method Documentation: https://api.playfab.com/Documentation/CloudScript/method/ExecuteEntityCloudScript
-- Request Documentation: https://api.playfab.com/Documentation/CloudScript/datatype/PlayFab.CloudScript.Models/PlayFab.CloudScript.Models.ExecuteEntityCloudScriptRequest
-- Result Documentation: https://api.playfab.com/Documentation/CloudScript/datatype/PlayFab.CloudScript.Models/PlayFab.CloudScript.Models.ExecuteCloudScriptResult
function PlayFabEntityApi.ExecuteEntityCloudScript(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/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Finalize file uploads to an entity's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/File/method/FinalizeFileUploads
-- Request Documentation: https://api.playfab.com/Documentation/File/datatype/PlayFab.File.Models/PlayFab.File.Models.FinalizeFileUploadsRequest
Expand Down Expand Up @@ -377,4 +386,13 @@ function PlayFabEntityApi.UpdateRole(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Group/UpdateRole", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Write batches of entity based events to PlayStream.
-- API Method Documentation: https://api.playfab.com/Documentation/Event/method/WriteEvents
-- Request Documentation: https://api.playfab.com/Documentation/Event/datatype/PlayFab.Event.Models/PlayFab.Event.Models.WriteEventsRequest
-- Result Documentation: https://api.playfab.com/Documentation/Event/datatype/PlayFab.Event.Models/PlayFab.Event.Models.WriteEventsResponse
function PlayFabEntityApi.WriteEvents(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("/Event/WriteEvents", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

return PlayFabEntityApi
4 changes: 2 additions & 2 deletions PlayFabSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
local PlayFabSettings = {
_internalSettings = {
sessionTicket = nil,
sdkVersionString = "LuaSdk_0.35.180705",
buildIdentifier = "jbuild_luasdk_0"
sdkVersionString = "LuaSdk_0.37.180709",
buildIdentifier = "jbuild_luasdk_2"
},
settings = {
devSecretKey = nil,
Expand Down
18 changes: 18 additions & 0 deletions PlayFabServerSDK/PlayFab/PlayFabEntityApi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ function PlayFabEntityApi.DeleteRole(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Group/DeleteRole", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Executes CloudScript using the Entity Profile
-- API Method Documentation: https://api.playfab.com/Documentation/CloudScript/method/ExecuteEntityCloudScript
-- Request Documentation: https://api.playfab.com/Documentation/CloudScript/datatype/PlayFab.CloudScript.Models/PlayFab.CloudScript.Models.ExecuteEntityCloudScriptRequest
-- Result Documentation: https://api.playfab.com/Documentation/CloudScript/datatype/PlayFab.CloudScript.Models/PlayFab.CloudScript.Models.ExecuteCloudScriptResult
function PlayFabEntityApi.ExecuteEntityCloudScript(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/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Finalize file uploads to an entity's profile.
-- API Method Documentation: https://api.playfab.com/Documentation/File/method/FinalizeFileUploads
-- Request Documentation: https://api.playfab.com/Documentation/File/datatype/PlayFab.File.Models/PlayFab.File.Models.FinalizeFileUploadsRequest
Expand Down Expand Up @@ -377,4 +386,13 @@ function PlayFabEntityApi.UpdateRole(request, onSuccess, onError)
IPlayFabHttps.MakePlayFabApiCall("/Group/UpdateRole", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

-- Write batches of entity based events to PlayStream.
-- API Method Documentation: https://api.playfab.com/Documentation/Event/method/WriteEvents
-- Request Documentation: https://api.playfab.com/Documentation/Event/datatype/PlayFab.Event.Models/PlayFab.Event.Models.WriteEventsRequest
-- Result Documentation: https://api.playfab.com/Documentation/Event/datatype/PlayFab.Event.Models/PlayFab.Event.Models.WriteEventsResponse
function PlayFabEntityApi.WriteEvents(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("/Event/WriteEvents", request, "X-EntityToken", PlayFabSettings._internalSettings.entityToken, onSuccess, onError)
end

return PlayFabEntityApi
4 changes: 2 additions & 2 deletions PlayFabServerSDK/PlayFab/PlayFabSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
local PlayFabSettings = {
_internalSettings = {
sessionTicket = nil,
sdkVersionString = "LuaSdk_0.35.180705",
buildIdentifier = "jbuild_luasdk_0"
sdkVersionString = "LuaSdk_0.37.180709",
buildIdentifier = "jbuild_luasdk_2"
},
settings = {
devSecretKey = nil,
Expand Down

0 comments on commit f4fd8c1

Please sign in to comment.