question

Bvnkame avatar image
Bvnkame asked

What is the difference between Execute Cloud Script and Run Cloud Script?

Hi,

Sorry for my stupid question, But i really don't understand what is the difference between ExecuteCloudScript and RunCloudScript. I see both of them on API documentation.

Thanks,

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Simply put, RunCloudScript is being deprecated - we just haven't updated the docs to reflect this. Please use ExecuteCloudScript going forward.

The longer explanation is that RunCloudScript required that you first call GetCloudScriptUrl, in order to get the right endpoint for the logic server which would manage your game's script calls. That's no longer necessary with ExecuteCloudScript. Also, it has significantly improved data in the response, for debugging purposes.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.