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

..03-May-2022-

.github/H03-Dec-2020-

abusiveexperiencereport/v1/H03-Dec-2020-

acceleratedmobilepageurl/v1/H03-Dec-2020-

accessapproval/H03-Dec-2020-

accesscontextmanager/H03-Dec-2020-

adexchangebuyer/H03-Dec-2020-

adexchangebuyer2/v2beta1/H03-Dec-2020-

adexchangeseller/H03-Dec-2020-

adexperiencereport/v1/H03-Dec-2020-

admin/H03-Dec-2020-

admob/H03-Dec-2020-

adsense/H03-Dec-2020-

adsensehost/v4.1/H03-Dec-2020-

alertcenter/v1beta1/H03-Dec-2020-

analytics/H03-Dec-2020-

analyticsadmin/v1alpha/H03-Dec-2020-

analyticsdata/v1alpha/H03-Dec-2020-

analyticsreporting/v4/H03-Dec-2020-

androiddeviceprovisioning/v1/H03-Dec-2020-

androidenterprise/v1/H03-Dec-2020-

androidmanagement/v1/H03-Dec-2020-

androidpublisher/H03-Dec-2020-

apigateway/H03-Dec-2020-

apigee/v1/H03-Dec-2020-

appengine/H03-Dec-2020-

appsactivity/v1/H03-Dec-2020-

appstate/v1/H03-Dec-2020-

area120tables/v1alpha1/H03-Dec-2020-

artifactregistry/H03-Dec-2020-

assuredworkloads/H03-Dec-2020-

bigquery/v2/H03-Dec-2020-

bigqueryconnection/v1beta1/H03-Dec-2020-

bigquerydatatransfer/v1/H03-Dec-2020-

bigqueryreservation/H03-Dec-2020-

bigtableadmin/H03-Dec-2020-

billingbudgets/H03-Dec-2020-

binaryauthorization/H03-Dec-2020-

blogger/H03-Dec-2020-

books/v1/H03-Dec-2020-

calendar/v3/H03-Dec-2020-

chat/v1/H03-Dec-2020-

chromeuxreport/v1/H03-Dec-2020-

civicinfo/v2/H03-Dec-2020-

classroom/v1/H03-Dec-2020-

cloudasset/H03-Dec-2020-

cloudbilling/v1/H03-Dec-2020-

cloudbuild/H03-Dec-2020-

cloudcommerceprocurement/v1/H03-Dec-2020-

clouddebugger/v2/H03-Dec-2020-

clouderrorreporting/v1beta1/H03-Dec-2020-

cloudfunctions/H03-Dec-2020-

cloudidentity/H03-Dec-2020-

cloudiot/v1/H03-Dec-2020-

cloudkms/v1/H03-Dec-2020-

cloudprivatecatalog/v1beta1/H03-Dec-2020-

cloudprivatecatalogproducer/v1beta1/H03-Dec-2020-

cloudprofiler/v2/H03-Dec-2020-

cloudresourcemanager/H03-Dec-2020-

cloudscheduler/H03-Dec-2020-

cloudsearch/v1/H03-Dec-2020-

cloudshell/H03-Dec-2020-

cloudtasks/H03-Dec-2020-

cloudtrace/H03-Dec-2020-

commentanalyzer/v1alpha1/H03-Dec-2020-

composer/H03-Dec-2020-

compute/H03-Dec-2020-

consumersurveys/v2/H03-Dec-2020-

container/H03-Dec-2020-

containeranalysis/H03-Dec-2020-

content/H03-Dec-2020-

customsearch/v1/H03-Dec-2020-

datacatalog/v1beta1/H03-Dec-2020-

dataflow/v1b3/H03-Dec-2020-

datafusion/H03-Dec-2020-

datalabeling/v1beta1/H03-Dec-2020-

datamigration/v1beta1/H03-Dec-2020-

dataproc/H03-Dec-2020-

datastore/H03-Dec-2020-

deploymentmanager/H03-Dec-2020-

dfareporting/H03-Dec-2020-

dialogflow/H03-Dec-2020-

