Stream

Join this community to post or comment
Pinned by moderator

Eric Koleda
moderator

Announcements  - 
 
This is not the community you're looking for

If you have questions or comments about using Google Drive the product, then you want to do to the Google Docs and Drive community linked below. This community is intended for software developers that use the Drive SDK and APIs. 
Google Docs and Drive
The largest unofficial community for discussion of Google Docs and Drive.
View community
102
25
Magnus Roenn's profile photoJoward Malaiba's profile photo
8 comments
 
May sony sp xperia doest not google system.. Thats why im not create my google application.. 
Add a comment...

Sujeet Kumar

Feature Requests  - 
 
I am using this API to get the list of changes done to my files.

I am getting proper response as well. However, I don't see any way to Identify which sheet of the spreadsheet file has been changed . Do we have any fields that indicates this ?

API Used - GET https://www.googleapis.com/drive/v3/changes

I am referring to this web page -
https://developers.google.com/drive/v3/reference/changes/list
2
Eric Koleda's profile photo
 
No, unfortunately the Drive API only lets you know that something changed, but not what. You'll need to sync the file to your system to determine what changed.
Add a comment...
 
I have tried to create a sample program using Node.js, following instructions from https://developers.google.com/google-apps/activity/v1/quickstart/nodejs

I throws an error saying cannot read property 'client_secret' of undefined when trying to run it.

Looking for your valuable suggestions.

Thanks in advance.
1
Add a comment...

Arjun Kaushal

Feature Requests  - 
 
Unable to find reason why I am not getting details of files in Server to Server Communication. It shows in Quota that my request is hit over there. Drive service is created successfully. How to check where I am making mistake in this? Here I need to access my drive file using my service account credentials.
3
Arjun Kaushal's profile photo
 
Found the solution, as we create service account for it. we have to share our Google Drive file with that service account or find a way using which we can create service account having our email Id as service account Id.
Add a comment...

Herkko Hietanen

Discussion  - 
 
How can I use the Drive API (PHP) to create a Doc which is in landscape?

I have a php-template which has a wide table which does not fit to a portrait document. I know how to manually turn the document 90 degrees, but the damage is done at that point, because I then have to manually increase the table cell widths - and who needs manual work anyways.
1
Add a comment...
 
Hi, I'm currently working google drive php cli with v3. I'm having problem retrieving the file->size and other file methods of a file list. I can only retrieve the file->name and file->id. Anyone have an idea why other methods was null?
1
Roy Smith's profile photo
 
Check that size is one of the properties you have requested in your GET. Also be aware that native Google file types don't have a size.
Add a comment...
 
After sharing a folder in Google drive, documents contributed by members are not owned by me. Can I use a Google API to change all files in the folders to me as the ownership recursively? If yes, can share some reference where I can start on this? Can this be applied to documents created by Google Apps and uploaded files (e.g. zip, pdf and etc)
1
Roy Smith's profile photoBjorn Behrendt (EdListen)'s profile photo
2 comments
 
You need to create a service account, which the process has changed since I made this script, but if you get it working this script will work.

http://scripts.edlisten.com/transfer-ownership
Add a comment...

Zoltan Demant

Discussion  - 
 
I like to run into unique bugs that I rarely see people talk about, this is one of them.

http://stackoverflow.com/questions/37100463/android-google-drive-error-downloading-file
1
Add a comment...

Mike H

Feature Requests  - 
 
add a notification to the drive api when a user has closed the file. So a background task can fetch the newest version of the file 
1
Eric Koleda's profile photoMike H's profile photo
4 comments
Mike H
 
Thanks Eric 
Add a comment...
 
How to do resumable upload using v3 API and the Python SDK?

G has an example of how to perform a resumable upload using the v2 API and the Python SDK here:

https://developers.google.com/api-client-library/python/guide/media_upload#resumable-media-chunked-upload

It works and is pretty straightforward.

However, I can't seem to move that concept forward to the v3 API.

I can create an apiclient.http.MediaFileUpload with resumable=True

If I change apiclient.files().insert() to apiclient.files().create().execute(), it just block and uploads the file directly. If I do not call execute, then what I get back does not support .next_chunk()

I know I can just drop down to the http level and do this directly, as the REST calls are all well-documented. But it would be great if I could continue to use the Python SDK.

Can anyone help me understand where I'm going wrong, or point me to a working example with the current SDK and the current drive API?

Best,
Dave J

3
Steven Bazyl's profile photoDavid Jacobowitz's profile photo
6 comments
 
Well, it seems to be working now for me on 3.5 /and/ on 2.7, so I can't say what was going on. Perhaps it was an error on my part. The issue was definitely something to do with next_chunk() throwing an exception.
Add a comment...

About this community

Official Google Drive SDK community. Join to meet other developers using the Google Drive SDK, share tips & tricks, or just keep up to date on the latest news about Google Drive.
 
