MCPcopy Create free account
hub / github.com/PlayFab/gsdk / ExecuteCloudScript

Method ExecuteCloudScript

cpp/cppsdk/source/playfab/PlayFabServerApi.cpp:430–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428 }
429
430 void PlayFabServerAPI::ExecuteCloudScript(
431 ExecuteCloudScriptServerRequest& request,
432 ProcessApiCallback<ExecuteCloudScriptResult> callback,
433 ErrorCallback errorCallback,
434 void* customData
435 )
436 {
437
438 IPlayFabHttp& http = IPlayFabHttp::Get();
439 const auto requestJson = request.ToJson();
440 http.AddRequest("/Server/ExecuteCloudScript", "X-SecretKey", PlayFabSettings::developerSecretKey, requestJson, OnExecuteCloudScriptResult, SharedVoidPointer((callback == nullptr) ? nullptr : new ProcessApiCallback<ExecuteCloudScriptResult>(callback)), errorCallback, customData);
441 }
442
443 void PlayFabServerAPI::OnExecuteCloudScriptResult(CallRequestContainer& request)
444 {

Callers

nothing calls this directly

Calls 2

AddRequestMethod · 0.80
ToJsonMethod · 0.45

Tested by

no test coverage detected