• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

abusiveexperiencereport/v1/H04-May-2020-753507

acceleratedmobilepageurl/v1/H04-May-2020-668431

accessapproval/H04-May-2020-10,0726,260

accesscontextmanager/H04-May-2020-11,0376,594

adexchangebuyer/H04-May-2020-21,78813,911

adexchangebuyer2/v2beta1/H04-May-2020-23,00813,848

adexchangeseller/H04-May-2020-13,9748,860

adexperiencereport/v1/H04-May-2020-842554

admin/H04-May-2020-33,55621,282

admob/v1/H04-May-2020-3,2781,687

adsense/H04-May-2020-21,41813,619

adsensehost/v4.1/H04-May-2020-7,0074,465

alertcenter/v1beta1/H04-May-2020-5,2173,113

analytics/H04-May-2020-29,19118,483

analyticsreporting/v4/H04-May-2020-4,9252,641

androiddeviceprovisioning/v1/H04-May-2020-7,7654,841

androidenterprise/v1/H04-May-2020-19,70212,257

androidmanagement/v1/H04-May-2020-11,9247,276

androidpublisher/H04-May-2020-18,70911,838

apigee/v1/H04-May-2020-38,77223,824

appengine/H04-May-2020-49,86330,480

appsactivity/v1/H04-May-2020-1,345824

appstate/v1/H04-May-2020-1,307844

bigquery/v2/H04-May-2020-17,44710,527

bigqueryconnection/v1beta1/H04-May-2020-3,1561,801

bigquerydatatransfer/v1/H04-May-2020-8,7665,363

bigqueryreservation/H04-May-2020-14,8509,160

bigtableadmin/H04-May-2020-12,4547,390

billingbudgets/v1beta1/H04-May-2020-1,8911,141

binaryauthorization/H04-May-2020-7,9974,566

blogger/H04-May-2020-13,8948,758

books/v1/H04-May-2020-18,76411,471

calendar/v3/H04-May-2020-12,1617,242

chat/v1/H04-May-2020-3,7212,291

civicinfo/v2/H04-May-2020-4,3262,666

classroom/v1/H04-May-2020-17,0219,878

cloudasset/H04-May-2020-13,0556,584

cloudbilling/v1/H04-May-2020-4,6902,606

cloudbuild/H04-May-2020-12,3347,143

cloudcommerceprocurement/v1/H04-May-2020-3,6962,264

clouddebugger/v2/H04-May-2020-4,1262,319

clouderrorreporting/v1beta1/H04-May-2020-2,8181,642

cloudfunctions/H04-May-2020-9,2495,346

cloudidentity/H04-May-2020-8,9775,379

cloudiot/v1/H04-May-2020-7,4494,339

cloudkms/v1/H04-May-2020-10,2315,967

cloudprivatecatalog/v1beta1/H04-May-2020-3,2801,992

cloudprivatecatalogproducer/v1beta1/H04-May-2020-7,6484,502

cloudprofiler/v2/H04-May-2020-1,198740

cloudresourcemanager/H04-May-2020-24,17313,540

cloudscheduler/H04-May-2020-7,3664,152

cloudsearch/v1/H04-May-2020-19,40811,149

cloudshell/H04-May-2020-3,8872,341

cloudtasks/H04-May-2020-21,59910,990

cloudtrace/H04-May-2020-4,7652,847

commentanalyzer/v1alpha1/H04-May-2020-1,479869

composer/H04-May-2020-7,4844,119

compute/H04-May-2020-653,080383,674

consumersurveys/v2/H04-May-2020-3,1922,095

container/H04-May-2020-41,89524,805

containeranalysis/H04-May-2020-23,02513,520

content/H04-May-2020-91,26455,841

customsearch/v1/H04-May-2020-3,3791,883

datacatalog/v1beta1/H04-May-2020-14,0108,339

dataflow/v1b3/H04-May-2020-21,74312,629

datafusion/v1beta1/H04-May-2020-5,2353,055

