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

..03-May-2022-

.github/H28-Oct-2021-

abusiveexperiencereport/v1/H28-Oct-2021-

acceleratedmobilepageurl/v1/H28-Oct-2021-

accessapproval/H28-Oct-2021-

accesscontextmanager/H28-Oct-2021-

adexchangebuyer/H28-Oct-2021-

adexchangebuyer2/v2beta1/H28-Oct-2021-

adexchangeseller/H28-Oct-2021-

adexperiencereport/v1/H28-Oct-2021-

admin/H28-Oct-2021-

admob/H28-Oct-2021-

adsense/H28-Oct-2021-

adsensehost/v4.1/H28-Oct-2021-

alertcenter/v1beta1/H28-Oct-2021-

analytics/H28-Oct-2021-

analyticsadmin/v1alpha/H28-Oct-2021-

analyticsdata/H28-Oct-2021-

analyticsreporting/v4/H28-Oct-2021-

androiddeviceprovisioning/v1/H28-Oct-2021-

androidenterprise/v1/H28-Oct-2021-

androidmanagement/v1/H28-Oct-2021-

androidpublisher/H28-Oct-2021-

apigateway/H28-Oct-2021-

apigee/v1/H28-Oct-2021-

apikeys/v2/H28-Oct-2021-

appengine/H28-Oct-2021-

appsactivity/v1/H28-Oct-2021-

appstate/v1/H28-Oct-2021-

area120tables/v1alpha1/H28-Oct-2021-

artifactregistry/H28-Oct-2021-

assuredworkloads/H28-Oct-2021-

authorizedbuyersmarketplace/v1/H28-Oct-2021-

baremetalsolution/H28-Oct-2021-

bigquery/v2/H28-Oct-2021-

bigqueryconnection/v1beta1/H28-Oct-2021-

bigquerydatatransfer/v1/H28-Oct-2021-

bigqueryreservation/H28-Oct-2021-

bigtableadmin/H28-Oct-2021-

billingbudgets/H28-Oct-2021-

binaryauthorization/H28-Oct-2021-

blogger/H28-Oct-2021-

books/v1/H28-Oct-2021-

calendar/v3/H28-Oct-2021-

chat/v1/H28-Oct-2021-

chromemanagement/v1/H28-Oct-2021-

chromepolicy/v1/H28-Oct-2021-

chromeuxreport/v1/H28-Oct-2021-

civicinfo/v2/H28-Oct-2021-

classroom/v1/H28-Oct-2021-

cloudasset/H28-Oct-2021-

cloudbilling/v1/H28-Oct-2021-

cloudbuild/H28-Oct-2021-

cloudchannel/v1/H28-Oct-2021-

cloudcommerceprocurement/v1/H28-Oct-2021-

clouddebugger/v2/H28-Oct-2021-

clouderrorreporting/v1beta1/H28-Oct-2021-

cloudfunctions/H28-Oct-2021-

cloudidentity/H28-Oct-2021-

cloudiot/v1/H28-Oct-2021-

cloudkms/v1/H28-Oct-2021-

cloudprivatecatalog/v1beta1/H28-Oct-2021-

cloudprivatecatalogproducer/v1beta1/H28-Oct-2021-

cloudprofiler/v2/H28-Oct-2021-

cloudresourcemanager/H28-Oct-2021-

cloudscheduler/H28-Oct-2021-

cloudsearch/v1/H28-Oct-2021-

cloudshell/H28-Oct-2021-

cloudtasks/H28-Oct-2021-

cloudtrace/H28-Oct-2021-

commentanalyzer/v1alpha1/H28-Oct-2021-

composer/H28-Oct-2021-

compute/H28-Oct-2021-

connectors/v1/H28-Oct-2021-

consumersurveys/v2/H28-Oct-2021-

contactcenterinsights/v1/H28-Oct-2021-

container/H28-Oct-2021-

containeranalysis/H28-Oct-2021-

content/H28-Oct-2021-

corp_autopush_learningstate/v1/H28-Oct-2021-

corp_spatialanalytics/v1/H28-Oct-2021-

customsearch/v1/H28-Oct-2021-

datacatalog/H28-Oct-2021-

dataflow/v1b3/H28-Oct-2021-

datafusion/H28-Oct-2021-

datalabeling/v1beta1/H28-Oct-2021-

