Skip to content
Auto-generated Google APIs for Go.
Branch: master
Clone or download
googleapis-publisher all: autogenerated update (2019-07-12)
Update:
- analyticsreporting/v4
- container/v1beta1
- containeranalysis/v1alpha1
- containeranalysis/v1beta1
- dataproc/v1
- dataproc/v1beta2
- fcm/v1
- iamcredentials/v1
- pubsub/v1
- pubsub/v1beta2
- run/v1alpha1
- videointelligence/v1
Latest commit aa15faf Jul 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
abusiveexperiencereport/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
acceleratedmobilepageurl/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
accessapproval/v1beta1 all: autogenerated update (2019-05-10) May 10, 2019
accesscontextmanager all: autogenerated update (2019-07-10) Jul 10, 2019
adexchangebuyer all: autogenerated update (2019-06-20) Jun 20, 2019
adexchangebuyer2/v2beta1 all: autogenerated update (2019-06-01) Jun 1, 2019
adexchangeseller all: use relative path for Makefile, regenerate all May 1, 2019
adexperiencereport/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
admin all: autogenerated update (2019-06-30) Jun 30, 2019
adsense all: use relative path for Makefile, regenerate all May 1, 2019
adsensehost/v4.1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
alertcenter/v1beta1 all: autogenerated update (2019-06-01) Jun 1, 2019
analytics all: autogenerated update (2019-06-12) Jun 12, 2019
analyticsreporting/v4 all: autogenerated update (2019-07-12) Jul 12, 2019
androiddeviceprovisioning/v1 all: autogenerated update (2019-07-09) Jul 9, 2019
androidenterprise/v1 all: autogenerated update (2019-06-07) Jun 7, 2019
androidmanagement/v1 all: autogenerated update (2019-07-11) Jul 11, 2019
androidpublisher all: autogenerated update (2019-07-04) Jul 4, 2019
appengine all: autogenerated update (2019-06-07) Jun 7, 2019
appsactivity/v1 google-api-go-client: Update generated code from discovery. Apr 2, 2019
appstate/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
bigquery/v2 all: autogenerated update (2019-07-06) Jul 6, 2019
bigquerydatatransfer/v1 all: autogenerated update (2019-06-21) Jun 21, 2019
bigtableadmin all: autogenerated update (2019-07-06) Jul 6, 2019
binaryauthorization/v1beta1 all: autogenerated update (2019-07-02) Jul 2, 2019
blogger all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
books/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
calendar/v3 all: autogenerated update (2019-06-30) Jun 30, 2019
chat/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
civicinfo/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
classroom/v1 all: manually regenerate discovery May 8, 2019
cloudasset all: autogenerated update (2019-07-11) Jul 11, 2019
cloudbilling/v1 all: autogenerated update (2019-07-10) Jul 10, 2019
cloudbuild all: autogenerated update (2019-07-04) Jul 4, 2019
clouddebugger/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
clouderrorreporting/v1beta1 all: autogenerated update (2019-04-23) Apr 23, 2019
cloudfunctions all: autogenerated update (2019-06-20) Jun 20, 2019
cloudidentity all: autogenerated update (2019-06-01) Jun 1, 2019
cloudiot/v1 all: autogenerated update (2019-07-09) Jul 9, 2019
cloudkms/v1 all: autogenerated update (2019-06-30) Jun 30, 2019
cloudprivatecatalog/v1beta1 all: autogenerated update (2019-05-17) May 17, 2019
cloudprivatecatalogproducer/v1beta1 all: autogenerated update (2019-07-09) Jul 9, 2019
cloudprofiler/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
cloudresourcemanager all: autogenerated update (2019-07-11) Jul 11, 2019
cloudscheduler all: autogenerated update (2019-06-13) Jun 13, 2019
cloudsearch/v1 all: autogenerated update (2019-06-30) Jun 30, 2019
cloudshell all: autogenerated update (2019-06-16) Jun 16, 2019
cloudtasks all: autogenerated update (2019-07-04) Jul 4, 2019
cloudtrace all: autogenerated update (2019-06-12) Jun 12, 2019
commentanalyzer/v1alpha1 all: autogenerated update (2019-06-20) Jun 20, 2019
composer all: autogenerated update (2019-06-20) Jun 20, 2019
compute all: autogenerated update (2019-07-10) Jul 10, 2019
consumersurveys/v2 all: use relative path for Makefile, regenerate all May 1, 2019
container all: autogenerated update (2019-07-12) Jul 12, 2019
containeranalysis all: autogenerated update (2019-07-12) Jul 12, 2019
content all: autogenerated update (2019-07-10) Jul 10, 2019
customsearch/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dataflow/v1b3 all: autogenerated update (2019-07-06) Jul 6, 2019
datafusion/v1beta1 all: autogenerated update (2019-06-12) Jun 12, 2019
dataproc all: autogenerated update (2019-07-12) Jul 12, 2019
datastore all: autogenerated update (2019-05-17) May 17, 2019
deploymentmanager all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dfareporting all: autogenerated update (2019-07-04) Jul 4, 2019
dialogflow all: autogenerated update (2019-07-11) Jul 11, 2019
digitalassetlinks/v1 all: autogenerated update (2019-05-05) May 5, 2019
discovery/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dlp/v2 all: autogenerated update (2019-07-02) Jul 2, 2019
dns all: autogenerated update (2019-06-30) Jun 30, 2019
docs/v1 all: autogenerated update (2019-07-04) Jul 4, 2019
doubleclickbidmanager/v1 all: autogenerated update (2019-06-30) Jun 30, 2019
doubleclicksearch/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
drive all: autogenerated update (2019-06-30) Jun 30, 2019
driveactivity/v2 all: autogenerated update (2019-04-27) Apr 27, 2019
examples examples: Add example of custom search Dec 6, 2018
factchecktools/v1alpha1 all: autogenerated update (2019-03-29) Mar 29, 2019
fcm/v1 all: autogenerated update (2019-07-12) Jul 12, 2019
file all: autogenerated update (2019-07-04) Jul 4, 2019
firebase/v1beta1 all: autogenerated update (2019-07-06) Jul 6, 2019
firebasedynamiclinks/v1 all: autogenerated update (2019-04-27) Apr 27, 2019
firebasehosting/v1beta1 all: autogenerated update (2019-04-23) Apr 23, 2019
firebaseremoteconfig/v1 all: use relative path for Makefile, regenerate all May 1, 2019
firebaserules/v1 all: autogenerated update (2019-04-27) Apr 27, 2019
firestore all: autogenerated update (2019-04-27) Apr 27, 2019
fitness/v1 all: autogenerated update (2019-07-04) Jul 4, 2019
fusiontables all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
games/v1 all: autogenerated update (2019-05-26) May 26, 2019
gamesconfiguration/v1configuration all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
gamesmanagement/v1management all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
genomics all: autogenerated update (2019-06-30) Jun 30, 2019
gensupport gensupport: fix incorrect MIME boundary being used in bodies on retries Mar 18, 2019
gmail/v1 all: autogenerated update (2019-06-07) Jun 7, 2019
google-api-go-generator all: use relative path for Makefile, regenerate all May 1, 2019
googleapi internal: fix new staticcheck warnings Jan 8, 2019
groupsmigration/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
groupssettings/v1 all: autogenerated update (2019-03-27) Mar 27, 2019
healthcare all: autogenerated update (2019-07-11) Jul 11, 2019
iam/v1 all: autogenerated update (2019-07-11) Jul 11, 2019
iamcredentials/v1 all: autogenerated update (2019-07-12) Jul 12, 2019
iap all: autogenerated update (2019-07-10) Jul 10, 2019
identitytoolkit/v3 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
indexing/v3 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
integration-tests/storage all: update generator to use "context" Nov 7, 2018
internal internal: improve CI/CD scripts Mar 5, 2019
iterator docs: Change Example_webHandler to show variables inline Feb 5, 2019
jobs all: autogenerated update (2019-07-02) Jul 2, 2019
kgsearch/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
language all: autogenerated update (2019-07-11) Jul 11, 2019
lib/codereview codereview: change default cc to golang-codereviews Dec 20, 2013
libraryagent/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
licensing/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
logging all: autogenerated update (2019-06-16) Jun 16, 2019
manufacturers/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
mirror/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
ml/v1 all: autogenerated update (2019-07-10) Jul 10, 2019
monitoring all: autogenerated update (2019-06-30) Jun 30, 2019
oauth2 all: autogenerated update (2019-04-18) Apr 18, 2019
option option: support system parameters Feb 12, 2019
oslogin all: autogenerated update (2019-05-02) May 2, 2019
pagespeedonline all: manually regenerate discovery May 8, 2019
partners/v2 all: use relative path for Makefile, regenerate all May 1, 2019
people/v1 all: autogenerated update (2019-06-12) Jun 12, 2019
playcustomapp/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
playmoviespartner/v1 all: use relative path for Makefile, regenerate all May 1, 2019
plus/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
plusdomains/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
poly/v1 all: autogenerated update (2019-04-12) Apr 12, 2019
prediction all: use relative path for Makefile, regenerate all May 1, 2019
proximitybeacon/v1beta1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
pubsub all: autogenerated update (2019-07-12) Jul 12, 2019
qpxexpress/v1 all: use relative path for Makefile, regenerate all May 1, 2019
redis all: autogenerated update (2019-06-30) Jun 30, 2019
remotebuildexecution all: autogenerated update (2019-06-20) Jun 20, 2019
replicapool/v1beta1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
replicapoolupdater/v1beta1 all: use relative path for Makefile, regenerate all May 1, 2019
reseller/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
run all: autogenerated update (2019-07-12) Jul 12, 2019
runtimeconfig all: autogenerated update (2019-07-11) Jul 11, 2019
safebrowsing/v4 all: autogenerated update (2019-05-22) May 22, 2019
script/v1 all: autogenerated update (2019-05-17) May 17, 2019
searchconsole/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
securitycenter all: autogenerated update (2019-07-09) Jul 9, 2019
servicebroker all: autogenerated update (2019-07-11) Jul 11, 2019
serviceconsumermanagement/v1 all: autogenerated update (2019-07-10) Jul 10, 2019
servicecontrol/v1 all: autogenerated update (2019-06-22) Jun 22, 2019
servicemanagement/v1 all: autogenerated update (2019-07-11) Jul 11, 2019
servicenetworking all: autogenerated update (2019-07-10) Jul 10, 2019
serviceusage all: autogenerated update (2019-07-10) Jul 10, 2019
serviceuser/v1 all: use relative path for Makefile, regenerate all May 1, 2019
sheets/v4 all: autogenerated update (2019-07-11) Jul 11, 2019
siteverification/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
slides/v1 all: autogenerated update (2019-07-10) Jul 10, 2019
sourcerepo/v1 all: autogenerated update (2019-06-30) Jun 30, 2019
spanner/v1 all: autogenerated update (2019-06-22) Jun 22, 2019
spectrum/v1explorer all: use relative path for Makefile, regenerate all May 1, 2019
speech all: autogenerated update (2019-07-02) Jul 2, 2019
sqladmin/v1beta4 all: autogenerated update (2019-06-12) Jun 12, 2019
storage all: autogenerated update (2019-06-30) Jun 30, 2019
storagetransfer/v1 all: autogenerated update (2019-06-07) Jun 7, 2019
streetviewpublish/v1 all: autogenerated update (2019-06-01) Jun 1, 2019
support/bundler Adding 5000 items to bundler exceeds the memory limit of the app engine Dec 13, 2018
surveys/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
tagmanager all: autogenerated update (2019-07-10) Jul 10, 2019
tasks/v1 all: autogenerated update (2019-07-04) Jul 4, 2019
testing/v1 all: autogenerated update (2019-06-01) Jun 1, 2019
texttospeech all: autogenerated update (2019-07-04) Jul 4, 2019
toolresults/v1beta3 all: autogenerated update (2019-07-04) Jul 4, 2019
tpu all: autogenerated update (2019-06-23) Jun 23, 2019
tracing/v2 all: use relative path for Makefile, regenerate all May 1, 2019
translate/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
transport transport: fixed link in the examples_test.go Jun 27, 2019
urlshortener/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
vault/v1 all: autogenerated update (2019-06-30) Jun 30, 2019
videointelligence all: autogenerated update (2019-07-12) Jul 12, 2019
vision all: autogenerated update (2019-07-10) Jul 10, 2019
webfonts/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
webmasters/v3 all: autogenerated update (2019-05-02) May 2, 2019
websecurityscanner all: autogenerated update (2019-07-02) Jul 2, 2019
youtube/v3 all: autogenerated update (2019-05-17) May 17, 2019
youtubeanalytics all: autogenerated update (2019-06-04) Jun 4, 2019
youtubereporting/v1 all: autogenerated update (2019-04-10) Apr 10, 2019
.gitignore google-api-go-generator: move Makefile up from root Aug 17, 2017
.hgtags Add release tag. Feb 7, 2012
AUTHORS Add A+C files. Feb 7, 2012
CHANGES.md all: release v0.7.0 Jun 24, 2019
CONTRIBUTING.md google-api-go-client: remove italics next to <> May 21, 2015
CONTRIBUTORS Strip URL after colon in relstr and append later Jun 6, 2018
GettingStarted.md all: update generator to use "context" Nov 7, 2018
LICENSE a Google API -> Go code generator and base library Aug 24, 2011
NOTES google-api-go-client: add updated GettingStarted.md doc Apr 6, 2015
README.md docs: Add link to code review instance to README Dec 6, 2018
RELEASING.md docs: add RELEASING.md and CHANGES.md Apr 25, 2019
TODO google-api-go-client: add updated GettingStarted.md doc Apr 6, 2015
api-list.json all: autogenerated update (2019-07-10) Jul 10, 2019
doc.go docs: document integer granularity Jun 14, 2019
go.mod transport: Add dialer with tcp user timeout Jun 13, 2019
go.sum transport: Add dialer with tcp user timeout Jun 13, 2019
tools.go internal: improve CI/CD scripts Mar 5, 2019

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.

You can’t perform that action at this time.