Packages

Elixir library for working with playfab

Current section

Files

Jump to
playfab_ex lib server server_side_cloud_script.ex
Raw

lib/server/server_side_cloud_script.ex

defmodule PlayfabEx.Server.ServerSideCloudScript do
use Interface
@doc """
Executes a CloudScript function, with the 'currentPlayerId' variable set to the specified PlayFabId parameter value.
[online docs](https://api.playfab.com/documentation/server/method/ExecuteCloudScript)
"""
@spec execute_cloud_script(map()) :: {:ok, map} | {:error, String.t}
definterface execute_cloud_script(params), to: (Application.get_env(:playfab_ex, PlayfabEx.Server.ServerSideCloudScript) || PlayfabEx.Server.Default.ServerSideCloudScript)
end