Tom Denham 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
..
adexchangebuyer 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
adexchangeseller 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
admin 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
adsense 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
adsensehost 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
analytics 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
androidenterprise 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
androidpublisher 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
appengine 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
appsactivity 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
appstate 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
autoscaler 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
bigquery 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
blogger 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
books 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
calendar 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
civicinfo 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
classroom 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
cloudbilling 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
cloudbuild 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
clouddebugger 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
cloudlatencytest 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
cloudmonitoring 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
cloudresourcemanager 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
cloudtrace 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
clouduseraccounts 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
compute 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
container 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
content 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
coordinate 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
customsearch 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
dataflow 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
dataproc 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
datastore 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
deploymentmanager 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
dfareporting 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
discovery 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
dns 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
doubleclickbidmanager 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
doubleclicksearch 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
drive 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
examples 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
fitness 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
freebase 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
fusiontables 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
games 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
gamesconfiguration 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
gamesmanagement 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
gan 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
genomics 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
gensupport 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
gmail 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
google-api-go-generator 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
googleapi 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
groupsmigration 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
groupssettings 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
iam 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
identitytoolkit 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
integration-tests 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
kgsearch 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
lib 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
licensing 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
logging 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
manager 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
mapsengine 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
mirror 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
oauth2 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
pagespeedonline 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
partners 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
playmoviespartner 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
plus 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
plusdomains 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
prediction 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
proximitybeacon 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
pubsub 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
qpxexpress 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
replicapool 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
replicapoolupdater 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
reseller 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
resourceviews 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
script 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
serviceregistry 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
siteverification 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
spectrum 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
sqladmin 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
storage 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
storagetransfer 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
tagmanager 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
taskqueue 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
tasks 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
translate 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
urlshortener 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
vision 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
webfonts 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
webmasters 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
youtube 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
youtubeanalytics 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
youtubereporting 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
.hgignore 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
.hgtags 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
.travis.yml 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
AUTHORS 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
CONTRIBUTING.md 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
CONTRIBUTORS 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
GettingStarted.md 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
LICENSE 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
Makefile 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
NOTES 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
README.md 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
TODO 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
api-list.json 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu
key.json.enc 5a2db92663 Add glide.lock and update GCE dependencies 8 lat temu

README.md

Google APIs Client Library for Go

Status

Build Status

These are auto-generated Go libraries from the Google Discovery Service's JSON description files of the available "new style" Google APIs.

Due to the auto-generated nature of this collection of libraries, complete APIs or specific versions can appear or go away without notice. As a result, you should always locally vendor any API(s) that your code relies upon.

Announcement email:

Getting started documentation:

In summary:

$ go get google.golang.org/api/storage/v1
$ go get google.golang.org/api/tasks/v1
$ go get google.golang.org/api/moderator/v1
... etc ...

For docs, see e.g.:

The package of a given import is the second-to-last component, before the version number.

For examples, see:

For support, use the golang-nuts@ mailing list:

Application Default Credentials Example

Application Default Credentials provide a simplified way to obtain credentials for authenticating with Google APIs.

The Application Default Credentials authenticate as the application itself, which make them great for working with Google Cloud APIs like Storage or Datastore. They are the recommended form of authentication when building applications that run on Google Compute Engine or Google App Engine.

Default credentials are provided by the golang.org/x/oauth2/google package. To use them, add the following import:

import "golang.org/x/oauth2/google"

Some credentials types require you to specify scopes, and service entry points may not inject them. If you encounter this situation you may need to specify scopes as follows:

import (
        "golang.org/x/net/context"
        "golang.org/x/oauth2/google"
        "google.golang.org/api/compute/v1"
)

func main() {
        // Use oauth2.NoContext if there isn't a good context to pass in.
        ctx := context.Background()

        client, err := google.DefaultClient(ctx, compute.ComputeScope)
        if err != nil {
                //...
        }
        computeService, err := compute.New(client)
        if err != nil {
                //...
        }
}

If you need a oauth2.TokenSource, use the DefaultTokenSource function:

ts, err := google.DefaultTokenSource(ctx, scope1, scope2, ...)
if err != nil {
        //...
}
client := oauth2.NewClient(ctx, ts)

See also: golang.org/x/oauth2/google package documentation.