I am writing an ios application which needs to sync the user's skydrive files and folders. I can not find any REST API to get the changes of user's files and folders. Without this how can I do this sync? If I got user's drive snapshot at t1, then at another time t2, I want to know which files are added/modified/deleted. I am unable to find out how to do this. Please help.
Hopefully, this topic can help you. You can sync files by uploading files with the LiveUploadOverWriteOption as LiveUploadOverwrite. http://msdn.microsoft.com/en-us/library/dn659728.aspx#update_files
Related
My application will be storing data on Onedrive. I will be recommending the user to unlinking sync of his onedrive from his machine. Is it possible for excluding Onedrive from syncing my application folder ? Will using onedrive.AppFolder help in any way ?
I am trying to upload a file generated by the process into OneDrive. I haven't started the code to share with you guys. I looked into google but couldn't find anything. I have to authenticate the user and the upload the file to a particular folder . I even tried to use
Microsoft.onedrive.sdk
But I couldn't move any where can anyone please help me out . Pleas note that the upload accounts may change on based on the document produced .
Thanks in advance.
I have read Google Drive API documentation but I'm not able to understand the following:
Can files and folder be created and modified on drive in background of app?
My application needs working of drive in background.
For Files:
If you will check "Working with File Contents":
Lifecycle of a Drive file
The Drive Android API lets your app access files even if the device is offline. To support offline cases, the API implements a sync engine, which runs in the background to upstream and downstream changes as network access is available and to resolve conflicts.
Check this image from the document.
The lifecycle of a DriveFile object:
Perform an initial download request if the file is not yet synced to the local context but the user wants to open the file. The API handles this automatically when a file is requested.
Open the contents of a file. This creates a temporary duplicate of the file's binary stream which is only available to your application.
Read or modify the file contents, making changes to the temporary duplicate.
Commit or discard any file content changes that have been made.
If there are changes, the file contents are queued for upload to sync them back to the server.
Google API does support running in background. For folders there is no documentation regarding creating of folder can be done in background, but I think same implementation can be done.
I hope this helps.
I have a problem with the native FilePicker in UWP.
I wish to download a file from OneDrive which contains data. After I´ve modified the data on my phone I wish to sync the extern file on OneDrive.
The concept is very easy. I have a SQLite database as local data storage. When I export data, the database will be serialized into a XML file which I want to store somewhere else.
The idea was to sync the file with OneDrive. I saw this concept in many Apps before.
So I´ve tried to download the file with the native FilePicker. I can get all data, no problem. But if I would modify data, the changes would not apply to OneDrive...
Some references:
C# UWP LiveSKD and OneDrive access using FileOpenPicker
https://dev.onedrive.com/sdks.htm
Add OneDrive to your app in minutes with a few lines of code. File picker SDKs allow you to quickly download or link to files already in OneDrive, or save files into OneDrive without writing much code. Quickly integrate your app with OneDrive today!
How can I solve this problem ?
We have a requirement where we should provide capability to upload files up to 100 GB size. Current flow which we have is to put the file from client location/local system to the application server. Then application server pushes the file to a service account in Google Drive server. I would like to know if there is a way to push the file from local system directly to service account in Google Drive. This would help us to not have to store such big files in application server. Please let me know. Also would like to know if we can actually have Drive installed in our local system to point to a service account. This way these big files can be put into the drive location and it will be synced to server in the background.
I would like to know if there is a way to push the file from local system directly to service account in Google Drive
The only way I know is for you to upload them. The Upload Files page in the Drive API documentation details this feature. In your case, you'll have to use uploadType=resumable due to the file size you'll upload.
Also would like to know if we can actually have Drive installed in our local system to point to a service account
Syncing ala-Dropbox might be a bit tricky, I haven't read anything in the Drive documentation that has this feature. Syncing to desktop is usually just a .glink shortcut that will open up a browser.