One of the requirements for the web application I'm creating is that users should be able to create and edit documents. I've been searching around and I came across the Google Drive REST API, however I'm a little unsure about what it can do.
From what I understand, the API allows my application to access a user's Google Drive account and their files, being able to open and edit them, as well as create documents using my application.
However, I was hoping that I could be able to use the Google Docs editor itself to create and open/edit documents, but from what I can gather is that the editor is up to me to create, and that I can use the Realtime API to enable the collaboration feature that Google Docs offers.
Is this the case? Is Google leaving the job of actually creating the document editor itself up to me (sorry if I sound like a whiny child here, it's an honest question), or does Drive API also provide their editor? The reason I want to use their editors is because it perfectly fits the requirements for the application, and it will be near impossible for me to compete with their document editor.
If I do I have to create the editor myself, can anyone recommend any open source/free document editors with similar features to that of the Google Docs editor that works with C# ASP.NET, or a way that I could somehow use the Google Docs editor in my application?
The short answer is no, Google does not allow directly editing Google Docs themselves, nor is there an API for recreating the Docs editor.
Bear in mind also that realtime data is not actually stored in Google Drive. Google uses Drive as its organisation method for realtime data, but the data itself, being collaborative, is not just a simple file. What is stored in Drive is a shortcut which links to your app's realtime data. In the case of an existing file (text etc), a shortcut is attached to the file, but it can also be a pure shortcut file, with no non-realtime data at all. Only your app can read or modify that realtime data, in much the same way that only Docs can (directly) work with its realtime data.
You can definitely re-create the capabilities of Google Docs using the realtime API, by exporting from Docs, using the realtime API to collaborate on the exported data, then re-import into Docs if necessary. At that point, Google Docs themselves may be superfluous.
What's involved will be something like this:
Set up an app in the Google developers console
Write the editor, and incorporate it in your app
Get the user to authorize your app to access their Drive
Using the picker, or another method, get the user to select a file.
Import that file from Docs
Collaboratively edit it within your app
Export it back to Docs.
You can embed Google Editor in to your web app and use it to edit, comment or read files, that are stored on Google Drive. You need:
click share button in the file
chose emails you want to share document with (or you can choose any one who has link, or even make it public)
choose permissions you want to grant: read, comment, edit
copy that link and paste it in the <iframe src=google_link width=x height=y></iframe> tag in your UI.
I am creating WPF application and I am using Google drive API for uploading and downloading files. As the G-mail provides Revision History for files on drive, I also want to implement it in my project and get the detailed list of revisions for a file. Is there some kind of event for this? Can anyone tell me how this work and how can I implement it in my application? And how to revert to the previous version of the file?...
I found answer for the above and also mentioned it in the comments.
I want to use revision history in the scenario like:
I have uploaded a document on Google drive of around(or more) 500 MB and another user
downloads it on their PC and changes 2-3 lines in that document and then upload it again so
instead of uploading the entire document I want the changed version only to be get merged in the already uploaded document as it will be time consuming if one downloads the same
document of 500 MB and make some little changes and then upload the entire document again.
How to achieve this in .net?
You can try calling the google WebAPI
List of revisions
GET /files/{fileId}/revisions
Retrieving a particular revision
GET /files/{fileId}/revisions/{revisionId}
More details at:
https://developers.google.com/drive/v2/reference/#Revisions
this question is for people that have experience with Instagram. I want to create an application that uploads a set of images to Instagram, but I have never used their API.
I want to know if it is possible to upload images through the API, and if it's not, is there an alternative?
Thanks.
According to: http://instagram.com/developer/endpoints/media/
At this time, uploading via the API is not possible.
So no.
This question is also answered here:
Posting to Instagram via Script/Online/Program. Anything is good but mobile
I have to backup excel file daily and i need that my excel file could automatically upload on SQL server at exact time which i want.
I am new to C# so dont know from where i can get proper help regarding this issue.I have searched in google but confused by many methods and complicated codes etc.
I am much desperate now so please help me out and send me links about this.
Write the windows service in C#.net to achieve this.
Details of Windows Service with sample:
http://www.codeproject.com/Articles/3990/Simple-Windows-Service-Sample
I need to make a windows desktop application in c# that downloads all the PDFs from a website. I have the link to the website but the problem i am facing is that the PDFs are not in a specific folder on the website but are scattered all over.
The thing i need is help at finding all those links so i can download them or any other advices that could help me with my problem.
Thanks to all help in advanced.
Scrape through all the pages
Find all the "*.pdf" URLs
Reconstruct them and simply download :)
Please be more specific are you trying to get all the PDFs from the html page or from the whole domain ?
What you are trying to do is known as Web scraping, there are some libraries which can make your task easy one of them is IronWebScraper but its paid one.
An extensive list of NuGet packages is available here which can be used for web scraping purpose.