I am trying to see if I can update created and modified date of a mp4 file on Google drive.
This is not a question from a developer stand point but anything that can help me to get the job done would work. That said, if there is some way in Google Drive UI (Web App or smart phone app etc.) or using [Google's API harness][1]
to update the modified date of a file, I am ok with it. If your answer includes using API harness, please let me know where can I get the values for the API's parameters so I can run the API call from my login.
Just curious, if I somehow manage to update the modified time of the same file on my computer's hard drive, and then upload it (replace/revise an existing file on Google drive) would it read the meta-data from the file, or Google would use the time I uploaded the document as "modified date"?
Please note:
This is not specifically Google Drive API question, but if Google has an API test harness and I can put in some parameters there to update the file meta-data, I do not mind going to that route.
Related
I have a google drive where am storing few google sheets. My java web application is able to search a file that is present in my own google drive using Javascript API. Is there a way to search for a specific files in other's google drive via code? i will be getting the shareable link to the google drive am supposed to search. can this be done? As far as i checked this is not possible. Also there is no where in google document that says i can search files in other's drive. Kindly someone confirm.
This is an OAuth question, not a GDrive question.
The account that the GDrive API will apply to is determined by the Access Token that it is called with. So, if you can get an Access Token for somebody else's Drive, then you can use that to search their drive. How you would get such a token will depend very much on the details of your use case and the trust relationship.
I'm looking for a way that I can programmatically get diffs of a file that is on Google Drive and information of who modified the file.
It seems that Google Drive API does not provide diffs, but they provide revisions of a file via Revisions API.
Revisions.list() method returns an URL of each revision of a file. So, it is possible to check the difference between two revisions if I download them and compare with each other.
But I cannot know who modified the file in this way. Response of Revisions.list() method returns only one editor of the file if other people are editing at the same time.
Does anyone have any idea how to get such data?
I found that I could see how & who modified a file on Google Drive.
( File -> See reision history )
Thanks
I would like to build an application on a webpage, that does as google docs:
I want to build an app that allow people to work on a document in collaboration
I start with this: https://developers.google.com/drive/realtime/realtime-quickstart
But the problem is that it creates a file with the mimetype is "application/vnd.google-apps.drive-sdk".
I would like to work with google docs format, so people can open them with their google drive and edit their later.
The file created is not the proper format, and find it me impossible to open it.
( I try to edit the mimetype with "application/vnd.google-apps.document", however it creates the file in the google drive but it can't find the file when it try to load it).
How to create a google doc in realtime ? (If you can post the code here, it would help me a lot)
Then, it want to add the toolbar for editing(bold, italic,...).
After that, it would like to add the google picker to select the file to load.
I am writing an application that can modify an spreadsheet in Google Drive, but the problem is that each time I try to access Drive contents it asks for access token as per the OAuth2 specification which I have to generate manually after browsing through the following link:
https://accounts.google.com/o/oauth2/auth?access_type=online&approval_prompt=auto&client_id=<THE_CLIENT_ID>&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/drive
Anybody having idea if its possible to either get this token through Drive API or through any other medium, The client application will be in the form of a Java Swing application in which there will be text fields the text inserted in those fields will be added as a row in the spreadsheet hosted on the Google Drive.
Thanks
You need to get the token manually the first time, but then you can reuse it. I guess this is a duplicate?
Stored Credential from google api to be reused java
must I click "Allow Acess" every time I connect? Google Drive SDK API
[EDIT] Sorry, I did not see the date.
When I upload any file then it will automatically add in my google drive in google doc format account by php code.
What will be the steps by step process to do this
You need to insert the file, making sure you pass the convert=true parameter. Try out the PHP quickstart guide to get started.