I need some API or code in php or XML format so we can create folder under mycloud’s drive from a web application (crm).
I do not believe what you are requesting is publicly available from Western Digital. If you are looking for a 3rd party app you are able to use then hopefully an experienced User will be able to assist.
You could download the source code and figure it out. Or maybe the REST API might help?
ps. It’s linux. How hard can can it be to create a drectory on a mounted file system?