datamigration/H28-Oct-2021-

datapipelines/v1/H28-Oct-2021-

dataproc/H28-Oct-2021-

datastore/H28-Oct-2021-

datastream/v1alpha1/H28-Oct-2021-

deploymentmanager/H28-Oct-2021-

dfareporting/H28-Oct-2021-

dialogflow/H28-Oct-2021-

digitalassetlinks/v1/H28-Oct-2021-

discovery/v1/H28-Oct-2021-

displayvideo/H28-Oct-2021-

dlp/v2/H28-Oct-2021-

dns/H28-Oct-2021-

docs/v1/H28-Oct-2021-

documentai/H28-Oct-2021-

domains/H28-Oct-2021-

domainsrdap/v1/H28-Oct-2021-

doubleclickbidmanager/H28-Oct-2021-

doubleclicksearch/v2/H28-Oct-2021-

drive/H28-Oct-2021-

driveactivity/v2/H28-Oct-2021-

essentialcontacts/v1/H28-Oct-2021-

eventarc/H28-Oct-2021-

examples/H03-May-2022-

factchecktools/v1alpha1/H28-Oct-2021-

fcm/v1/H28-Oct-2021-

fcmdata/v1beta1/H28-Oct-2021-

file/H28-Oct-2021-

firebase/v1beta1/H28-Oct-2021-

firebaseappcheck/v1beta/H28-Oct-2021-

firebasedatabase/v1beta/H28-Oct-2021-

firebasedynamiclinks/v1/H28-Oct-2021-

firebasehosting/H28-Oct-2021-

firebaseml/H28-Oct-2021-

firebaseremoteconfig/v1/H28-Oct-2021-

firebaserules/v1/H28-Oct-2021-

firebasestorage/v1beta/H28-Oct-2021-

firestore/H28-Oct-2021-

fitness/v1/H28-Oct-2021-

fusiontables/H28-Oct-2021-

games/v1/H28-Oct-2021-

gamesconfiguration/v1configuration/H28-Oct-2021-

gameservices/H28-Oct-2021-

gamesmanagement/v1management/H28-Oct-2021-

genomics/H28-Oct-2021-

gkehub/H28-Oct-2021-

gmail/v1/H28-Oct-2021-

gmailpostmastertools/H28-Oct-2021-

google-api-go-generator/H28-Oct-2021-

googleapi/H28-Oct-2021-

groupsmigration/v1/H28-Oct-2021-

groupssettings/v1/H28-Oct-2021-

healthcare/H28-Oct-2021-

homegraph/v1/H28-Oct-2021-

iam/v1/H28-Oct-2021-

iamcredentials/v1/H28-Oct-2021-

iap/H28-Oct-2021-

ideahub/H28-Oct-2021-

identitytoolkit/v3/H28-Oct-2021-

idtoken/H28-Oct-2021-

impersonate/H28-Oct-2021-

indexing/v3/H28-Oct-2021-

integration-tests/H28-Oct-2021-

internal/H28-Oct-2021-

iterator/H28-Oct-2021-

jobs/H28-Oct-2021-

keep/v1/H28-Oct-2021-

kgsearch/v1/H28-Oct-2021-

language/H28-Oct-2021-

lib/codereview/H28-Oct-2021-

libraryagent/v1/H28-Oct-2021-

licensing/v1/H28-Oct-2021-

lifesciences/v2beta/H28-Oct-2021-

localservices/v1/H28-Oct-2021-

logging/H28-Oct-2021-

managedidentities/H28-Oct-2021-

manufacturers/v1/H28-Oct-2021-

memcache/H28-Oct-2021-

metastore/H28-Oct-2021-

mirror/v1/H28-Oct-2021-

ml/v1/H28-Oct-2021-

monitoring/H28-Oct-2021-

mybusinessaccountmanagement/v1/H28-Oct-2021-

mybusinessbusinessinformation/v1/H28-Oct-2021-

mybusinesslodging/v1/H28-Oct-2021-

mybusinessnotifications/v1/H28-Oct-2021-

mybusinessplaceactions/v1/H28-Oct-2021-

mybusinessverifications/v1/H28-Oct-2021-

networkconnectivity/H28-Oct-2021-

networkmanagement/H28-Oct-2021-

networksecurity/H28-Oct-2021-