Is there an API to read the google drive app share settings in the admin console of the google apps account. Appreciate any help.
1
Rio Akasaka's profile photoEric Koleda's profile photo
3 comments
 
In general the Admin SDK provides this kind of domain-level data, but the APIs don't yet expose information about Drive's settings.
Add a comment...

Thomas Rosenstein

Tips & Tricks  - 
 
Hi, I'm trying to call the google drive api v3 with the pageSize parameter, in the API it's mention I can limit from 1 - 1000.

But it only works if the limit is set from 1 - 100.

Is this a limitation for specific accounts? Or is the documenation wrong?!
3
Roy Smith's profile photoThomas Rosenstein's profile photo
7 comments
 
Doing myself, everthing checked throug varing the size down to 10 in 10 decrements, starts / stops working at 100
Add a comment...
 
Hi,

I want to save file information to a database but I'm not sure about the sizes to use for the columns. (e.g. google drive file ids and such)

Are there any limits defined for the various database types?

Thanks

1
Steven Bazyl's profile photoRoy Smith's profile photo
6 comments
 
since you're using VARCHAR, you might as well make it varchar 65535 (or whatever your db supports), since there is no storage penalty. Varchars are stored as variable length strings.
Add a comment...

Arjun Kaushal

Discussion  - 
 
Hi all, I need help about Google Drive. Is that possible to download file from my Google Drive at client side without any user interaction? 
1
Arthur Thompson (jr)'s profile photoArjun Kaushal's profile photo
7 comments
 
+Arthur Thompson Thanks, I have done with creating connection, but not know why I am not able to get my drive files instead getting only one file named Getting started. Is there any area where I am missing something?
Add a comment...

Ivan Kuckir

Discussion  - 
 
Hi, I am a programmer developing a free online photo editor http://www.Photopea.com . I have added support for Google Drive (Drive API) to reach more users.

When I right-click a PSD file (from Adobe Photoshop) in my Drive, there is an option Open With ... Pixlr Editor, CloudConvert, Driveconverter ... I have none of those apps installed.

Can I make Google Drive suggest my app Photopea as the default app for PSD to other users? I think it has much better support for PSD than Pixlr, and it does not require Flash Player.

Now, it seems, that Pixlr suggestion is "hardcoded" into Drive for all image formats. Am I right?
8
Ivan Kuckir's profile photoAlexander Ivanov's profile photo
8 comments
 
+Ivan Kuckir you have to meet with Marketing and Publicity Guidelines for Google Drive Apps https://developers.google.com/drive/v3/web/marketing#press_releases_and_media
Add a comment...

Peter Zingg

Discussion  - 
 
Is there a fast, easy way to calculate the size of a user "takeout" using the Drive API?

I'm contemplating building a backup/disaster recovery system for some of the critical Google Drive accounts in my Google Apps domain. To plan for the system, I need to estimate the hard disk storage space required to back up these accounts. I found the super-easy Users Usage report API in the Reports API, that can give me a few numbers:

accounts:drive_used_quota_in_mb
accounts:used_quota_in_mb

but I'm thinking these "quota" numbers only cover the non-native documents (and might not even include pictures). There's not a lot of documentation of what these quota numbers include. The "accounts:used_quota_in_mb" seems to match what you see on your Google Drive page (on the left side), but I don't think it's what I need. What I want is to calculate the space required for an account "takeout", which would involve straight downloading all of the non-native docs as well as saving native docs in their M$-compatible formats (.docx, etc.). Do you think there's an easy API script for gathering this information, or will I have to traverse every doc using the Drive API files.list method and then "download" each one to get the downloaded file size, and finally add it all up?


3
Eric Koleda's profile photo
 
Unfortunately I don't think there is an API that provides this information. The size of the exports of Google document types to binary files isn't known ahead of time, and depends on what format your export to (PDF, OpenOffice, etc).
Add a comment...

Felix Kollmar

Tips & Tricks  - 
 
Hey, we’ve just released a free Android library which provides you with an unified API to integrate e.g. Dropbox, Google Drive, OneDrive and Box in your App. Could that be helpful for you? We’d love to get your thoughts on it. You can get it from GitHub: https://github.com/CloudRail/cloudrail-si-android-sdk
cloudrail-si-android-sdk - Provides a repository for the CloudRail SI Android SDK
4
1
Add a comment...

Kevin Moore

Discussion  - 
 
Getting the file id for a file created with v3 ..seems to be an issue for me .. anyone have solution (Android)
3
Kevin Moore's profile photoChristopher C. Sanders's profile photo
3 comments
 
i thinks so
Add a comment...
 
Hi
I want that when i update .json file in google drive then .json in app automatically update ?
Is any one know how to code this or which functionality of drive i can use.
1
Add a comment...