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

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.