google.golang.org/api => github.com/googleapis/google-api-go-client (every 8h) https://github.com/googleapis/google-api-go-client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Google APIs 4816819471 all: autogenerated update (2019-11-14) 1 day ago
abusiveexperiencereport/v1 all: autogenerated update (2019-11-14) 1 day ago
acceleratedmobilepageurl/v1 all: autogenerated update (2019-11-14) 1 day ago
accessapproval/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
accesscontextmanager all: autogenerated update (2019-11-14) 1 day ago
adexchangebuyer all: autogenerated update (2019-11-14) 1 day ago
adexchangebuyer2/v2beta1 all: autogenerated update (2019-11-14) 1 day ago
adexchangeseller all: regen 2 months ago
adexperiencereport/v1 all: autogenerated update (2019-11-14) 1 day ago
admin all: autogenerated update (2019-11-14) 1 day ago
adsense all: autogenerated update (2019-11-14) 1 day ago
adsensehost/v4.1 all: autogenerated update (2019-11-14) 1 day ago
alertcenter/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
analytics all: autogenerated update (2019-11-14) 1 day ago
analyticsreporting/v4 all: autogenerated update (2019-11-14) 1 day ago
androiddeviceprovisioning/v1 all: autogenerated update (2019-11-14) 1 day ago
androidenterprise/v1 all: autogenerated update (2019-11-14) 1 day ago
androidmanagement/v1 all: autogenerated update (2019-11-14) 1 day ago
androidpublisher all: autogenerated update (2019-11-14) 1 day ago
appengine all: autogenerated update (2019-11-14) 1 day ago
appsactivity/v1 all: autogenerated update (2019-11-14) 1 day ago
appstate/v1 all: regen 2 months ago
bigquery/v2 all: autogenerated update (2019-11-14) 1 day ago
bigqueryconnection/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
bigquerydatatransfer/v1 all: autogenerated update (2019-11-14) 1 day ago
bigqueryreservation all: autogenerated update (2019-11-14) 1 day ago
bigtableadmin all: autogenerated update (2019-11-14) 1 day ago
binaryauthorization all: autogenerated update (2019-11-14) 1 day ago
blogger all: autogenerated update (2019-11-14) 1 day ago
books/v1 all: autogenerated update (2019-11-14) 1 day ago
calendar/v3 all: autogenerated update (2019-11-14) 1 day ago
chat/v1 all: autogenerated update (2019-11-14) 1 day ago
civicinfo/v2 all: autogenerated update (2019-11-14) 1 day ago
classroom/v1 all: autogenerated update (2019-11-14) 1 day ago
cloudasset all: autogenerated update (2019-11-14) 1 day ago
cloudbilling/v1 all: autogenerated update (2019-11-14) 1 day ago
cloudbuild all: autogenerated update (2019-11-14) 1 day ago
cloudcommerceprocurement/v1 cloudcommerceprocurement: add v1 API manually 2 weeks ago
clouddebugger/v2 all: autogenerated update (2019-11-14) 1 day ago
clouderrorreporting/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
cloudfunctions all: autogenerated update (2019-11-14) 1 day ago
cloudidentity all: autogenerated update (2019-11-14) 1 day ago
cloudiot/v1 all: autogenerated update (2019-11-14) 1 day ago
cloudkms/v1 all: autogenerated update (2019-11-14) 1 day ago
cloudprivatecatalog/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
cloudprivatecatalogproducer/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
cloudprofiler/v2 all: autogenerated update (2019-11-14) 1 day ago
cloudresourcemanager all: autogenerated update (2019-11-14) 1 day ago
cloudscheduler all: autogenerated update (2019-11-14) 1 day ago
cloudsearch/v1 all: autogenerated update (2019-11-14) 1 day ago
cloudshell all: autogenerated update (2019-11-14) 1 day ago
cloudtasks all: autogenerated update (2019-11-14) 1 day ago
cloudtrace all: autogenerated update (2019-11-14) 1 day ago
commentanalyzer/v1alpha1 all: autogenerated update (2019-11-14) 1 day ago
composer all: autogenerated update (2019-11-14) 1 day ago
compute all: autogenerated update (2019-11-14) 1 day ago
consumersurveys/v2 all: regen 2 months ago
container all: autogenerated update (2019-11-14) 1 day ago
containeranalysis all: autogenerated update (2019-11-14) 1 day ago
content all: autogenerated update (2019-11-14) 1 day ago
customsearch/v1 all: autogenerated update (2019-11-14) 1 day ago
datacatalog/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
dataflow/v1b3 all: autogenerated update (2019-11-14) 1 day ago
datafusion/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
dataproc all: autogenerated update (2019-11-14) 1 day ago
datastore all: autogenerated update (2019-11-14) 1 day ago
deploymentmanager all: autogenerated update (2019-11-14) 1 day ago
dfareporting all: autogenerated update (2019-11-14) 1 day ago
dialogflow all: autogenerated update (2019-11-14) 1 day ago
digitalassetlinks/v1 all: autogenerated update (2019-11-14) 1 day ago
discovery/v1 all: autogenerated update (2019-11-14) 1 day ago
dlp/v2 all: autogenerated update (2019-11-14) 1 day ago
dns all: autogenerated update (2019-11-14) 1 day ago
docs/v1 all: autogenerated update (2019-11-14) 1 day ago
domainsrdap/v1 all: autogenerated update (2019-11-14) 1 day ago
doubleclickbidmanager/v1 all: autogenerated update (2019-11-14) 1 day ago
doubleclicksearch/v2 all: autogenerated update (2019-11-14) 1 day ago
drive all: autogenerated update (2019-11-14) 1 day ago
driveactivity/v2 all: autogenerated update (2019-11-14) 1 day ago
examples all: switch files to use LICENSE 3 weeks ago
factchecktools/v1alpha1 all: autogenerated update (2019-11-14) 1 day ago
fcm/v1 all: autogenerated update (2019-11-14) 1 day ago
file all: autogenerated update (2019-11-14) 1 day ago
firebase/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
firebasedynamiclinks/v1 all: autogenerated update (2019-11-14) 1 day ago
firebasehosting/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
firebaseremoteconfig/v1 all: regen 2 months ago
firebaserules/v1 all: autogenerated update (2019-11-14) 1 day ago
firestore all: autogenerated update (2019-11-14) 1 day ago
fitness/v1 all: autogenerated update (2019-11-14) 1 day ago
fusiontables all: autogenerated update (2019-11-14) 1 day ago
games/v1 all: autogenerated update (2019-11-14) 1 day ago
gamesconfiguration/v1configuration all: autogenerated update (2019-11-14) 1 day ago
gamesmanagement/v1management all: autogenerated update (2019-11-14) 1 day ago
genomics all: autogenerated update (2019-11-14) 1 day ago
gmail/v1 all: autogenerated update (2019-11-14) 1 day ago
google-api-go-generator google-api-go-generator: generalize media path replacement 2 weeks ago
googleapi all: fix doc on type Field to not refer to old XML API docs 1 week ago
groupsmigration/v1 all: autogenerated update (2019-11-14) 1 day ago
groupssettings/v1 all: autogenerated update (2019-11-14) 1 day ago
healthcare all: autogenerated update (2019-11-14) 1 day ago
homegraph/v1 all: autogenerated update (2019-11-14) 1 day ago
iam/v1 all: autogenerated update (2019-11-14) 1 day ago
iamcredentials/v1 all: autogenerated update (2019-11-14) 1 day ago
iap all: autogenerated update (2019-11-14) 1 day ago
identitytoolkit/v3 all: autogenerated update (2019-11-14) 1 day ago
indexing/v3 all: autogenerated update (2019-11-14) 1 day ago
integration-tests/storage all: switch files to use LICENSE 3 weeks ago
internal all: autogenerated update (2019-11-14) 1 day ago
iterator all: switch files to use LICENSE 3 weeks ago
jobs all: autogenerated update (2019-11-14) 1 day ago
kgsearch/v1 all: autogenerated update (2019-11-14) 1 day ago
language all: autogenerated update (2019-11-14) 1 day ago
lib/codereview codereview: change default cc to golang-codereviews 5 years ago
libraryagent/v1 all: autogenerated update (2019-11-14) 1 day ago
licensing/v1 all: autogenerated update (2019-11-14) 1 day ago
lifesciences/v2beta all: autogenerated update (2019-11-14) 1 day ago
logging all: autogenerated update (2019-11-14) 1 day ago
manufacturers/v1 all: autogenerated update (2019-11-14) 1 day ago
mirror/v1 all: autogenerated update (2019-11-14) 1 day ago
ml/v1 all: autogenerated update (2019-11-14) 1 day ago
monitoring all: autogenerated update (2019-11-14) 1 day ago
oauth2 all: autogenerated update (2019-11-14) 1 day ago
option google-api-go-client: add a client option for disabling the oc http and grpc middlewares. 6 days ago
oslogin all: autogenerated update (2019-11-14) 1 day ago
pagespeedonline all: autogenerated update (2019-11-14) 1 day ago
partners/v2 all: regen 2 months ago
people/v1 all: autogenerated update (2019-11-14) 1 day ago
playcustomapp/v1 all: autogenerated update (2019-11-14) 1 day ago
playmoviespartner/v1 all: regen 2 months ago
plus/v1 all: autogenerated update (2019-11-14) 1 day ago
plusdomains/v1 all: autogenerated update (2019-11-14) 1 day ago
policytroubleshooter/v1beta all: autogenerated update (2019-11-14) 1 day ago
poly/v1 all: autogenerated update (2019-11-14) 1 day ago
proximitybeacon/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
pubsub all: autogenerated update (2019-11-14) 1 day ago
qpxexpress/v1 all: regen 2 months ago
recommender/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
redis all: autogenerated update (2019-11-14) 1 day ago
remotebuildexecution all: autogenerated update (2019-11-14) 1 day ago
replicapool/v1beta1 all: autogenerated update (2019-11-14) 1 day ago
replicapoolupdater/v1beta1 all: regen 2 months ago
reseller/v1 all: autogenerated update (2019-11-14) 1 day ago
run all: autogenerated update (2019-11-14) 1 day ago
runtimeconfig all: autogenerated update (2019-11-14) 1 day ago
safebrowsing/v4 all: autogenerated update (2019-11-14) 1 day ago
script/v1 all: autogenerated update (2019-11-14) 1 day ago
searchconsole/v1 all: autogenerated update (2019-11-14) 1 day ago
securitycenter all: autogenerated update (2019-11-14) 1 day ago
servicebroker all: autogenerated update (2019-11-14) 1 day ago
serviceconsumermanagement/v1 all: autogenerated update (2019-11-14) 1 day ago
servicecontrol/v1 all: autogenerated update (2019-11-14) 1 day ago
servicemanagement/v1 all: autogenerated update (2019-11-14) 1 day ago
servicenetworking all: autogenerated update (2019-11-14) 1 day ago
serviceusage all: autogenerated update (2019-11-14) 1 day ago
serviceuser/v1 all: regen 2 months ago
sheets/v4 all: autogenerated update (2019-11-14) 1 day ago
siteverification/v1 all: autogenerated update (2019-11-14) 1 day ago
slides/v1 all: autogenerated update (2019-11-14) 1 day ago
sourcerepo/v1 all: autogenerated update (2019-11-14) 1 day ago
spanner/v1 all: autogenerated update (2019-11-14) 1 day ago
spectrum/v1explorer all: regen 2 months ago
speech all: autogenerated update (2019-11-14) 1 day ago
sql/v1beta4 all: autogenerated update (2019-11-14) 1 day ago
sqladmin/v1beta4 all: autogenerated update (2019-11-14) 1 day ago
storage all: autogenerated update (2019-11-14) 1 day ago
storagetransfer/v1 all: autogenerated update (2019-11-14) 1 day ago
streetviewpublish/v1 all: autogenerated update (2019-11-14) 1 day ago
support/bundler Add four simple benchmarks for adding items to a bundle and flushing 2 days ago
surveys/v2 all: autogenerated update (2019-11-14) 1 day ago
tagmanager all: autogenerated update (2019-11-14) 1 day ago
tasks/v1 all: autogenerated update (2019-11-14) 1 day ago
testing/v1 all: autogenerated update (2019-11-14) 1 day ago
texttospeech all: autogenerated update (2019-11-14) 1 day ago
toolresults/v1beta3 all: autogenerated update (2019-11-14) 1 day ago
tpu all: autogenerated update (2019-11-14) 1 day ago
tracing/v2 all: regen 2 months ago
translate all: autogenerated update (2019-11-14) 1 day ago
transport google-api-go-client: add a client option for disabling the oc http and grpc middlewares. 6 days ago
urlshortener/v1 all: autogenerated update (2019-09-26) 1 month ago
vault/v1 all: autogenerated update (2019-11-14) 1 day ago
verifiedaccess/v1 all: autogenerated update (2019-11-14) 1 day ago
videointelligence all: autogenerated update (2019-11-14) 1 day ago
vision all: autogenerated update (2019-11-14) 1 day ago
webfonts/v1 all: autogenerated update (2019-11-14) 1 day ago
webmasters/v3 all: autogenerated update (2019-11-14) 1 day ago
websecurityscanner all: autogenerated update (2019-11-14) 1 day ago
youtube/v3 all: autogenerated update (2019-11-14) 1 day ago
youtubeanalytics all: autogenerated update (2019-11-14) 1 day ago
youtubereporting/v1 all: autogenerated update (2019-11-14) 1 day ago
.gitignore internal: fix generator Makefile 2 months ago
.hgtags Add release tag. 7 years ago
AUTHORS google-api-go-client: add a client option for disabling the oc http and grpc middlewares. 6 days ago
CHANGES.md all: release v0.13.0 2 weeks ago
CONTRIBUTING.md docs: minor CONTRIBUTING.md fixes 4 weeks ago
CONTRIBUTORS google-api-go-client: add a client option for disabling the oc http and grpc middlewares. 6 days ago
GettingStarted.md all: update generator to use "context" 1 year ago
LICENSE a Google API -> Go code generator and base library 8 years ago
NOTES google-api-go-client: add updated GettingStarted.md doc 4 years ago
README.md internal: trigger kokoro 2 months ago
RELEASING.md all: add x-goog-api-client header to outgoing requests 3 months ago
TODO google-api-go-client: add updated GettingStarted.md doc 4 years ago
api-list.json all: autogenerated update (2019-11-14) 1 day ago
doc.go all: add license test and fix licenses 1 month ago
go.mod modules: bump 1.9 to 1.11 1 month ago
go.sum all: standardize ResumableUpload.Upload retry with cloud.google.com/go 3 months ago
license_test.go all: move uritemplates to third_party 2 weeks ago
tools.go all: switch files to use LICENSE 3 weeks ago

README.md

Google APIs Client Library for Go

Getting Started

$ go get google.golang.org/api/tasks/v1
$ go get google.golang.org/api/moderator/v1
$ go get google.golang.org/api/urlshortener/v1
... etc ...

and using:

package main

import (
	"net/http"

	"google.golang.org/api/urlshortener/v1"
)

func main() {
	svc, err := urlshortener.New(http.DefaultClient)
	// ...
}

Status

GoDoc

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.

These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.

If you’re working with Google Cloud Platform APIs such as Datastore or Pub/Sub, consider using the Cloud Client Libraries for Go instead. These are the new and idiomatic Go libraries targeted specifically at Google Cloud Platform Services.

The generator itself and the code it produces are beta. Some APIs are alpha/beta, and indicated as such in the import path (e.g., “google.golang.org/api/someapi/v1alpha”).

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 (
        "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.