2

https://developers.google.com/drive/v2/reference/files/list

Are there Go examples using the code.google.com/p/google-api-go-client/drive/v2 package. Is there another location for it? or just not released yet?

Grokify
  • 15,092
  • 6
  • 60
  • 81
strings
  • 137
  • 7

2 Answers2

2

It is not yet released, but you can build the client yourself, if you have the library installed with:

go get code.google.com/p/google-api-go-client/drive/v1
cd $GOPATH/src/code.google.com/p/google-api-go-client
go run google-api-go-generator/gen.go -api=drive:v2
go install ./drive/v2

I will submit a patch right now to get it added.

strings
  • 137
  • 7
Ali Afshar
  • 40,967
  • 12
  • 95
  • 109
  • thanks ali, I'll switch from useing my simple GETS and tryout the go client. I also ran into this issue. http://stackoverflow.com/questions/10331342/access-to-all-files-on-a-users-google-drive. But I think I can work around that. I wont be pretty though. – strings Jul 03 '12 at 00:06
  • I updated that answer, the latest Drive API allows requesting a full drive scope. Are you building something cool? – Ali Afshar Jul 03 '12 at 05:33
  • Thanks for updating the question. Right now I'm building a simple command line drive sync tool mainly for my linux boxes. So far with all the great changes in sdk 2 I have everything in place. I should have something working this week I'll push it to github when its complete. – strings Jul 03 '12 at 14:28
  • Ali I updated the answer encase someone else needs to working with v2. – strings Jul 03 '12 at 14:44
  • This is now committed to the library. – Ali Afshar Jul 09 '12 at 20:23
0

The package is there but not accessible from that URL:

You can browse the code from

http://code.google.com/p/google-api-go-client/source/browse/

and download and install it in you GOPATH

fabrizioM
  • 46,639
  • 15
  • 102
  • 119
  • 1
    v1 is there but not v2 ie you can "go get code.google.com/p/google-api-go-client/drive/v1" but not "code.google.com/p/google-api-go-client/drive/v2" it needs to be generated as ali mentioned. – strings Jul 03 '12 at 00:18