Auto-generated Google APIs for Go
Go
Latest commit 0637df2 Aug 26, 2016 @mcgreevy mcgreevy committed with okdave iterator: unbreak pre-1.7 builds
Change-Id: I3767f9240c350987f72da0d095207d79becb44db
Reviewed-on: https://code-review.googlesource.com/7090
Reviewed-by: Dave Day <[email protected]>
Permalink
Failed to load latest commit information.
acceleratedmobilepageurl/v1 google-api-go-client: update all APIs Aug 2, 2016
adexchangebuyer google-api-go-client: update all APIs Aug 2, 2016
adexchangebuyer2/v2beta1 google-api-go-client: update all APIs Aug 2, 2016
adexchangeseller google-api-go-client: update all APIs Aug 17, 2016
admin google-api-go-client: update all APIs Aug 2, 2016
adsense google-api-go-client: add request hooks. Jul 27, 2016
adsensehost/v4.1 google-api-go-client: add request hooks. Jul 27, 2016
analytics google-api-go-client: update all APIs Aug 17, 2016
analyticsreporting/v4 google-api-go-client: update all APIs Aug 17, 2016
androidenterprise/v1 google-api-go-client: update all APIs Aug 2, 2016
androidpublisher google-api-go-client: update all APIs Aug 2, 2016
appengine all: fix broken build Aug 23, 2016
appsactivity/v1 google-api-go-client: add request hooks. Jul 27, 2016
appstate/v1 google-api-go-client: add request hooks. Jul 27, 2016
autoscaler/v1beta2 google-api-go-client: add request hooks. Jul 27, 2016
bigquery/v2 google-api-go-client: update all APIs Aug 17, 2016
blogger google-api-go-client: add request hooks. Jul 27, 2016
books/v1 google-api-go-client: update all APIs Aug 2, 2016
calendar/v3 google-api-go-client: add request hooks. Jul 27, 2016
civicinfo/v2 google-api-go-client: update all APIs Aug 2, 2016
classroom/v1 google-api-go-client: update all APIs Aug 17, 2016
cloudbilling/v1 google-api-go-client: add request hooks. Jul 27, 2016
cloudbuild/v1 google-api-go-client: update all APIs Aug 17, 2016
clouddebugger/v2 google-api-go-client: update all APIs Aug 17, 2016
clouderrorreporting/v1beta1 google-api-go-client: update all APIs Aug 2, 2016
cloudlatencytest/v2 google-api-go-client: update all APIs Aug 4, 2016
cloudmonitoring/v2beta2 google-api-go-client: add request hooks. Jul 27, 2016
cloudresourcemanager google-api-go-client: add request hooks. Jul 27, 2016
cloudtrace/v1 google-api-go-client: add request hooks. Jul 27, 2016
clouduseraccounts google-api-go-client: add request hooks. Jul 27, 2016
compute google-api-go-client: update all APIs Aug 17, 2016
consumersurveys/v2 google-api-go-client: update all APIs Aug 2, 2016
container/v1 google-api-go-client: add request hooks. Jul 27, 2016
content all: fix broken build Aug 23, 2016
coordinate/v1 google-api-go-client: add request hooks. Jul 27, 2016
customsearch/v1 google-api-go-client: add request hooks. Jul 27, 2016
dataflow/v1b3 google-api-go-client: update all APIs Aug 2, 2016
dataproc google-api-go-client: add request hooks. Jul 27, 2016
datastore google-api-go-client: update all APIs Aug 17, 2016
deploymentmanager google-api-go-client: update all APIs Aug 4, 2016
dfareporting google-api-go-client: update all APIs Aug 17, 2016
discovery/v1 google-api-go-client: add request hooks. Jul 27, 2016
dns google-api-go-client: update all APIs Aug 4, 2016
doubleclickbidmanager/v1 google-api-go-client: update all APIs Aug 2, 2016
doubleclicksearch/v2 google-api-go-client: add request hooks. Jul 27, 2016
drive google-api-go-client: update all APIs Aug 2, 2016
examples google-api-go-client: add If-None-Match support Oct 2, 2015
firebaserules/v1 google-api-go-client: update all APIs Aug 2, 2016
fitness/v1 google-api-go-client: update all APIs Aug 2, 2016
freebase/v1 google-api-go-client: add request hooks. Jul 27, 2016
fusiontables google-api-go-client: add request hooks. Jul 27, 2016
games/v1 google-api-go-client: add request hooks. Jul 27, 2016
gamesconfiguration/v1configuration google-api-go-client: add request hooks. Jul 27, 2016
gamesmanagement/v1management google-api-go-client: add request hooks. Jul 27, 2016
gan/v1beta1 google-api-go-client: update all APIs Aug 4, 2016
genomics google-api-go-client: update all APIs Aug 17, 2016
gensupport google-api-go-client: RegisterHook function for call hooks. Aug 10, 2016
gmail/v1 google-api-go-client: update all APIs Aug 2, 2016
google-api-go-generator generator: update golden test files Aug 24, 2016
googleapi googleapi: Add support for trace tokens. Apr 6, 2016
groupsmigration/v1 google-api-go-client: add request hooks. Jul 27, 2016
groupssettings/v1 google-api-go-client: add request hooks. Jul 27, 2016
iam google-api-go-client: add request hooks. Jul 27, 2016
identitytoolkit/v3 google-api-go-client: update all APIs Aug 17, 2016
integration-tests/storage integration test: disable conflicting Content-Type Aug 9, 2016
internal option: add load balancing option for grpc connections. Jul 20, 2016
iterator iterator: unbreak pre-1.7 builds Aug 26, 2016
kgsearch/v1 google-api-go-client: add request hooks. Jul 27, 2016
language/v1beta1 google-api-go-client: update all APIs Aug 2, 2016
lib/codereview codereview: change default cc to golang-codereviews Dec 20, 2013
licensing/v1 google-api-go-client: add request hooks. Jul 27, 2016
logging google-api-go-client: update all APIs Aug 4, 2016
manager/v1beta2 google-api-go-client: update all APIs Aug 4, 2016
mapsengine google-api-go-client: add request hooks. Jul 27, 2016
mirror/v1 google-api-go-client: add request hooks. Jul 27, 2016
monitoring/v3 google-api-go-client: add request hooks. Jul 27, 2016
oauth2 google-api-go-client: add request hooks. Jul 27, 2016
option option: add load balancing option for grpc connections. Jul 20, 2016
pagespeedonline google-api-go-client: add request hooks. Jul 27, 2016
partners/v2 google-api-go-client: add request hooks. Jul 27, 2016
people/v1 google-api-go-client: add request hooks. Jul 27, 2016
playmoviespartner/v1 google-api-go-client: add request hooks. Jul 27, 2016
plus/v1 google-api-go-client: add request hooks. Jul 27, 2016
plusdomains/v1 google-api-go-client: add request hooks. Jul 27, 2016
prediction google-api-go-client: add request hooks. Jul 27, 2016
proximitybeacon/v1beta1 google-api-go-client: add request hooks. Jul 27, 2016
pubsub google-api-go-client: add request hooks. Jul 27, 2016
qpxexpress/v1 google-api-go-client: update all APIs Aug 2, 2016
replicapool google-api-go-client: add request hooks. Jul 27, 2016
replicapoolupdater/v1beta1 google-api-go-client: add request hooks. Jul 27, 2016
reseller google-api-go-client: update all APIs Aug 4, 2016
resourceviews google-api-go-client: add request hooks. Jul 27, 2016
runtimeconfig/v1beta1 google-api-go-client: update all APIs Aug 2, 2016
safebrowsing/v4 google-api-go-client: add request hooks. Jul 27, 2016
script/v1 google-api-go-client: update all APIs Aug 2, 2016
servicecontrol/v1 google-api-go-client: update all APIs Aug 4, 2016
servicemanagement/v1 all: fix broken build Aug 23, 2016
serviceregistry/v0.alpha google-api-go-client: update all APIs Aug 4, 2016
sheets/v4 google-api-go-client: update all APIs Aug 2, 2016
siteverification/v1 google-api-go-client: add request hooks. Jul 27, 2016
spectrum/v1explorer google-api-go-client: add request hooks. Jul 27, 2016
speech/v1beta1 google-api-go-client: update all APIs Aug 17, 2016
sqladmin google-api-go-client: update all APIs Aug 2, 2016
storage google-api-go-client: update all APIs Aug 17, 2016
storagetransfer/v1 google-api-go-client: add request hooks. Jul 27, 2016
tagmanager/v1 google-api-go-client: add request hooks. Jul 27, 2016
taskqueue google-api-go-client: add request hooks. Jul 27, 2016
tasks/v1 google-api-go-client: add request hooks. Jul 27, 2016
toolresults/v1beta3 google-api-go-client: update all APIs Aug 2, 2016
translate/v2 google-api-go-client: update all APIs Aug 2, 2016
transport transport: apply latest changes from gocloud transport Jul 5, 2016
urlshortener/v1 google-api-go-client: add request hooks. Jul 27, 2016
vision/v1 google-api-go-client: update all APIs Aug 2, 2016
webfonts/v1 google-api-go-client: add request hooks. Jul 27, 2016
webmasters/v3 google-api-go-client: add request hooks. Jul 27, 2016
youtube/v3 google-api-go-client: update all APIs Aug 2, 2016
youtubeanalytics google-api-go-client: add request hooks. Jul 27, 2016
youtubereporting/v1 google-api-go-client: add request hooks. Jul 27, 2016
.hgignore google-api-go-client: set opaque correctly in pre go1.1 versions Jun 18, 2013
.hgtags Add release tag. Feb 7, 2012
.travis.yml travis: drop 1.4 build, add 1.6 build Feb 19, 2016
AUTHORS Add A+C files. Feb 7, 2012
CONTRIBUTING.md google-api-go-client: remove italics next to <> May 21, 2015
CONTRIBUTORS google-api-go-client: rollback commits due to licensing issues Dec 10, 2015
GettingStarted.md More doc tweaks to GettingStarted Mar 2, 2016
LICENSE a Google API -> Go code generator and base library Aug 24, 2011
Makefile google-api-go-client: Fix Makefile. Jan 5, 2016
NOTES google-api-go-client: add updated GettingStarted.md doc Apr 6, 2015
README.md google-api-go-client: add Application Default Credential example Sep 11, 2015
TODO google-api-go-client: add updated GettingStarted.md doc Apr 6, 2015
api-list.json google-api-go-client: update all APIs Aug 17, 2016
key.json.enc google-api-go-client: add start of integration tests for major APIs Nov 12, 2015

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.