I have created a little php application which upload a file by using curl to make a webdav call using PUT method. That's working great.
However, I can't manage to use API to create a folder (the idea is to create a folder from php and then upload the file on this new folder).
I have read that I should use OCP instead of OCS or webdav. Also I think I have found the documentation of the function that I have to all: https://doc.owncloud.org/api/classes/OCP.Files.Folder.html#method_newFolder but I haven't found any example on how can I make this call from php.
Could anyone show me an example?