rakyll / drive

Pull or push Google Drive files
471 stars 507 forks source link

Use GOOGLE_API_CLIENT_ID and GOOGLE_API_CLIENT_SECRET #35

Open ccmaymay opened 9 years ago

ccmaymay commented 9 years ago

Hi rakyll,

Thanks for writing the drive tool---it's very nice. :) I changed Init() to read GOOGLE_API_CLIENT_ID and GOOGLE_API_CLIENT_SECRET, respectively, from the environment. If either is empty, an error is returned. This is minimalistic, and won't work for everyone, but if you like it feel free to merge. (This is also my first foray into go so it may not be very idiomatic!)

Chandler