networkservices/H28-Oct-2021-

notebooks/v1/H28-Oct-2021-

oauth2/H28-Oct-2021-

ondemandscanning/H28-Oct-2021-

option/H28-Oct-2021-

orgpolicy/v2/H28-Oct-2021-

osconfig/H28-Oct-2021-

oslogin/H28-Oct-2021-

pagespeedonline/H28-Oct-2021-

partners/v2/H28-Oct-2021-

paymentsresellersubscription/v1/H28-Oct-2021-

people/v1/H28-Oct-2021-

playablelocations/v3/H28-Oct-2021-

playcustomapp/v1/H28-Oct-2021-

playmoviespartner/v1/H28-Oct-2021-

plus/v1/H28-Oct-2021-

plusdomains/v1/H28-Oct-2021-

policyanalyzer/H28-Oct-2021-

policysimulator/H28-Oct-2021-

policytroubleshooter/H28-Oct-2021-

poly/v1/H28-Oct-2021-

privateca/H28-Oct-2021-

prod_tt_sasportal/v1alpha1/H28-Oct-2021-

proximitybeacon/v1beta1/H28-Oct-2021-

pubsub/H28-Oct-2021-

pubsublite/v1/H28-Oct-2021-

qpxexpress/v1/H28-Oct-2021-

realtimebidding/H28-Oct-2021-

recaptchaenterprise/v1/H28-Oct-2021-

recommendationengine/v1beta1/H28-Oct-2021-

recommender/H28-Oct-2021-

redis/H28-Oct-2021-

remotebuildexecution/H28-Oct-2021-

replicapool/v1beta1/H28-Oct-2021-

replicapoolupdater/v1beta1/H28-Oct-2021-

reseller/v1/H28-Oct-2021-

resourcesettings/v1/H28-Oct-2021-

retail/H28-Oct-2021-

run/H28-Oct-2021-

runtimeconfig/H28-Oct-2021-

safebrowsing/v4/H28-Oct-2021-

sasportal/v1alpha1/H28-Oct-2021-

script/v1/H28-Oct-2021-

searchconsole/v1/H28-Oct-2021-

secretmanager/H28-Oct-2021-

securitycenter/H28-Oct-2021-

servicebroker/H28-Oct-2021-

serviceconsumermanagement/H28-Oct-2021-

servicecontrol/H28-Oct-2021-

servicedirectory/H28-Oct-2021-

servicemanagement/v1/H28-Oct-2021-

servicenetworking/H28-Oct-2021-

serviceusage/H28-Oct-2021-

serviceuser/v1/H28-Oct-2021-

sheets/v4/H28-Oct-2021-

siteverification/v1/H28-Oct-2021-

slides/v1/H28-Oct-2021-

smartdevicemanagement/v1/H28-Oct-2021-

sourcerepo/v1/H28-Oct-2021-

spanner/v1/H28-Oct-2021-

spectrum/v1explorer/H28-Oct-2021-

speech/H28-Oct-2021-

sql/v1beta4/H28-Oct-2021-

sqladmin/H28-Oct-2021-

storage/H28-Oct-2021-

storagetransfer/v1/H28-Oct-2021-

streetviewpublish/v1/H28-Oct-2021-

sts/H28-Oct-2021-

support/bundler/H28-Oct-2021-

surveys/v2/H28-Oct-2021-

tagmanager/H28-Oct-2021-

tasks/v1/H28-Oct-2021-

testing/v1/H28-Oct-2021-

texttospeech/H28-Oct-2021-

toolresults/H28-Oct-2021-

tpu/H28-Oct-2021-

tracing/v2/H28-Oct-2021-

trafficdirector/v2/H28-Oct-2021-

transcoder/v1beta1/H28-Oct-2021-

translate/H28-Oct-2021-

transport/H28-Oct-2021-

urlshortener/v1/H28-Oct-2021-

vault/v1/H28-Oct-2021-

vectortile/v1/H28-Oct-2021-

verifiedaccess/v1/H28-Oct-2021-

versionhistory/v1/H28-Oct-2021-

videointelligence/H28-Oct-2021-

vision/H28-Oct-2021-

vmmigration/H28-Oct-2021-

webfonts/v1/H28-Oct-2021-

webmasters/v3/H28-Oct-2021-

webrisk/v1/H28-Oct-2021-

