The "DSM Web API" project provides portable libraries to call the APIs exposed by a Synology's NAS running the DSM system.