dataproc/H04-May-2020-36,91222,598

datastore/H04-May-2020-14,4218,322

deploymentmanager/H04-May-2020-32,72919,438

dfareporting/H04-May-2020-426,770264,479

dialogflow/H04-May-2020-63,07337,291

digitalassetlinks/v1/H04-May-2020-1,666750

discovery/v1/H04-May-2020-1,9831,229

displayvideo/v1/H04-May-2020-32,98017,971

dlp/v2/H04-May-2020-31,70918,587

dns/H04-May-2020-22,15113,714

docs/v1/H04-May-2020-12,5006,468

domainsrdap/v1/H04-May-2020-2,2171,464

doubleclickbidmanager/H04-May-2020-11,3837,410

doubleclicksearch/v2/H04-May-2020-3,4102,181

drive/H04-May-2020-38,03523,383

driveactivity/v2/H04-May-2020-3,2501,916

examples/H03-May-2022-1,177909

factchecktools/v1alpha1/H04-May-2020-2,2831,388

fcm/v1/H04-May-2020-1,945977

file/H04-May-2020-8,1794,918

firebase/v1beta1/H04-May-2020-9,1155,282

firebasedynamiclinks/v1/H04-May-2020-3,1871,863

firebasehosting/v1beta1/H04-May-2020-9,9286,218

firebaseml/v1beta2/H04-May-2020-1,9651,243

firebaseremoteconfig/v1/H04-May-2020-995581

firebaserules/v1/H04-May-2020-4,1462,435

firestore/H04-May-2020-23,19613,581

fitness/v1/H04-May-2020-5,3903,323

fusiontables/H04-May-2020-16,83310,901

games/v1/H04-May-2020-17,37910,662

gamesconfiguration/v1configuration/H04-May-2020-3,1592,039

gameservices/v1beta/H04-May-2020-11,7156,937

gamesmanagement/v1management/H04-May-2020-3,9012,529

genomics/H04-May-2020-11,6826,359

gmail/v1/H04-May-2020-17,09810,614

google-api-go-generator/H04-May-2020-42,57839,282

googleapi/H04-May-2020-1,095793

groupsmigration/v1/H04-May-2020-534358

groupssettings/v1/H04-May-2020-1,563829

healthcare/H04-May-2020-71,86441,046

homegraph/v1/H04-May-2020-2,2251,283

iam/v1/H04-May-2020-10,3896,168

iamcredentials/v1/H04-May-2020-1,443901

iap/H04-May-2020-5,6933,195

identitytoolkit/v3/H04-May-2020-7,0284,576

idtoken/H04-May-2020-893712

indexing/v3/H04-May-2020-756506

integration-tests/H04-May-2020-521439

internal/H04-May-2020-4,1413,174

iterator/H04-May-2020-939626

jobs/H04-May-2020-32,01316,501

kgsearch/v1/H04-May-2020-579381

language/H04-May-2020-10,1696,122

lib/codereview/H04-May-2020-21

libraryagent/v1/H04-May-2020-1,6271,057

licensing/v1/H04-May-2020-1,9131,251

lifesciences/v2beta/H04-May-2020-4,0192,176

logging/H04-May-2020-27,86717,187

managedidentities/H04-May-2020-19,79411,606

manufacturers/v1/H04-May-2020-2,3591,413

memcache/v1beta2/H04-May-2020-6,0753,471

mirror/v1/H04-May-2020-6,2333,962

ml/v1/H04-May-2020-15,7038,863

monitoring/H04-May-2020-21,59812,562

networkmanagement/v1beta1/H04-May-2020-6,8073,853

oauth2/H04-May-2020-1,8871,277

option/H04-May-2020-476275

osconfig/H04-May-2020-12,0577,184

oslogin/H04-May-2020-5,2713,442

pagespeedonline/H04-May-2020-6,5323,976

partners/v2/H04-May-2020-10,8946,401

people/v1/H04-May-2020-7,4844,330

playcustomapp/v1/H04-May-2020-564381