digitalassetlinks/v1/H03-Dec-2020-

discovery/v1/H03-Dec-2020-

displayvideo/H03-Dec-2020-

dlp/v2/H03-Dec-2020-

dns/H03-Dec-2020-

docs/v1/H03-Dec-2020-

documentai/H03-Dec-2020-

domains/H03-Dec-2020-

domainsrdap/v1/H03-Dec-2020-

doubleclickbidmanager/H03-Dec-2020-

doubleclicksearch/v2/H03-Dec-2020-

drive/H03-Dec-2020-

driveactivity/v2/H03-Dec-2020-

eventarc/v1beta1/H03-Dec-2020-

examples/H03-May-2022-

factchecktools/v1alpha1/H03-Dec-2020-

fcm/v1/H03-Dec-2020-

file/H03-Dec-2020-

firebase/v1beta1/H03-Dec-2020-

firebasedatabase/v1beta/H03-Dec-2020-

firebasedynamiclinks/v1/H03-Dec-2020-

firebasehosting/H03-Dec-2020-

firebaseml/H03-Dec-2020-

firebaseremoteconfig/v1/H03-Dec-2020-

firebaserules/v1/H03-Dec-2020-

firestore/H03-Dec-2020-

fitness/v1/H03-Dec-2020-

fusiontables/H03-Dec-2020-

games/v1/H03-Dec-2020-

gamesconfiguration/v1configuration/H03-Dec-2020-

gameservices/H03-Dec-2020-

gamesmanagement/v1management/H03-Dec-2020-

genomics/H03-Dec-2020-

gmail/v1/H03-Dec-2020-

gmailpostmastertools/v1beta1/H03-Dec-2020-

google-api-go-generator/H03-Dec-2020-

googleapi/H03-Dec-2020-

groupsmigration/v1/H03-Dec-2020-

groupssettings/v1/H03-Dec-2020-

healthcare/H03-Dec-2020-

homegraph/v1/H03-Dec-2020-

iam/v1/H03-Dec-2020-

iamcredentials/v1/H03-Dec-2020-

iap/H03-Dec-2020-

identitytoolkit/v3/H03-Dec-2020-

idtoken/H03-Dec-2020-

indexing/v3/H03-Dec-2020-

integration-tests/H03-Dec-2020-

internal/H03-Dec-2020-

iterator/H03-Dec-2020-

jobs/H03-Dec-2020-

kgsearch/v1/H03-Dec-2020-

language/H03-Dec-2020-

lib/codereview/H03-Dec-2020-

libraryagent/v1/H03-Dec-2020-

licensing/v1/H03-Dec-2020-

lifesciences/v2beta/H03-Dec-2020-

localservices/v1/H03-Dec-2020-

logging/H03-Dec-2020-

managedidentities/H03-Dec-2020-

manufacturers/v1/H03-Dec-2020-

memcache/H03-Dec-2020-

mirror/v1/H03-Dec-2020-

ml/v1/H03-Dec-2020-

monitoring/H03-Dec-2020-

networkmanagement/H03-Dec-2020-

notebooks/v1/H03-Dec-2020-

oauth2/H03-Dec-2020-

option/H03-Dec-2020-

osconfig/H03-Dec-2020-

oslogin/H03-Dec-2020-

pagespeedonline/H03-Dec-2020-

partners/v2/H03-Dec-2020-

people/v1/H03-Dec-2020-

playablelocations/v3/H03-Dec-2020-

playcustomapp/v1/H03-Dec-2020-

playmoviespartner/v1/H03-Dec-2020-

plus/v1/H03-Dec-2020-

plusdomains/v1/H03-Dec-2020-

policytroubleshooter/H03-Dec-2020-

poly/v1/H03-Dec-2020-

privateca/v1beta1/H03-Dec-2020-

prod_tt_sasportal/v1alpha1/H03-Dec-2020-

proximitybeacon/v1beta1/H03-Dec-2020-

pubsub/H03-Dec-2020-

pubsublite/v1/H03-Dec-2020-

qpxexpress/v1/H03-Dec-2020-

realtimebidding/v1/H03-Dec-2020-

