Questions tagged [google-api-go-client]
54 questions
5
votes
2 answers
How to set scope for token in Google Play Developer Reporting API
I started to use Google Play Developer Reporting API with using Golang(https://pkg.go.dev/google.golang.org/api@v0.79.0/playdeveloperreporting/v1beta1), and faced with issue related to API scopes:
Code:
package main
import (
"context"
…

Art555
- 71
- 1
4
votes
1 answer
googleapi: Error 403: Request had insufficient authentication scopes. More details: Reason: insufficientPermissions, Message: Insufficient Permission
I am trying to send an email with Gmail API. But I get this error
googleapi: Error 403: Request had insufficient authentication scopes.
More details:
Reason: insufficientPermissions, Message: Insufficient Permission
I think it might bee related to…

Camille Basbous
- 299
- 5
- 11
- 34
4
votes
2 answers
Connecting to AppEngine datastore in development via Cloud Datastore API
We are currently running a combined AppEngine / GCE app and thus far have kept all of our datastore access on the AppEngine side of things. Now we are exploring also allowing our GCE instance to make some queries into the (shared) datastore. To…

Ian Rose
- 667
- 1
- 6
- 18
3
votes
1 answer
Google-api-go-client: listing messages w/ label and fetching header fields
I want to list messages with a specific label. So I used the Go Quickstart code from google and set the scope to gmail.MailGoogleComScope.
Getting a list of all messages with label "INBOX" works fine using this code
mes, err :=…

user60589
- 147
- 7
3
votes
1 answer
Cloud Storage - can retrieve Object via API, but strange errors when trying to access the MediaLink
I am using golang on appengine (go version go1.2.1 (appengine-1.9.3) linux/386)
My new app is having trouble when trying to read a cloud storage file's contents. I can get the Object info via google-api-go-client, and the MediaLink gives me a URL…

tgreiser
- 393
- 3
- 13
3
votes
1 answer
Upload large files to Google Drive via Golang API
I'm using the google-api-go-client to try to upload files to Google Drive. My code looks very similar to the example code in the library:
goFile, err := os.Open(file_to_upload)
if err != nil {
log.Fatalf("error opening file: %v", err)
}
file_meta…

Gregable
- 523
- 4
- 10
3
votes
2 answers
How to access a namespace hidden by a variable in Go?
I've recently wrote the following code in Go:
import (
tasks "code.google.com/p/google-api-go-client/tasks/v1"
)
func tasksMain(client *http.Client, argv []string) {
taskapi, _ := tasks.New(client)
tasklists, _ :=…

laurent
- 88,262
- 77
- 290
- 428
3
votes
2 answers
how to verify JWT signature?
I want to authenticate Android users with a Go AppEngine backend,
I can easily get an ID-token in Android by following http://android-developers.blogspot.co.il/2013/01/verifying-back-end-calls-from-android.html
the ID-token payload can be verified…

Gal Ben-Haim
- 17,433
- 22
- 78
- 131
2
votes
1 answer
Go gmail api quickstart results in localhost refused to connect ERR_CONNECTION_REFUSED
I'm following the steps in go quickstart gmail api.
On the function getTokenFromWeb, pasting either the long…

vbp13
- 1,040
- 1
- 10
- 20
2
votes
1 answer
Unable to upload files to Google Drive
I followed the instructions on this Github gist to upload files to Google Drive. I created a folder on my drive and shared with my service account (email) but I can't find the files on the folder. When I try to list the files, I get them as shown…

shekwo
- 1,411
- 1
- 20
- 50
2
votes
1 answer
Rate limited with the response MY_CONTACTS_OVERFLOW_COUNT
I am proto-typing an application using Google new People API. During my testing I have added and deleted contacts in batches, to see how many can be added per minute and per day in total.
I understand the documentation say how many can be added per…

user3370778
- 31
- 2
2
votes
1 answer
How to list Google Drive files not shared with the organisation
I'm trying to retrieve all Google Drive files that where created by users within my organisation (Domain-wide delegation and the drive role are set).
srv.Files.List().Corpora("domain").Fields("*").Q(modifiedTime).PageSize(1000).Pages(d.ctx,…

KadoBOT
- 2,944
- 4
- 16
- 34
2
votes
1 answer
How to set the schedule to Google Calendar from google-api-go-client?
I wanna set the schedule to google calendar from google-api-go-client.
I got tired set the schedule with google calendar application :(
Is there any sample?

Junya Kono
- 1,121
- 3
- 10
- 16
2
votes
1 answer
golang appengine - filename too long
I developed an appengine application in GO and now I tried to use the androidpublisher api. For this I need many dependencies…

user3603632
- 437
- 4
- 17
2
votes
1 answer
external package from go get
I want use code.google.com/p/google-api-go-client/drive/v2 and other.
My app is structured like:
+-- MyApp
+---- app.yaml
+---- main.go
+---- src/
+------ ...external package...
My GOPATH is equal to "MyApp/src"
In my main.go I have `// +build…

Druxtan
- 1,311
- 2
- 15
- 21