Questions tagged [google-api-go-client]

54 questions
2
votes
2 answers

Go client for Google Drive SDK v2

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?
strings
  • 137
  • 7
1
vote
0 answers

403 error while trying to list users from google workspace over Service account

func (s *Sync) GetGoogleAccounts() error { ctx := context.Background() creds, err := google.CredentialsFromJSON(ctx, []byte(s.GoogleApiToken), admin.AdminDirectoryUserScope, admin.AdminDirectoryGroupScope, …
Vajura
  • 1,112
  • 7
  • 16
1
vote
1 answer

Golang: what to do with google.golang.org/api obsolete dependencies on golang.org/x/net

Recently github.com Dependabot complained on some dependencies in my project which are vulnerable to DOS, have a "Broken or Risky Cryptographic Algorithm", and have a bug with "Uncontrolled Resource Consumption". Specifically, it is warning me about…
GRbit
  • 39
  • 7
1
vote
1 answer

Gmail API shows empty body when getting message

When I send a request to get the email body, the Gmail API returns everything but the body data on the payload object. Things I've tried so far The "Watch" method is already implemented and working fine As you can see from the screenshot, the…
1
vote
1 answer

Add multiple events in Google Calendar using batch request

I want to add multiple events in google calendar using google calendar API. I am thinking of using batch request for the same but unfortunately, I couldn't find any helpful pkg or article to help me send batch request using golang. can anyone please…
1
vote
1 answer

Go lang / client : How to describe a node using go/ client

I want to use go client to describe a node, to be specific I want to list the node condition types and it's status and also events. Edit: I was able to describe the node and get node condition but not events or cpu/memory.
1
vote
1 answer

Access Google API with API Key

I'm creating a server side app which is able to access (Create, edit & delete files) specific folder in my google drive. I was able to achieve it with both OAuth and service account but I wanted do it without OAuth or service account like in…
1
vote
1 answer

Use custom HTTP client with Google's API go library?

In order to make use of Google's API go SDK, we need to make use of the token source. This works great on its own, but becomes a problem when using a custom HTTP client. The documentation does mention that options are not preserved when making use…
1
vote
2 answers

How to retrieve folder by ID in a shared drive with Google Drive API v3

I'm trying to retrieve a specific folder based on a driveId and a folderId. I can easily retrieve a folder by its ID if it's in the user's drive like so: folder, err := srv.Files.Get(folderId).Do() If the folderId I pass refers to a folder in a…
user3427070
  • 499
  • 5
  • 14
1
vote
1 answer

Golang with Google V3 API: Passing alt=media to Export call

In Google V3 API for the Go language, how do I pass alt=media to a Files.Export() call? The V3 website does not state how it works for golang. I am simply trying to convert a Google doc to a text document and store it within the drive. Calling…
Devon
  • 11
  • 1
1
vote
2 answers

Google sheets API - download data with no formatting

Using Go, when fetching sheet data, the data is arriving with its applied cell formatting i.e. "$123,456" while I need the original 123456. is there something in the api that can remove formatting? like formatting: false code: package main import…
EldadT
  • 912
  • 7
  • 21
1
vote
1 answer

6g: command not found error while compiling external API code in Go

I'm new to golang and I'm trying to write a program using this tutorial. However I'm getting this error thrown while compiling it. 6g: command not found Here's what I've tried: $ go version go version go1.4.1 darwin/amd64 I've set environment…
1
vote
0 answers

Uploading csv to sheets using the golang sdk now produces a docs file

I have some code that has been happily creating sheets files in google drive by uploading csv files. Over the weekend, it stopped doing that and started resulting in docs files instead. Am I doing something wrong? Or is this a glitch in drive?…
user1959101
  • 113
  • 4
1
vote
1 answer

Using google-api-go-client on local devappserver

I am writing an application that will be running on GCE and am using the google-api-go-client from https://code.google.com/p/google-api-go-client/ to store data in GCS. I have a GAE application running as well that the GCE application communicates…
1
vote
1 answer

Google Glass Quickstart for GO Errors

When building the GO quickstart for the Google Glass mirror API I am getting the following error. Has anyone been able to resolve this? attachment.go:21: can't find import: "code.google.com/p/google-api-go-client/mirror/v1" Update to show relavant…
jjr2527
  • 440
  • 1
  • 6
  • 16