quickstart

Uploading CSV File as Spreadsheet and Modifying Permissions using Golang

Gists This sample script is for uploading CSV file as Spreadsheet and modifying permissions using Golang. I think that the detail information of google-api-go-client is a bit little. The sample scripts are so little. It retrieves most information from only godoc and GitHub. So I publish such sample scripts here. If this is useful for you, I’m glad. Important points : Give mimeType of file that it wants to upload to options of Media(r io.

Exporting Project on Google Drive using Golang Quickstart

Gists This is a sample script for exporting a project on Google Drive to local PC using Golang Quickstart. A file with refresh token is saved to the same directory with this script as go-quickstart.json. Before you run this script, please enable Drive API on your Google API console. Points for exporting project In order to export project, both drive.DriveScriptsScope and drive.DriveScope have to be included in the scope. The mimeType for exporting has to be “application/vnd.