recommendationengine/v1beta1/H03-Dec-2020-

recommender/H03-Dec-2020-

redis/H03-Dec-2020-

remotebuildexecution/H03-Dec-2020-

replicapool/v1beta1/H03-Dec-2020-

replicapoolupdater/v1beta1/H03-Dec-2020-

reseller/v1/H03-Dec-2020-

run/H03-Dec-2020-

runtimeconfig/H03-Dec-2020-

safebrowsing/v4/H03-Dec-2020-

sasportal/v1alpha1/H03-Dec-2020-

script/v1/H03-Dec-2020-

searchconsole/v1/H03-Dec-2020-

secretmanager/H03-Dec-2020-

securitycenter/H03-Dec-2020-

servicebroker/H03-Dec-2020-

serviceconsumermanagement/H03-Dec-2020-

servicecontrol/H03-Dec-2020-

servicedirectory/v1beta1/H03-Dec-2020-

servicemanagement/v1/H03-Dec-2020-

servicenetworking/H03-Dec-2020-

serviceusage/H03-Dec-2020-

serviceuser/v1/H03-Dec-2020-

sheets/v4/H03-Dec-2020-

siteverification/v1/H03-Dec-2020-

slides/v1/H03-Dec-2020-

smartdevicemanagement/v1/H03-Dec-2020-

sourcerepo/v1/H03-Dec-2020-

spanner/v1/H03-Dec-2020-

spectrum/v1explorer/H03-Dec-2020-

speech/H03-Dec-2020-

sql/v1beta4/H03-Dec-2020-

sqladmin/v1beta4/H03-Dec-2020-

storage/H03-Dec-2020-

storagetransfer/v1/H03-Dec-2020-

streetviewpublish/v1/H03-Dec-2020-

sts/H03-Dec-2020-

support/bundler/H03-Dec-2020-

surveys/v2/H03-Dec-2020-

tagmanager/H03-Dec-2020-

tasks/v1/H03-Dec-2020-

testing/v1/H03-Dec-2020-

texttospeech/H03-Dec-2020-

toolresults/H03-Dec-2020-

tpu/H03-Dec-2020-

tracing/v2/H03-Dec-2020-

trafficdirector/v2/H03-Dec-2020-

transcoder/v1beta1/H03-Dec-2020-

translate/H03-Dec-2020-

transport/H03-Dec-2020-

urlshortener/v1/H03-Dec-2020-

vault/v1/H03-Dec-2020-

vectortile/v1/H03-Dec-2020-

verifiedaccess/v1/H03-Dec-2020-

videointelligence/H03-Dec-2020-

vision/H03-Dec-2020-

webfonts/v1/H03-Dec-2020-

webmasters/v3/H03-Dec-2020-

websecurityscanner/H03-Dec-2020-

workflowexecutions/v1beta/H03-Dec-2020-

workflows/v1beta/H03-Dec-2020-

youtube/v3/H03-Dec-2020-

youtubeanalytics/H03-Dec-2020-

youtubereporting/v1/H03-Dec-2020-

.gitignoreH A D03-Dec-2020183

AUTHORSH A D03-Dec-2020347

CHANGES.mdH A D03-Dec-202014.1 KiB

CONTRIBUTING.mdH A D03-Dec-20203.8 KiB

CONTRIBUTORSH A D03-Dec-20202.1 KiB

GettingStarted.mdH A D03-Dec-20204.5 KiB

LICENSEH A D03-Dec-20201.4 KiB

NOTESH A D03-Dec-2020430

README.mdH A D03-Dec-20203.5 KiB

RELEASING.mdH A D03-Dec-20201.3 KiB

TODOH A D03-Dec-202064

api-list.jsonH A D03-Dec-2020208.2 KiB

doc.goH A D03-Dec-20202.2 KiB

go.modH A D03-Dec-2020582

go.sumH A D03-Dec-202044.6 KiB

license_test.goH A D03-Dec-20201.7 KiB

synth.metadataH A D03-Dec-2020212

synth.pyH A D03-Dec-2020703

tools.goH A D03-Dec-2020263

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