My requirement is when a button clicked in my application(hosted on a different server), need to check folder exists with the named supplied. If not exits, able to create folder and sub folders in a given Document library.
So how to achieve above functionality and also what technologies(Rest_api / CSOM) should I use? Do I have to pass credentials also to create(permissions)?
I appreciate for your time and provide me solution.