I want to access some lists to write data into them from a Windows client (or a service).
I tried the following:
using (ClientContext context = new ClientContext("https://myhost.sharepoint.com/"))
{
context.Credentials = new NetworkCredential("[email protected]", "SuperSecretPassword");
Site site = context.Site;
context.ExecuteQuery();
}
The result is a 403 error that suggests I am not allowed to perform such requests.
How is it possible to write, update or delete some data in lists in SharePoint Online (aka Office Cloud / Office 365)?