websecurityscanner/H28-Oct-2021-

workflowexecutions/H28-Oct-2021-

workflows/H28-Oct-2021-

youtube/v3/H28-Oct-2021-

youtubeanalytics/H28-Oct-2021-

youtubereporting/v1/H28-Oct-2021-

.gitignoreH A D28-Oct-2021183

AUTHORSH A D28-Oct-2021347

CHANGES.mdH A D28-Oct-202145.2 KiB

CODE_OF_CONDUCT.mdH A D28-Oct-20211.9 KiB

CONTRIBUTING.mdH A D28-Oct-20213.8 KiB

CONTRIBUTORSH A D28-Oct-20212.1 KiB

GettingStarted.mdH A D28-Oct-20214.5 KiB

LICENSEH A D28-Oct-20211.4 KiB

NOTESH A D28-Oct-2021430

README.mdH A D28-Oct-20213.1 KiB

RELEASING.mdH A D28-Oct-20211.3 KiB

SECURITY.mdH A D28-Oct-2021329

TODOH A D28-Oct-202164

api-list.jsonH A D28-Oct-2021249 KiB

doc.goH A D28-Oct-20213.1 KiB

go.modH A D28-Oct-2021580

go.sumH A D28-Oct-202155.7 KiB

header_test.goH A D28-Oct-20211.7 KiB

synth.metadataH A D28-Oct-2021212

synth.pyH A D28-Oct-2021703

testing.mdH A D28-Oct-20216.7 KiB

README.md

1# Google APIs Client Library for Go
2
3## Getting Started
4
5```shell
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        "context"
19        "net/http"
20
21        "google.golang.org/api/urlshortener/v1"
22)
23
24func main() {
25        ctx := context.Background()
26        svc, err := urlshortener.NewService(ctx)
27        // ...
28}
29```
30
31* For a longer tutorial, see the [Getting Started guide](https://github.com/google/google-api-go-client/blob/master/GettingStarted.md).
32* For examples, see the [examples directory](https://github.com/google/google-api-go-client/tree/master/examples).
33* For support, use the [golang-nuts](https://groups.google.com/group/golang-nuts) mailing list.
34
35## Status
36
37[![Go Reference](https://pkg.go.dev/badge/google.golang.org/api.svg)](https://pkg.go.dev/google.golang.org/api)
38
39These are auto-generated Go libraries from the Google Discovery Service's JSON description files.
40
41Due to the auto-generated nature of this collection of libraries they may contain breaking changes from one release to
42the next. The generator itself and the code it produces are considered beta for this reason.
43
44These client libraries are officially supported by Google.  However, the libraries are considered complete and are in
45maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
46
47If you're working with Google Cloud Platform APIs such as Datastore or Pub/Sub, please use the
48[Cloud Client Libraries for Go](https://github.com/googleapis/google-cloud-go) instead. These are the new and idiomatic
49Go libraries targeted specifically at Google Cloud Platform Services.
50
51## Authorization
52
53By default, each API will use [Google Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials)
54for authorization credentials used in calling the API endpoints. This will allow your application to run in many
55environments without requiring explicit configuration.
56
57```go
58// import "google.golang.org/api/sheets/v4"
59client, err := sheets.NewService(ctx)
60```
61
62To authorize using a [JSON key file](https://cloud.google.com/iam/docs/managing-service-account-keys), pass
63[`option.WithCredentialsFile`](https://pkg.go.dev/google.golang.org/api/option#WithCredentialsFile) to the `NewService`
64function of the desired package. For example:
65
66```go
67client, err := sheets.NewService(ctx, option.WithCredentialsFile("path/to/keyfile.json"))
68```
69
70You can exert more control over authorization by using the [`golang.org/x/oauth2`](https://pkg.go.dev/golang.org/x/oauth2)
71package to create an `oauth2.TokenSource`. Then pass [`option.WithTokenSource`](https://pkg.go.dev/google.golang.org/api/option#WithTokenSource)
72to the `NewService` function:
73
74```go
75tokenSource := ...
76svc, err := sheets.NewService(ctx, option.WithTokenSource(tokenSource))
77```
78
79## More information
80
81For some more information related to all of the generated clients please read through our
82[package documentation](https://pkg.go.dev/google.golang.org/api#section-documentation).
83