For our project we wrote a library (https://github.com/ScratchEverywhere/mistpp) for handling communication with the cloud variable server if you want to use that, it currently requires a version of libcurl with WebSockets enabled (which to my knowledge are only enabled for Wii and Arch Linux) so you'll likely need to build curl with FetchPackage or CPM.