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

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.