playmoviespartner/v1/H04-May-2020-3,3152,003

plus/v1/H04-May-2020-5,6263,325

plusdomains/v1/H04-May-2020-6,7244,017

policytroubleshooter/H04-May-2020-3,5001,602

poly/v1/H04-May-2020-2,7171,574

prod_tt_sasportal/v1alpha1/H04-May-2020-11,1487,227

proximitybeacon/v1beta1/H04-May-2020-5,5063,095

pubsub/H04-May-2020-18,27710,797

qpxexpress/v1/H04-May-2020-2,3161,406

recommender/v1beta1/H04-May-2020-3,3461,980

redis/H04-May-2020-9,0435,458

remotebuildexecution/H04-May-2020-22,25711,311

replicapool/v1beta1/H04-May-2020-3,9272,441

replicapoolupdater/v1beta1/H04-May-2020-3,5542,218

reseller/v1/H04-May-2020-4,2902,674

run/H04-May-2020-46,81726,877

runtimeconfig/H04-May-2020-7,1674,211

safebrowsing/v4/H04-May-2020-3,8192,367

sasportal/v1alpha1/H04-May-2020-11,1477,226

script/v1/H04-May-2020-6,4353,860

searchconsole/v1/H04-May-2020-834527

secretmanager/H04-May-2020-10,1345,978

securitycenter/H04-May-2020-31,68017,514

servicebroker/H04-May-2020-13,7448,053

serviceconsumermanagement/H04-May-2020-20,1009,638

servicecontrol/v1/H04-May-2020-5,5992,893

servicedirectory/v1beta1/H04-May-2020-6,2803,771

servicemanagement/v1/H04-May-2020-13,3606,669

servicenetworking/H04-May-2020-17,9858,448

serviceusage/H04-May-2020-21,37010,458

serviceuser/v1/H04-May-2020-6,8333,166

sheets/v4/H04-May-2020-20,20710,988

siteverification/v1/H04-May-2020-1,5961,039

slides/v1/H04-May-2020-13,4096,851

sourcerepo/v1/H04-May-2020-3,8232,173

spanner/v1/H04-May-2020-18,1979,996

spectrum/v1explorer/H04-May-2020-3,7202,110

speech/H04-May-2020-11,1696,308

sql/v1beta4/H04-May-2020-15,1659,284

sqladmin/v1beta4/H04-May-2020-15,1619,284

storage/H04-May-2020-33,70720,553

storagetransfer/v1/H04-May-2020-4,4842,476

streetviewpublish/v1/H04-May-2020-3,4291,940

support/bundler/H04-May-2020-917620

surveys/v2/H04-May-2020-2,7161,726

tagmanager/H04-May-2020-34,00221,343

tasks/v1/H04-May-2020-3,2212,097

testing/v1/H04-May-2020-6,1683,453

texttospeech/H04-May-2020-2,3821,410

toolresults/H04-May-2020-15,7638,949

tpu/H04-May-2020-9,6826,142

tracing/v2/H04-May-2020-2,5841,470

translate/H04-May-2020-13,1037,741

transport/H04-May-2020-3,6142,815

urlshortener/v1/H04-May-2020-1,128728

vault/v1/H04-May-2020-8,6085,397

verifiedaccess/v1/H04-May-2020-809527

videointelligence/H04-May-2020-62,60535,913

vision/H04-May-2020-79,44045,812

webfonts/v1/H04-May-2020-551366

webmasters/v3/H04-May-2020-2,3071,486

websecurityscanner/H04-May-2020-14,3948,835

youtube/v3/H04-May-2020-36,01921,238

youtubeanalytics/H04-May-2020-5,7473,400

youtubereporting/v1/H04-May-2020-3,4522,178

.gitignoreH A D04-May-2020183 1916

AUTHORSH A D04-May-2020347 129

CHANGES.mdH A D04-May-20206.9 KiB254154

CONTRIBUTING.mdH A D04-May-20206.2 KiB159120

