distribution/vendor/google.golang.org/api
Olivier Gambier 77e69b9cf3 Move to vendor
Signed-off-by: Olivier Gambier <olivier@docker.com>
2016-03-22 10:45:49 -07:00
..
adexchangebuyer Move to vendor 2016-03-22 10:45:49 -07:00
adexchangeseller Move to vendor 2016-03-22 10:45:49 -07:00
admin Move to vendor 2016-03-22 10:45:49 -07:00
adsense Move to vendor 2016-03-22 10:45:49 -07:00
adsensehost/v4.1 Move to vendor 2016-03-22 10:45:49 -07:00
analytics Move to vendor 2016-03-22 10:45:49 -07:00
androidenterprise/v1 Move to vendor 2016-03-22 10:45:49 -07:00
androidpublisher Move to vendor 2016-03-22 10:45:49 -07:00
appengine/v1beta4 Move to vendor 2016-03-22 10:45:49 -07:00
appsactivity/v1 Move to vendor 2016-03-22 10:45:49 -07:00
appstate/v1 Move to vendor 2016-03-22 10:45:49 -07:00
autoscaler/v1beta2 Move to vendor 2016-03-22 10:45:49 -07:00
bigquery/v2 Move to vendor 2016-03-22 10:45:49 -07:00
blogger Move to vendor 2016-03-22 10:45:49 -07:00
books/v1 Move to vendor 2016-03-22 10:45:49 -07:00
calendar/v3 Move to vendor 2016-03-22 10:45:49 -07:00
civicinfo/v2 Move to vendor 2016-03-22 10:45:49 -07:00
classroom/v1 Move to vendor 2016-03-22 10:45:49 -07:00
cloudbilling/v1 Move to vendor 2016-03-22 10:45:49 -07:00
clouddebugger/v2 Move to vendor 2016-03-22 10:45:49 -07:00
cloudlatencytest/v2 Move to vendor 2016-03-22 10:45:49 -07:00
cloudmonitoring/v2beta2 Move to vendor 2016-03-22 10:45:49 -07:00
cloudresourcemanager/v1beta1 Move to vendor 2016-03-22 10:45:49 -07:00
cloudtrace/v1 Move to vendor 2016-03-22 10:45:49 -07:00
clouduseraccounts Move to vendor 2016-03-22 10:45:49 -07:00
compute Move to vendor 2016-03-22 10:45:49 -07:00
container Move to vendor 2016-03-22 10:45:49 -07:00
content Move to vendor 2016-03-22 10:45:49 -07:00
coordinate/v1 Move to vendor 2016-03-22 10:45:49 -07:00
customsearch/v1 Move to vendor 2016-03-22 10:45:49 -07:00
dataflow/v1b3 Move to vendor 2016-03-22 10:45:49 -07:00
datastore Move to vendor 2016-03-22 10:45:49 -07:00
deploymentmanager Move to vendor 2016-03-22 10:45:49 -07:00
dfareporting Move to vendor 2016-03-22 10:45:49 -07:00
discovery/v1 Move to vendor 2016-03-22 10:45:49 -07:00
dns Move to vendor 2016-03-22 10:45:49 -07:00
doubleclickbidmanager/v1 Move to vendor 2016-03-22 10:45:49 -07:00
doubleclicksearch/v2 Move to vendor 2016-03-22 10:45:49 -07:00
drive Move to vendor 2016-03-22 10:45:49 -07:00
examples Move to vendor 2016-03-22 10:45:49 -07:00
fitness/v1 Move to vendor 2016-03-22 10:45:49 -07:00
freebase/v1 Move to vendor 2016-03-22 10:45:49 -07:00
fusiontables Move to vendor 2016-03-22 10:45:49 -07:00
games/v1 Move to vendor 2016-03-22 10:45:49 -07:00
gamesconfiguration/v1configuration Move to vendor 2016-03-22 10:45:49 -07:00
gamesmanagement/v1management Move to vendor 2016-03-22 10:45:49 -07:00
gan/v1beta1 Move to vendor 2016-03-22 10:45:49 -07:00
genomics Move to vendor 2016-03-22 10:45:49 -07:00
gmail/v1 Move to vendor 2016-03-22 10:45:49 -07:00
google-api-go-generator Move to vendor 2016-03-22 10:45:49 -07:00
googleapi Move to vendor 2016-03-22 10:45:49 -07:00
groupsmigration/v1 Move to vendor 2016-03-22 10:45:49 -07:00
groupssettings/v1 Move to vendor 2016-03-22 10:45:49 -07:00
identitytoolkit/v3 Move to vendor 2016-03-22 10:45:49 -07:00
internal Move to vendor 2016-03-22 10:45:49 -07:00
lib/codereview Move to vendor 2016-03-22 10:45:49 -07:00
licensing/v1 Move to vendor 2016-03-22 10:45:49 -07:00
logging Move to vendor 2016-03-22 10:45:49 -07:00
manager/v1beta2 Move to vendor 2016-03-22 10:45:49 -07:00
mapsengine Move to vendor 2016-03-22 10:45:49 -07:00
mirror/v1 Move to vendor 2016-03-22 10:45:49 -07:00
oauth2 Move to vendor 2016-03-22 10:45:49 -07:00
pagespeedonline Move to vendor 2016-03-22 10:45:49 -07:00
partners/v2 Move to vendor 2016-03-22 10:45:49 -07:00
playmoviespartner/v1 Move to vendor 2016-03-22 10:45:49 -07:00
plus/v1 Move to vendor 2016-03-22 10:45:49 -07:00
plusdomains/v1 Move to vendor 2016-03-22 10:45:49 -07:00
prediction Move to vendor 2016-03-22 10:45:49 -07:00
proximitybeacon/v1beta1 Move to vendor 2016-03-22 10:45:49 -07:00
pubsub Move to vendor 2016-03-22 10:45:49 -07:00
qpxexpress/v1 Move to vendor 2016-03-22 10:45:49 -07:00
replicapool Move to vendor 2016-03-22 10:45:49 -07:00
replicapoolupdater/v1beta1 Move to vendor 2016-03-22 10:45:49 -07:00
reseller Move to vendor 2016-03-22 10:45:49 -07:00
resourceviews Move to vendor 2016-03-22 10:45:49 -07:00
script/v1 Move to vendor 2016-03-22 10:45:49 -07:00
siteverification/v1 Move to vendor 2016-03-22 10:45:49 -07:00
spectrum/v1explorer Move to vendor 2016-03-22 10:45:49 -07:00
sqladmin Move to vendor 2016-03-22 10:45:49 -07:00
storage Move to vendor 2016-03-22 10:45:49 -07:00
storagetransfer/v1 Move to vendor 2016-03-22 10:45:49 -07:00
tagmanager/v1 Move to vendor 2016-03-22 10:45:49 -07:00
taskqueue Move to vendor 2016-03-22 10:45:49 -07:00
tasks/v1 Move to vendor 2016-03-22 10:45:49 -07:00
translate/v2 Move to vendor 2016-03-22 10:45:49 -07:00
urlshortener/v1 Move to vendor 2016-03-22 10:45:49 -07:00
webfonts/v1 Move to vendor 2016-03-22 10:45:49 -07:00
webmasters/v3 Move to vendor 2016-03-22 10:45:49 -07:00
youtube/v3 Move to vendor 2016-03-22 10:45:49 -07:00
youtubeanalytics Move to vendor 2016-03-22 10:45:49 -07:00
youtubereporting/v1 Move to vendor 2016-03-22 10:45:49 -07:00
.hgignore Move to vendor 2016-03-22 10:45:49 -07:00
.hgtags Move to vendor 2016-03-22 10:45:49 -07:00
.travis.yml Move to vendor 2016-03-22 10:45:49 -07:00
api-list.json Move to vendor 2016-03-22 10:45:49 -07:00
AUTHORS Move to vendor 2016-03-22 10:45:49 -07:00
CONTRIBUTING.md Move to vendor 2016-03-22 10:45:49 -07:00
CONTRIBUTORS Move to vendor 2016-03-22 10:45:49 -07:00
GettingStarted.md Move to vendor 2016-03-22 10:45:49 -07:00
LICENSE Move to vendor 2016-03-22 10:45:49 -07:00
Makefile Move to vendor 2016-03-22 10:45:49 -07:00
NOTES Move to vendor 2016-03-22 10:45:49 -07:00
README.md Move to vendor 2016-03-22 10:45:49 -07:00
TODO Move to vendor 2016-03-22 10:45:49 -07:00

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.