Access My Cloud via ASPX code

There may be and it might depend on the firmware version your My Cloud is running.

If you are using the older v4.x firmware My Cloud units then it might be possible to replace the My Cloud firmware with clean Debian and then configure the clean Debian OS to allow for what you seek.

https://community.wd.com/t/clean-os-debian-openmediavault-and-other-firmwares/93714/

You are trying to use the My Cloud, which is a network attached storage device, in a manor it was never designed to be used.