CONTRIBUTORSH A D04-May-20202.1 KiB5753

GettingStarted.mdH A D04-May-20204.5 KiB147105

LICENSEH A D04-May-20201.4 KiB2824

NOTESH A D04-May-2020430 1410

README.mdH A D04-May-20203.5 KiB10678

RELEASING.mdH A D04-May-20201.3 KiB3124

TODOH A D04-May-202064 32

api-list.jsonH A D04-May-2020193.2 KiB4,2844,283

doc.goH A D04-May-20202.2 KiB551

go.modH A D04-May-2020618 2017

go.sumH A D04-May-202029.4 KiB301300

license_test.goH A D04-May-20201.7 KiB6747

tools.goH A D04-May-2020303 146

README.md

1# Google APIs Client Library for Go
2
3## Getting Started
4
5```
6$ go get google.golang.org/api/tasks/v1
7$ go get google.golang.org/api/moderator/v1
8$ go get google.golang.org/api/urlshortener/v1
9... etc ...
10```
11
12and using:
13
14```go
15package main
16
17import (
18	"net/http"
19
20	"google.golang.org/api/urlshortener/v1"
21)
22
23func main() {
24	svc, err := urlshortener.New(http.DefaultClient)
25	// ...
26}
27```
28
29* For a longer tutorial, see the [Getting Started guide](https://github.com/google/google-api-go-client/blob/master/GettingStarted.md).
30* For examples, see the [examples directory](https://github.com/google/google-api-go-client/tree/master/examples).
31* For support, use the [golang-nuts](https://groups.google.com/group/golang-nuts) mailing list.
32* The code review instance may be found [here](https://code-review.googlesource.com).
33
34## Status
35[![GoDoc](https://godoc.org/google.golang.org/api?status.svg)](https://godoc.org/google.golang.org/api)
36
37These are auto-generated Go libraries from the Google Discovery Service's JSON description files of the available "new style" Google APIs.
38
39Due to the auto-generated nature of this collection of libraries, complete APIs or specific versions can appear or go away without notice.
40As a result, you should always locally vendor any API(s) that your code relies upon.
41
42These 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.
43
44If you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub,
45consider using the
46[Cloud Client Libraries for Go](https://github.com/googleapis/google-cloud-go)
47instead. These are the new and
48idiomatic Go libraries targeted specifically at Google Cloud Platform Services.
49
50The generator itself and the code it produces are beta. Some APIs are
51alpha/beta, and indicated as such in the import path (e.g.,
52"google.golang.org/api/someapi/v1alpha").
53
54## Application Default Credentials Example
55
56Application Default Credentials provide a simplified way to obtain credentials
57for authenticating with Google APIs.
58
59The Application Default Credentials authenticate as the application itself,
60which make them great for working with Google Cloud APIs like Storage or
61Datastore. They are the recommended form of authentication when building
62applications that run on Google Compute Engine or Google App Engine.
63
64Default credentials are provided by the `golang.org/x/oauth2/google` package. To use them, add the following import:
65
66```go
67import "golang.org/x/oauth2/google"
68```
69
70Some 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:
71
72```go
73import (
74        "context"
75        "golang.org/x/oauth2/google"
76        "google.golang.org/api/compute/v1"
77)
78
79func main() {
80        // Use oauth2.NoContext if there isn't a good context to pass in.
81        ctx := context.Background()
82
83        client, err := google.DefaultClient(ctx, compute.ComputeScope)
84        if err != nil {
85                //...
86        }
87        computeService, err := compute.New(client)
88        if err != nil {
89                //...
90        }
91}
92```
93
94If you need a `oauth2.TokenSource`, use the `DefaultTokenSource` function:
95
96```go
97ts, err := google.DefaultTokenSource(ctx, scope1, scope2, ...)
98if err != nil {
99        //...
100}
101client := oauth2.NewClient(ctx, ts)
102```
103
104See also: [golang.org/x/oauth2/google](https://godoc.org/golang.org/x/oauth2/google) package documentation.
105
106