kops/vendor/google.golang.org/api
Justin Santa Barbara b3dedbe287 Update vendor 2017-03-16 02:40:45 -04:00
..
acceleratedmobilepageurl/v1 Update vendor 2017-03-16 02:40:45 -04:00
adexchangebuyer Update vendor 2017-03-16 02:40:45 -04:00
adexchangebuyer2/v2beta1 Update vendor 2017-03-16 02:40:45 -04:00
adexchangeseller Update vendor 2017-03-16 02:40:45 -04:00
admin Update vendor 2017-03-16 02:40:45 -04:00
adsense Update vendor 2017-03-16 02:40:45 -04:00
adsensehost/v4.1 Update vendor 2017-03-16 02:40:45 -04:00
analytics Update vendor 2017-03-16 02:40:45 -04:00
analyticsreporting/v4 Update vendor 2017-03-16 02:40:45 -04:00
androidenterprise/v1 Update vendor 2017-03-16 02:40:45 -04:00
androidpublisher Update vendor 2017-03-16 02:40:45 -04:00
appengine Update vendor 2017-03-16 02:40:45 -04:00
appsactivity/v1 Update vendor 2017-03-16 02:40:45 -04:00
appstate/v1 Update vendor 2017-03-16 02:40:45 -04:00
autoscaler/v1beta2 Update vendor 2017-03-16 02:40:45 -04:00
bigquery/v2 Update vendor 2017-03-16 02:40:45 -04:00
blogger Update vendor 2017-03-16 02:40:45 -04:00
books/v1 Update vendor 2017-03-16 02:40:45 -04:00
calendar/v3 Update vendor 2017-03-16 02:40:45 -04:00
civicinfo/v2 Update vendor 2017-03-16 02:40:45 -04:00
classroom/v1 Update vendor 2017-03-16 02:40:45 -04:00
cloudbilling/v1 Update vendor 2017-03-16 02:40:45 -04:00
cloudbuild/v1 Update vendor 2017-03-16 02:40:45 -04:00
clouddebugger/v2 Update vendor 2017-03-16 02:40:45 -04:00
clouderrorreporting/v1beta1 Update vendor 2017-03-16 02:40:45 -04:00
cloudlatencytest/v2 Update vendor 2017-03-16 02:40:45 -04:00
cloudmonitoring/v2beta2 Update vendor 2017-03-16 02:40:45 -04:00
cloudresourcemanager Update vendor 2017-03-16 02:40:45 -04:00
cloudtrace/v1 Update vendor 2017-03-16 02:40:45 -04:00
clouduseraccounts Update vendor 2017-03-16 02:40:45 -04:00
compute Update vendor 2017-03-16 02:40:45 -04:00
consumersurveys/v2 Update vendor 2017-03-16 02:40:45 -04:00
container/v1 Update vendor 2017-03-16 02:40:45 -04:00
content Update vendor 2017-03-16 02:40:45 -04:00
coordinate/v1 Update vendor 2017-03-16 02:40:45 -04:00
customsearch/v1 Update vendor 2017-03-16 02:40:45 -04:00
dataflow/v1b3 Update vendor 2017-03-16 02:40:45 -04:00
dataproc Update vendor 2017-03-16 02:40:45 -04:00
datastore Update vendor 2017-03-16 02:40:45 -04:00
deploymentmanager Update vendor 2017-03-16 02:40:45 -04:00
dfareporting Update vendor 2017-03-16 02:40:45 -04:00
discovery/v1 Update vendor 2017-03-16 02:40:45 -04:00
dns Update vendor 2017-03-16 02:40:45 -04:00
doubleclickbidmanager/v1 Update vendor 2017-03-16 02:40:45 -04:00
doubleclicksearch/v2 Update vendor 2017-03-16 02:40:45 -04:00
drive Update vendor 2017-03-16 02:40:45 -04:00
examples Include vendored dependencies 2016-07-05 00:03:07 -04:00
firebasedynamiclinks/v1 Update vendor 2017-03-16 02:40:45 -04:00
firebaserules/v1 Update vendor 2017-03-16 02:40:45 -04:00
fitness/v1 Update vendor 2017-03-16 02:40:45 -04:00
freebase/v1 Update vendor 2017-03-16 02:40:45 -04:00
fusiontables Update vendor 2017-03-16 02:40:45 -04:00
games/v1 Update vendor 2017-03-16 02:40:45 -04:00
gamesconfiguration/v1configuration Update vendor 2017-03-16 02:40:45 -04:00
gamesmanagement/v1management Update vendor 2017-03-16 02:40:45 -04:00
gan/v1beta1 Update vendor 2017-03-16 02:40:45 -04:00
genomics Update vendor 2017-03-16 02:40:45 -04:00
gensupport Update vendor 2017-03-16 02:40:45 -04:00
gmail/v1 Update vendor 2017-03-16 02:40:45 -04:00
google-api-go-generator Update vendor 2017-03-16 02:40:45 -04:00
googleapi Update vendor 2017-03-16 02:40:45 -04:00
groupsmigration/v1 Update vendor 2017-03-16 02:40:45 -04:00
groupssettings/v1 Update vendor 2017-03-16 02:40:45 -04:00
iam Update vendor 2017-03-16 02:40:45 -04:00
identitytoolkit/v3 Update vendor 2017-03-16 02:40:45 -04:00
integration-tests/storage Update vendor 2017-03-16 02:40:45 -04:00
internal Update vendor 2017-03-16 02:40:45 -04:00
iterator Update vendor 2017-03-16 02:40:45 -04:00
kgsearch/v1 Update vendor 2017-03-16 02:40:45 -04:00
language Update vendor 2017-03-16 02:40:45 -04:00
lib/codereview Include vendored dependencies 2016-07-05 00:03:07 -04:00
licensing/v1 Update vendor 2017-03-16 02:40:45 -04:00
logging Update vendor 2017-03-16 02:40:45 -04:00
manager/v1beta2 Update vendor 2017-03-16 02:40:45 -04:00
manufacturers/v1 Update vendor 2017-03-16 02:40:45 -04:00
mapsengine Update vendor 2017-03-16 02:40:45 -04:00
mirror/v1 Update vendor 2017-03-16 02:40:45 -04:00
ml/v1beta1 Update vendor 2017-03-16 02:40:45 -04:00
monitoring/v3 Update vendor 2017-03-16 02:40:45 -04:00
oauth2 Update vendor 2017-03-16 02:40:45 -04:00
option Update vendor 2017-03-16 02:40:45 -04:00
pagespeedonline Update vendor 2017-03-16 02:40:45 -04:00
partners/v2 Update vendor 2017-03-16 02:40:45 -04:00
people/v1 Update vendor 2017-03-16 02:40:45 -04:00
playmoviespartner/v1 Update vendor 2017-03-16 02:40:45 -04:00
plus/v1 Update vendor 2017-03-16 02:40:45 -04:00
plusdomains/v1 Update vendor 2017-03-16 02:40:45 -04:00
prediction Update vendor 2017-03-16 02:40:45 -04:00
proximitybeacon/v1beta1 Update vendor 2017-03-16 02:40:45 -04:00
pubsub Update vendor 2017-03-16 02:40:45 -04:00
qpxexpress/v1 Update vendor 2017-03-16 02:40:45 -04:00
replicapool Update vendor 2017-03-16 02:40:45 -04:00
replicapoolupdater/v1beta1 Update vendor 2017-03-16 02:40:45 -04:00
reseller Update vendor 2017-03-16 02:40:45 -04:00
resourceviews Update vendor 2017-03-16 02:40:45 -04:00
runtimeconfig Update vendor 2017-03-16 02:40:45 -04:00
safebrowsing/v4 Update vendor 2017-03-16 02:40:45 -04:00
script/v1 Update vendor 2017-03-16 02:40:45 -04:00
servicecontrol/v1 Update vendor 2017-03-16 02:40:45 -04:00
servicemanagement/v1 Update vendor 2017-03-16 02:40:45 -04:00
serviceregistry/v0.alpha Update vendor 2017-03-16 02:40:45 -04:00
sheets/v4 Update vendor 2017-03-16 02:40:45 -04:00
siteverification/v1 Update vendor 2017-03-16 02:40:45 -04:00
slides/v1 Update vendor 2017-03-16 02:40:45 -04:00
spectrum/v1explorer Update vendor 2017-03-16 02:40:45 -04:00
speech/v1beta1 Update vendor 2017-03-16 02:40:45 -04:00
sqladmin Update vendor 2017-03-16 02:40:45 -04:00
storage Update vendor 2017-03-16 02:40:45 -04:00
storagetransfer/v1 Update vendor 2017-03-16 02:40:45 -04:00
support/bundler Update vendor 2017-03-16 02:40:45 -04:00
surveys/v2 Update vendor 2017-03-16 02:40:45 -04:00
tagmanager/v1 Update vendor 2017-03-16 02:40:45 -04:00
taskqueue Update vendor 2017-03-16 02:40:45 -04:00
tasks/v1 Update vendor 2017-03-16 02:40:45 -04:00
toolresults/v1beta3 Update vendor 2017-03-16 02:40:45 -04:00
translate/v2 Update vendor 2017-03-16 02:40:45 -04:00
transport Update vendor 2017-03-16 02:40:45 -04:00
urlshortener/v1 Update vendor 2017-03-16 02:40:45 -04:00
vision/v1 Update vendor 2017-03-16 02:40:45 -04:00
webfonts/v1 Update vendor 2017-03-16 02:40:45 -04:00
webmasters/v3 Update vendor 2017-03-16 02:40:45 -04:00
youtube/v3 Update vendor 2017-03-16 02:40:45 -04:00
youtubeanalytics Update vendor 2017-03-16 02:40:45 -04:00
youtubereporting/v1 Update vendor 2017-03-16 02:40:45 -04:00
.hgignore Include vendored dependencies 2016-07-05 00:03:07 -04:00
.hgtags Include vendored dependencies 2016-07-05 00:03:07 -04:00
.travis.yml Update vendor 2017-03-16 02:40:45 -04:00
AUTHORS Include vendored dependencies 2016-07-05 00:03:07 -04:00
CONTRIBUTING.md Include vendored dependencies 2016-07-05 00:03:07 -04:00
CONTRIBUTORS Include vendored dependencies 2016-07-05 00:03:07 -04:00
GettingStarted.md Include vendored dependencies 2016-07-05 00:03:07 -04:00
LICENSE Include vendored dependencies 2016-07-05 00:03:07 -04:00
Makefile Include vendored dependencies 2016-07-05 00:03:07 -04:00
NOTES Include vendored dependencies 2016-07-05 00:03:07 -04:00
README.md Include vendored dependencies 2016-07-05 00:03:07 -04:00
TODO Include vendored dependencies 2016-07-05 00:03:07 -04:00
api-list.json Update vendor 2017-03-16 02:40:45 -04:00
key.json.enc Include vendored dependencies 2016-07-05 00:03:07 -04:00

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.