C
C
CPPJunior2015-11-24 15:40:12
C++ / C#
CPPJunior, 2015-11-24 15:40:12

Can I programmatically use OneDrive for Business to sync files?

Good day.
I need to sync files one way. Those. 1 person (expert) in the course of working in the program changes some files, and all other instances of the program must receive these changes. Actually the question is: can I do this using OneDrive for Business (provided that Office365 is installed on my computer )?
More details as I see it.
I create a folder in OneDrive , share it for everyone ( read only ) and give someone editing rights. When the program starts, it somehow looks to see if the user is logged into Office365 . If logged in, then, accordingly, you can create a folder on your local computer and pull files there fromOneDrive . If the current user is read only , then we are currently reading from the folder (in this case, the files in the folder are probably automatically updated as they change). If the current user can edit, then we can modify the files in that folder. If the user is not logged in, then ask to log in to create a folder or (if it already exists) to get the actual files.
PS: I'm writing in Visual Studio 2013 and QtCreator + visualc++2008 (don't ask :D). Win7, Win8.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question