I'm trying to call a corporate Sharepoint REST API in order to retrieve a list data. When I use the browser I'm able to call the API (I use Restlet Client to test) provided I log first into the Sharepoint site.
I already succeeded to create a console program that asks me for the user/password by a second browser screen, but I'm looking for a solution that handles the http traffic necessary to authenticate automatically to the Sharepoint, without any human intervention.
This example (Make a RESTful API Call to SharePoint Online from Console program) goes really close, but it fails with a "Data Encryption Key (DEK) has not been uploaded to the site" error.
Does anyone know how to connect directly into the Sharepoint REST API without having to install/configure anything in the Sharepoint server?
PS: It's an Office 365 Sharepoint site, and I have access only to a specific subsite.