-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Cant upload to or list folder under Shared drives #470
Comments
Shared drives are a bit hard to work on as it needs G suite admin access to use it an its API parameters a bit different (which recently changed as well). So currently no support for it, but I'll mark this as missing feature and check. |
If you can point me to the API, and tips on how to get started with gdrive prog, I might take a crack at it myself. |
The API guide is here: https://developers.google.com/drive/api/v3/about-shareddrives $ go get github.com/gdrive-org/gdrive and get started with the code. I'll attach a contribution guideline too as soon as I resolve some urgent issues I'm facing. Thanks for the kind offer btw |
Side comment:
Seems like new golang features suggest it would be better to transition
your "vendor"subdir, into explicit version references.
https://golang.org/cmd/go/#hdr-Defining_a_module
module example.com/m
require (
golang.org/x/text v0.3.0
gopkg.in/yaml.v2 v2.1.0
…On Thu, Jul 4, 2019 at 9:13 AM M. Mucahid Benlioglu < ***@***.***> wrote:
The API guide is here:
https://developers.google.com/drive/api/v3/about-shareddrives
If you're familiar with the go language you can execute
$ go get github.com/gdrive-org/gdrive
and get started with the code.
I'll attach a contribution guideline too as soon as I resolve some urgent
issues I'm facing.
Thanks for the kind offer btw
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#470>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANEV6MZNC74U2AUGMBS7TLP5YOSTANCNFSM4H4W3G4Q>
.
|
HI again,
I'm trying to find where/how to set this supportsAllDrives=true
value. It talks about "Drive UI Integration". and it talks about the
google API console.
but usually, this sort of thing, is tied to an application? I've used
google apps a little before, and that usually involved having the app
use some kind of credential generated by a project. Then you can tweak
permissions in the project settings.
But gdrive setup talks about using an individual USER cred. not a project cred.
Is there missing instructions for setting up with a project ?
in a project menu I have,l can enable drive API. and then it suggests
making a credential. But its not clear to me which role I should
select for the service account.
Cloud filestore? ??
…On Thu, Jul 4, 2019 at 9:13 AM M. Mucahid Benlioglu ***@***.***> wrote:
The API guide is here: https://developers.google.com/drive/api/v3/about-shareddrives
If you're familiar with the go language you can execute
$ go get github.com/gdrive-org/gdrive
and get started with the code.
I'll attach a contribution guideline too as soon as I resolve some urgent issues I'm facing.
Thanks for the kind offer btw
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
User credential is only a way of authorizing gdrive to access your drive files/folders. Gdrive is tied to a project in Google console, project key is created by Petter and hardcoded to code (for now). You can setup your own project and credentials for the project too. Check this out #426. |
Well, I submitted a very small.. and WORKING! patch to allow easy use of
alternative project credentials.
It uses the credentials.json file downloaded directly from google.
…On Tue, Jul 9, 2019 at 4:03 PM M. Mucahid Benlioglu < ***@***.***> wrote:
User credential is only a way of authorizing gdrive to access your drive
files/folders. Gdrive *is* tied to a project in Google console, project
key is created by Petter and hardcoded to code (for now). You can setup
your own project and credentials for the project too. Check this out #426
<#426>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#470>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANEV6I3CZFUMP6HAISPQBLP6UKKTANCNFSM4H4W3G4Q>
.
|
Did your patch get merged at any point? And would where would I get your source? I'd like to test this feature. |
i don’t think it got merged.
check the pull requests area
…On Fri, Sep 6, 2019 at 3:54 AM JanKlopper ***@***.***> wrote:
Did your patch get merged at any point? And would where would I get your
source? I'd like to test this feature.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#470>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANEV6MUGKVJBHTZIRMNIS3QIIZHBANCNFSM4H4W3G4Q>
.
|
I've compiled your pull request and put my project credentials.json in ~/.gdrive but it still returns a 404 when I try to get info on a shared drive file. |
my pull request was just to make things simpler. i don’t think it addressed
the shared drives problem.
…On Mon, Sep 30, 2019 at 9:20 AM hedgehog90 ***@***.***> wrote:
I've compiled your pull request and put my project credentials.json in
~/.gdrive but it still returns a 404 when I try to get info on a shared
drive file.
Does the aforementioned 'supportsAllDrives' value still need to be set
somewhere in the source code? Or have I created the wrong credentials file
I wonder...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#470>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANEV6N3774WDIYVACOUKQTQMIRMJANCNFSM4H4W3G4Q>
.
|
So, I guess it was never solved? Trying right now and getting the same 404 response with shared drive :( |
same here :/ |
Same problem. It would has been great to have this feature 😞 |
@mbenlioglu : did you do progress on that front? I'm having troubles with a Shared Drive. |
I dont see a way to get info or list things udner the "Shared drives" area in google drive.
If I navigate to a shared drive folder in my browser,
https://drive.google.com/drive/folders/0AE0r2p7xxxxxxxxxxx
gdrive info 0AE0r2p7xxxxxxxxxxx
fails, with a googleapi Error 404: File not found
but that method works fine for non-shareddrive folders.
Any suggestions?
The text was updated successfully, but these errors were encountered: