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.
Chris Cotter a83bacb4bb
transport/http: update default transport settings (#496)
1 day ago
abusiveexperiencereport/v1 all: autogenerated update (2020-05-18) 1 week ago
acceleratedmobilepageurl/v1 all: autogenerated update (2020-05-18) 1 week ago
accessapproval all: autogenerated update (2020-05-18) 1 week ago
accesscontextmanager all: autogenerated update (2020-05-18) 1 week ago
adexchangebuyer all: autogenerated update (2020-05-18) 1 week ago
adexchangebuyer2/v2beta1 all: autogenerated update (2020-05-18) 1 week ago
adexchangeseller all: regenerate 3 months ago
adexperiencereport/v1 all: autogenerated update (2020-05-18) 1 week ago
admin all: autogenerated update (2020-05-18) 1 week ago
admob/v1 all: autogenerated update (2020-05-18) 1 week ago
adsense all: autogenerated update (2020-05-18) 1 week ago
adsensehost/v4.1 all: autogenerated update (2020-05-18) 1 week ago
alertcenter/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
analytics all: autogenerated update (2020-05-18) 1 week ago
analyticsreporting/v4 all: autogenerated update (2020-05-18) 1 week ago
androiddeviceprovisioning/v1 all: autogenerated update (2020-05-18) 1 week ago
androidenterprise/v1 all: autogenerated update (2020-05-18) 1 week ago
androidmanagement/v1 all: autogenerated update (2020-05-18) 1 week ago
androidpublisher all: autogenerated update (2020-05-18) 1 week ago
apigee/v1 all: autogenerated update (2020-05-18) 1 week ago
appengine all: autogenerated update (2020-05-18) 1 week ago
appsactivity/v1 all: autogenerated update (2020-05-18) 1 week ago
appstate/v1 all: regenerate 3 months ago
bigquery/v2 all: autogenerated update (2020-05-18) 1 week ago
bigqueryconnection/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
bigquerydatatransfer/v1 all: autogenerated update (2020-05-18) 1 week ago
bigqueryreservation all: autogenerated update (2020-05-18) 1 week ago
bigtableadmin all: autogenerated update (2020-05-18) 1 week ago
billingbudgets/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
binaryauthorization all: autogenerated update (2020-05-18) 1 week ago
blogger all: autogenerated update (2020-05-18) 1 week ago
books/v1 all: autogenerated update (2020-05-18) 1 week ago
calendar/v3 all: autogenerated update (2020-05-18) 1 week ago
chat/v1 all: autogenerated update (2020-05-18) 1 week ago
civicinfo/v2 all: autogenerated update (2020-05-18) 1 week ago
classroom/v1 all: autogenerated update (2020-05-18) 1 week ago
cloudasset all: autogenerated update (2020-05-18) 1 week ago
cloudbilling/v1 all: autogenerated update (2020-05-18) 1 week ago
cloudbuild all: autogenerated update (2020-05-18) 1 week ago
cloudcommerceprocurement/v1 all: regenerate 3 months ago
clouddebugger/v2 all: autogenerated update (2020-05-18) 1 week ago
clouderrorreporting/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
cloudfunctions all: autogenerated update (2020-05-18) 1 week ago
cloudidentity all: autogenerated update (2020-05-18) 1 week ago
cloudiot/v1 all: autogenerated update (2020-05-18) 1 week ago
cloudkms/v1 all: autogenerated update (2020-05-18) 1 week ago
cloudprivatecatalog/v1beta1 all: autogenerated update (2020-03-11) 2 months ago
cloudprivatecatalogproducer/v1beta1 all: autogenerated update (2020-03-11) 2 months ago
cloudprofiler/v2 all: autogenerated update (2020-05-18) 1 week ago
cloudresourcemanager all: autogenerated update (2020-05-18) 1 week ago
cloudscheduler all: autogenerated update (2020-05-18) 1 week ago
cloudsearch/v1 all: autogenerated update (2020-05-18) 1 week ago
cloudshell all: autogenerated update (2020-05-18) 1 week ago
cloudtasks all: autogenerated update (2020-05-18) 1 week ago
cloudtrace all: autogenerated update (2020-05-18) 1 week ago
commentanalyzer/v1alpha1 all: autogenerated update (2020-05-07) 3 weeks ago
composer all: autogenerated update (2020-05-18) 1 week ago
compute all: autogenerated update (2020-05-18) 1 week ago
consumersurveys/v2 all: regenerate 3 months ago
container all: autogenerated update (2020-05-18) 1 week ago
containeranalysis all: autogenerated update (2020-05-18) 1 week ago
content all: autogenerated update (2020-05-18) 1 week ago
customsearch/v1 customsearch: update custom search and stop generation temporarily 4 weeks ago
datacatalog/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
dataflow/v1b3 all: autogenerated update (2020-05-18) 1 week ago
datafusion/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
dataproc all: autogenerated update (2020-05-18) 1 week ago
datastore all: autogenerated update (2020-05-18) 1 week ago
deploymentmanager all: autogenerated update (2020-05-18) 1 week ago
dfareporting all: autogenerated update (2020-05-18) 1 week ago
dialogflow all: autogenerated update (2020-05-18) 1 week ago
digitalassetlinks/v1 all: autogenerated update (2020-05-18) 1 week ago
discovery/v1 all: autogenerated update (2020-05-18) 1 week ago
displayvideo/v1 all: autogenerated update (2020-05-18) 1 week ago
dlp/v2 all: autogenerated update (2020-05-18) 1 week ago
dns all: autogenerated update (2020-05-18) 1 week ago
docs/v1 all: autogenerated update (2020-05-18) 1 week ago
domainsrdap/v1 all: autogenerated update (2020-05-18) 1 week ago
doubleclickbidmanager all: autogenerated update (2020-05-18) 1 week ago
doubleclicksearch/v2 all: autogenerated update (2020-05-18) 1 week ago
drive all: autogenerated update (2020-05-18) 1 week ago
driveactivity/v2 all: autogenerated update (2020-05-18) 1 week ago
examples customsearch: update custom search and stop generation temporarily 4 weeks ago
factchecktools/v1alpha1 all: autogenerated update (2020-05-18) 1 week ago
fcm/v1 all: autogenerated update (2020-05-18) 1 week ago
file all: autogenerated update (2020-05-18) 1 week ago
firebase/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
firebasedynamiclinks/v1 all: autogenerated update (2020-05-18) 1 week ago
firebasehosting/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
firebaseml/v1beta2 all: autogenerated update (2020-05-18) 1 week ago
firebaseremoteconfig/v1 all: regenerate 3 months ago
firebaserules/v1 all: autogenerated update (2020-05-18) 1 week ago
firestore all: autogenerated update (2020-05-18) 1 week ago
fitness/v1 all: autogenerated update (2020-05-18) 1 week ago
fusiontables all: regenerate 3 months ago
games/v1 all: autogenerated update (2020-05-18) 1 week ago
gamesconfiguration/v1configuration all: autogenerated update (2020-05-18) 1 week ago
gameservices/v1beta all: autogenerated update (2020-05-18) 1 week ago
gamesmanagement/v1management all: autogenerated update (2020-05-18) 1 week ago
genomics all: autogenerated update (2020-05-18) 1 week ago
gmail/v1 all: autogenerated update (2020-05-18) 1 week ago
google-api-go-generator internal: re-enable generation of customsearch (#511) 1 day ago
googleapi googleapi: return error details 3 weeks ago
groupsmigration/v1 all: autogenerated update (2020-05-18) 1 week ago
groupssettings/v1 all: autogenerated update (2020-05-18) 1 week ago
healthcare all: autogenerated update (2020-05-18) 1 week ago
homegraph/v1 all: autogenerated update (2020-05-18) 1 week ago
iam/v1 all: autogenerated update (2020-05-18) 1 week ago
iamcredentials/v1 all: autogenerated update (2020-05-18) 1 week ago
iap all: autogenerated update (2020-05-18) 1 week ago
identitytoolkit/v3 all: autogenerated update (2020-05-18) 1 week ago
idtoken idtoken: populate Claims map (#498) 2 days ago
indexing/v3 all: autogenerated update (2020-05-18) 1 week ago
integration-tests transport/http: use TokenSource from options for NewTransport 2 weeks ago
internal internal/kokoro: fix typo in script (#510) 1 day ago
iterator all: switch files to use LICENSE 7 months ago
jobs all: autogenerated update (2020-05-18) 1 week ago
kgsearch/v1 all: autogenerated update (2020-05-18) 1 week ago
language all: autogenerated update (2020-05-18) 1 week ago
lib/codereview codereview: change default cc to golang-codereviews 6 years ago
libraryagent/v1 all: autogenerated update (2020-05-18) 1 week ago
licensing/v1 all: autogenerated update (2020-05-18) 1 week ago
lifesciences/v2beta all: autogenerated update (2020-05-18) 1 week ago
logging all: autogenerated update (2020-05-18) 1 week ago
managedidentities all: autogenerated update (2020-05-18) 1 week ago
manufacturers/v1 all: autogenerated update (2020-05-18) 1 week ago
memcache/v1beta2 all: autogenerated update (2020-05-18) 1 week ago
mirror/v1 all: autogenerated update (2020-03-18) 2 months ago
ml/v1 all: autogenerated update (2020-05-18) 1 week ago
monitoring all: autogenerated update (2020-05-18) 1 week ago
networkmanagement/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
oauth2 all: autogenerated update (2020-05-18) 1 week ago
option transport/grpc: WithGRPCConnectionPool is a no-op for some APIs 2 months ago
osconfig all: autogenerated update (2020-05-18) 1 week ago
oslogin all: autogenerated update (2020-05-18) 1 week ago
pagespeedonline all: autogenerated update (2020-05-18) 1 week ago
partners/v2 all: regenerate 3 months ago
people/v1 all: autogenerated update (2020-05-18) 1 week ago
playcustomapp/v1 all: autogenerated update (2020-05-18) 1 week ago
playmoviespartner/v1 all: regenerate 3 months ago
plus/v1 all: autogenerated update (2020-05-18) 1 week ago
plusdomains/v1 all: regenerate 3 months ago
policytroubleshooter all: autogenerated update (2020-05-18) 1 week ago
poly/v1 all: autogenerated update (2020-05-18) 1 week ago
prod_tt_sasportal/v1alpha1 all: autogenerated update (2020-05-18) 1 week ago
proximitybeacon/v1beta1 all: autogenerated update (2020-03-18) 2 months ago
pubsub all: autogenerated update (2020-05-18) 1 week ago
qpxexpress/v1 all: regenerate 3 months ago
recommender/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
redis all: autogenerated update (2020-05-18) 1 week ago
remotebuildexecution all: autogenerated update (2020-05-18) 1 week ago
replicapool/v1beta1 all: regenerate 3 months ago
replicapoolupdater/v1beta1 all: regenerate 3 months ago
reseller/v1 all: autogenerated update (2020-05-18) 1 week ago
run all: autogenerated update (2020-05-18) 1 week ago
runtimeconfig all: autogenerated update (2020-05-18) 1 week ago
safebrowsing/v4 all: autogenerated update (2020-05-18) 1 week ago
sasportal/v1alpha1 all: autogenerated update (2020-05-18) 1 week ago
script/v1 all: autogenerated update (2020-05-18) 1 week ago
searchconsole/v1 all: autogenerated update (2020-05-18) 1 week ago
secretmanager all: autogenerated update (2020-05-18) 1 week ago
securitycenter all: autogenerated update (2020-05-18) 1 week ago
servicebroker all: regenerate 3 months ago
serviceconsumermanagement all: autogenerated update (2020-05-18) 1 week ago
servicecontrol/v1 all: autogenerated update (2020-05-18) 1 week ago
servicedirectory/v1beta1 all: autogenerated update (2020-05-18) 1 week ago
servicemanagement/v1 all: autogenerated update (2020-05-18) 1 week ago
servicenetworking all: autogenerated update (2020-05-18) 1 week ago
serviceusage all: autogenerated update (2020-05-18) 1 week ago
serviceuser/v1 all: regenerate 3 months ago
sheets/v4 all: autogenerated update (2020-05-18) 1 week ago
siteverification/v1 all: autogenerated update (2020-05-18) 1 week ago
slides/v1 all: autogenerated update (2020-05-18) 1 week ago
sourcerepo/v1 all: autogenerated update (2020-05-18) 1 week ago
spanner/v1 all: autogenerated update (2020-05-18) 1 week ago
spectrum/v1explorer all: regenerate 3 months ago
speech all: autogenerated update (2020-05-18) 1 week ago
sql/v1beta4 sql: re-deprecate client 3 weeks ago
sqladmin/v1beta4 all: autogenerated update (2020-05-18) 1 week ago
storage all: autogenerated update (2020-05-18) 1 week ago
storagetransfer/v1 all: autogenerated update (2020-05-18) 1 week ago
streetviewpublish/v1 all: autogenerated update (2020-05-18) 1 week ago
support/bundler support/bundler: fix deadlock when using time based flush 1 week ago
surveys/v2 all: regenerate 3 months ago
tagmanager all: autogenerated update (2020-05-18) 1 week ago
tasks/v1 all: autogenerated update (2020-05-18) 1 week ago
testing/v1 all: autogenerated update (2020-05-18) 1 week ago
texttospeech all: autogenerated update (2020-05-18) 1 week ago
toolresults all: autogenerated update (2020-05-18) 1 week ago
tpu all: autogenerated update (2020-05-18) 1 week ago
tracing/v2 all: regenerate 3 months ago
translate all: autogenerated update (2020-05-18) 1 week ago
transport transport/http: update default transport settings (#496) 1 day ago
urlshortener/v1 all: regenerate 3 months ago
vault/v1 all: autogenerated update (2020-05-18) 1 week ago
verifiedaccess/v1 all: autogenerated update (2020-05-18) 1 week ago
videointelligence all: autogenerated update (2020-05-18) 1 week ago
vision all: autogenerated update (2020-05-18) 1 week ago
webfonts/v1 all: autogenerated update (2020-05-18) 1 week ago
webmasters/v3 all: autogenerated update (2020-05-18) 1 week ago
websecurityscanner all: autogenerated update (2020-05-18) 1 week ago
youtube/v3 all: autogenerated update (2020-05-18) 1 week ago
youtubeanalytics all: autogenerated update (2020-05-18) 1 week ago
youtubereporting/v1 all: autogenerated update (2020-05-18) 1 week ago
.gitignore idtoken: support using ID Tokens 1 month ago
.hgtags Add release tag. 8 years ago
AUTHORS google-api-go-client: add a client option for disabling the oc http and grpc middlewares. 6 months ago
CHANGES.md all: release v0.25.0 (#493) 1 week ago
CONTRIBUTING.md CONTRIBUTING: improve readability (#500) 1 week ago
CONTRIBUTORS google-api-go-client: add a client option for disabling the oc http and grpc middlewares. 6 months 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 5 years ago
README.md internal: trigger kokoro 8 months ago
RELEASING.md readme: add info on auto-regeneration to RELEASING 3 months ago
TODO google-api-go-client: add updated GettingStarted.md doc 5 years ago
api-list.json all: autogenerated update (2020-05-09) 3 weeks ago
doc.go all: add license test and fix licenses 7 months ago
go.mod idtoken: support using ID Tokens 1 month ago
go.sum idtoken: support using ID Tokens 1 month ago
license_test.go all: move uritemplates to third_party 7 months ago
synth.py internal: fix pathing to script (#508) 3 days ago
tools.go all: switch files to use LICENSE 7 months 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.