In C#, I want to create a folder in my SharePoint Online site without using SharePoint client object model.
I am trying to use SharePoint REST APIs and List methods.
I don't want to use
Microsoft.SharePoint.Client as the use of this DLL requires
SharePoint Client Components to be installed on the client server.
I have found the this useful link to achieve this. This works fine for SharePoint On-premise instance, but not for SharePoint Online.
It throws the following error message when run for SharePoint Online
Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
Is there any way to solve this problem?