I'm currently working on a Windows service that will check and update Excel files and upload them to selected cloud storage - SharePoint or OneDrive. The whole process should be fully automatic and without any user interaction - all required information (username, password etc.) are part of the config file.
All is going well except the OneDrive part. I'm unable to find a fully automatic solution to login and upload to this cloud storage. I know about Microsoft Live SDK, but 'its support for non-WinPhone and -WinStore apps is reduced and also, to my knowledge, it always requires user to enter username, password (webbrowser component).
The second option is SkyDriveClientAPI (link here), but this API doesn't work anymore (as mentioned in Issues).
Is there way to use Live SDK without user interaction or do you have any other suggestions for a different way?
This is partly achievable
As mentioned in the other answers, one drive requires user authentication , and this makes fully automatic solution impossible.
However an almost automatic solution is possible, meaning an app can be created that will require a single one time login (on first activation) and a following the login, an authorization by the user for the running app, from that point the app will be able to work automatically ( uploading, downloading, folder creation, direct link to uploaded files, etc....), this will continue working, even if application is shutdown, and machine is restarted.
the only way to disengage the application from the one drive connection is to sign out the app (can be achieved automatically).
This can achieved by using the LIVE sdk (desktop) and following the single sign-on guidelines, you will most likely need access to the following scopes:
check one drive dev center:
In order to achieve this behavior i suggest following the next steps:
After using the example to build a basic demo App: