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.