transfer.sh/vendor/google.golang.org/api
2019-03-17 20:19:56 +01:00
..
abusiveexperiencereport/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
acceleratedmobilepageurl/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
accesscontextmanager Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
adexchangebuyer Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
adexchangebuyer2/v2beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
adexchangeseller Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
adexperiencereport/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
admin Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
adsense Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
adsensehost/v4.1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
alertcenter/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
analytics Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
analyticsreporting/v4 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
androiddeviceprovisioning/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
androidenterprise/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
androidmanagement/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
androidpublisher Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
appengine Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
appsactivity/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
appstate/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
bigquery/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
bigquerydatatransfer/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
bigtableadmin Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
binaryauthorization/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
blogger Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
books/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
calendar/v3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
chat/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
civicinfo/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
classroom/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudasset/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudbilling/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudbuild Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
clouddebugger/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
clouderrorreporting/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudfunctions Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudidentity Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudiot/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudkms/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudprivatecatalog/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudprivatecatalogproducer/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudprofiler/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudresourcemanager Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudscheduler/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudsearch/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudshell Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudtasks Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
cloudtrace Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
composer Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
compute Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
consumersurveys/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
container Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
containeranalysis Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
content Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
customsearch/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
dataflow/v1b3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
dataproc Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
datastore Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
deploymentmanager Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
dfareporting Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
dialogflow Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
digitalassetlinks/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
discovery/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
dlp/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
dns Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
docs/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
doubleclickbidmanager/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
doubleclicksearch/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
drive Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
driveactivity/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
examples Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
file Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
firebasedynamiclinks/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
firebasehosting/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
firebaseremoteconfig/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
firebaserules/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
firestore Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
fitness/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
fusiontables Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
games/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
gamesconfiguration/v1configuration Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
gamesmanagement/v1management Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
genomics Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
gensupport Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
gmail/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
google-api-go-generator Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
googleapi Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
groupsmigration/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
groupssettings/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
healthcare Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
iam/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
iamcredentials/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
iap Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
identitytoolkit/v3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
indexing/v3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
integration-tests/storage Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
internal Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
iterator Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
jobs Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
kgsearch/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
language Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
lib/codereview add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
libraryagent/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
licensing/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
logging Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
manufacturers/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
mirror/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
ml/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
monitoring Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
oauth2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
option Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
oslogin Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
pagespeedonline Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
partners/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
people/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
photoslibrary/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
playcustomapp/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
playmoviespartner/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
plus/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
plusdomains/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
poly/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
prediction Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
proximitybeacon/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
pubsub Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
qpxexpress/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
redis Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
remotebuildexecution Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
replicapool/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
replicapoolupdater/v1beta1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
reseller/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
runtimeconfig Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
safebrowsing/v4 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
script/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
searchconsole/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
servicebroker Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
serviceconsumermanagement/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
servicecontrol/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
servicemanagement/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
servicenetworking Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
serviceusage Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
serviceuser/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
sheets/v4 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
siteverification/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
slides/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
sourcerepo/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
spanner/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
spectrum/v1explorer Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
speech Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
sqladmin/v1beta4 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
storage Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
storagetransfer/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
streetviewpublish/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
support/bundler Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
surveys/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
tagmanager Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
tasks/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
testing/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
texttospeech Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
toolresults/v1beta3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
tpu Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
tracing/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
translate/v2 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
transport Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
urlshortener/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
vault/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
videointelligence Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
vision Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
webfonts/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
webmasters/v3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
websecurityscanner/v1alpha Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
youtube/v3 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
youtubeanalytics Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
youtubereporting/v1 Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
.gitignore add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
.hgtags add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
api-list.json Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
AUTHORS add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
CONTRIBUTING.md add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
CONTRIBUTORS add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
doc.go Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
GettingStarted.md Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
go.mod Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
go.sum Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
key.json.enc add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
LICENSE add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
NOTES add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
README.md Bump google.golang.org/api 2019-03-17 20:19:56 +01:00
TODO add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
tools.go Bump google.golang.org/api 2019-03-17 20:19:56 +01:00

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.