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

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.