transfer.sh/vendor/google.golang.org/api
Andrea Spacca 82493d6dcb add GDrive provider support (#118)
* GDrive provider support
* More reliable basedir ownership
* Fix mimetype
2018-06-19 15:30:26 +02:00
..
abusiveexperiencereport/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
acceleratedmobilepageurl/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
adexchangebuyer add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
adexchangebuyer2/v2beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
adexchangeseller add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
adexperiencereport/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
admin add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
adsense add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
adsensehost/v4.1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
analytics add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
analyticsreporting/v4 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
androiddeviceprovisioning/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
androidenterprise/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
androidmanagement/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
androidpublisher add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
appengine add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
appsactivity/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
appstate/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
bigquery/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
bigquerydatatransfer/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
blogger add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
books/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
calendar/v3 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
chat/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
civicinfo/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
classroom/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudbilling/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudbuild/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
clouddebugger/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
clouderrorreporting/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudfunctions add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudiot add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudkms/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudmonitoring/v2beta2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudresourcemanager add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudshell add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudtasks/v2beta2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
cloudtrace add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
clouduseraccounts add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
composer/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
compute add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
consumersurveys/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
container add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
content add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
customsearch/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
dataflow/v1b3 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
dataproc add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
datastore add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
deploymentmanager add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
dfareporting add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
dialogflow add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
digitalassetlinks/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
discovery/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
dlp add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
dns add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
doubleclickbidmanager/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
doubleclicksearch/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
drive add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
examples add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
firebasedynamiclinks/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
firebaseremoteconfig/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
firebaserules/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
firestore/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
fitness/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
fusiontables add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
games/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
gamesconfiguration/v1configuration add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
gamesmanagement/v1management add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
genomics add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
gensupport add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
gmail/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
google-api-go-generator add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
googleapi add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
groupsmigration/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
groupssettings/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
iam/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
iamcredentials/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
identitytoolkit/v3 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
integration-tests/storage add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
internal add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
iterator add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
jobs/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
kgsearch/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
language add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
lib/codereview add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
licensing/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
logging add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
manufacturers/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
mirror/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
ml/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
monitoring/v3 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
oauth2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
option add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
oslogin add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
pagespeedonline add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
partners/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
people/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
photoslibrary/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
playcustomapp/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
playmoviespartner/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
plus/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
plusdomains/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
poly/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
prediction add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
proximitybeacon/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
pubsub add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
qpxexpress/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
redis/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
replicapool add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
replicapoolupdater/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
reseller/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
resourceviews add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
runtimeconfig add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
safebrowsing/v4 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
script/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
searchconsole/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
servicebroker add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
serviceconsumermanagement/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
servicecontrol/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
servicemanagement/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
serviceusage add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
serviceuser/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
sheets/v4 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
siteverification/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
slides/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
sourcerepo/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
spanner/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
spectrum/v1explorer add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
speech add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
sqladmin add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
storage add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
storagetransfer/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
streetviewpublish/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
support/bundler add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
surveys/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
tagmanager add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
taskqueue add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
tasks/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
testing/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
texttospeech/v1beta1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
toolresults add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
tpu add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
tracing/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
translate/v2 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
transport add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
urlshortener/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
vault/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
videointelligence add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
vision add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
webfonts/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
webmasters/v3 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
websecurityscanner/v1alpha add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
youtube/v3 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
youtubeanalytics add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
youtubereporting/v1 add GDrive provider support (#118) 2018-06-19 15:30:26 +02: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
.travis.yml add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
api-list.json add GDrive provider support (#118) 2018-06-19 15:30:26 +02: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
GettingStarted.md add GDrive provider support (#118) 2018-06-19 15:30:26 +02: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 add GDrive provider support (#118) 2018-06-19 15:30:26 +02:00
TODO add GDrive provider support (#118) 2018-06-19 15:30:26 +02: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

Build 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 (
        "golang.org/x/net/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.