No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
Andrea Spacca 82493d6dcb add GDrive provider support (#118) hace 6 años
..
abusiveexperiencereport/v1 add GDrive provider support (#118) hace 6 años
acceleratedmobilepageurl/v1 add GDrive provider support (#118) hace 6 años
adexchangebuyer add GDrive provider support (#118) hace 6 años
adexchangebuyer2/v2beta1 add GDrive provider support (#118) hace 6 años
adexchangeseller add GDrive provider support (#118) hace 6 años
adexperiencereport/v1 add GDrive provider support (#118) hace 6 años
admin add GDrive provider support (#118) hace 6 años
adsense add GDrive provider support (#118) hace 6 años
adsensehost/v4.1 add GDrive provider support (#118) hace 6 años
analytics add GDrive provider support (#118) hace 6 años
analyticsreporting/v4 add GDrive provider support (#118) hace 6 años
androiddeviceprovisioning/v1 add GDrive provider support (#118) hace 6 años
androidenterprise/v1 add GDrive provider support (#118) hace 6 años
androidmanagement/v1 add GDrive provider support (#118) hace 6 años
androidpublisher add GDrive provider support (#118) hace 6 años
appengine add GDrive provider support (#118) hace 6 años
appsactivity/v1 add GDrive provider support (#118) hace 6 años
appstate/v1 add GDrive provider support (#118) hace 6 años
bigquery/v2 add GDrive provider support (#118) hace 6 años
bigquerydatatransfer/v1 add GDrive provider support (#118) hace 6 años
blogger add GDrive provider support (#118) hace 6 años
books/v1 add GDrive provider support (#118) hace 6 años
calendar/v3 add GDrive provider support (#118) hace 6 años
chat/v1 add GDrive provider support (#118) hace 6 años
civicinfo/v2 add GDrive provider support (#118) hace 6 años
classroom/v1 add GDrive provider support (#118) hace 6 años
cloudbilling/v1 add GDrive provider support (#118) hace 6 años
cloudbuild/v1 add GDrive provider support (#118) hace 6 años
clouddebugger/v2 add GDrive provider support (#118) hace 6 años
clouderrorreporting/v1beta1 add GDrive provider support (#118) hace 6 años
cloudfunctions add GDrive provider support (#118) hace 6 años
cloudiot add GDrive provider support (#118) hace 6 años
cloudkms/v1 add GDrive provider support (#118) hace 6 años
cloudmonitoring/v2beta2 add GDrive provider support (#118) hace 6 años
cloudresourcemanager add GDrive provider support (#118) hace 6 años
cloudshell add GDrive provider support (#118) hace 6 años
cloudtasks/v2beta2 add GDrive provider support (#118) hace 6 años
cloudtrace add GDrive provider support (#118) hace 6 años
clouduseraccounts add GDrive provider support (#118) hace 6 años
composer/v1beta1 add GDrive provider support (#118) hace 6 años
compute add GDrive provider support (#118) hace 6 años
consumersurveys/v2 add GDrive provider support (#118) hace 6 años
container add GDrive provider support (#118) hace 6 años
content add GDrive provider support (#118) hace 6 años
customsearch/v1 add GDrive provider support (#118) hace 6 años
dataflow/v1b3 add GDrive provider support (#118) hace 6 años
dataproc add GDrive provider support (#118) hace 6 años
datastore add GDrive provider support (#118) hace 6 años
deploymentmanager add GDrive provider support (#118) hace 6 años
dfareporting add GDrive provider support (#118) hace 6 años
dialogflow add GDrive provider support (#118) hace 6 años
digitalassetlinks/v1 add GDrive provider support (#118) hace 6 años
discovery/v1 add GDrive provider support (#118) hace 6 años
dlp add GDrive provider support (#118) hace 6 años
dns add GDrive provider support (#118) hace 6 años
doubleclickbidmanager/v1 add GDrive provider support (#118) hace 6 años
doubleclicksearch/v2 add GDrive provider support (#118) hace 6 años
drive add GDrive provider support (#118) hace 6 años
examples add GDrive provider support (#118) hace 6 años
firebasedynamiclinks/v1 add GDrive provider support (#118) hace 6 años
firebaseremoteconfig/v1 add GDrive provider support (#118) hace 6 años
firebaserules/v1 add GDrive provider support (#118) hace 6 años
firestore/v1beta1 add GDrive provider support (#118) hace 6 años
fitness/v1 add GDrive provider support (#118) hace 6 años
fusiontables add GDrive provider support (#118) hace 6 años
games/v1 add GDrive provider support (#118) hace 6 años
gamesconfiguration/v1configuration add GDrive provider support (#118) hace 6 años
gamesmanagement/v1management add GDrive provider support (#118) hace 6 años
genomics add GDrive provider support (#118) hace 6 años
gensupport add GDrive provider support (#118) hace 6 años
gmail/v1 add GDrive provider support (#118) hace 6 años
google-api-go-generator add GDrive provider support (#118) hace 6 años
googleapi add GDrive provider support (#118) hace 6 años
groupsmigration/v1 add GDrive provider support (#118) hace 6 años
groupssettings/v1 add GDrive provider support (#118) hace 6 años
iam/v1 add GDrive provider support (#118) hace 6 años
iamcredentials/v1 add GDrive provider support (#118) hace 6 años
identitytoolkit/v3 add GDrive provider support (#118) hace 6 años
integration-tests/storage add GDrive provider support (#118) hace 6 años
internal add GDrive provider support (#118) hace 6 años
iterator add GDrive provider support (#118) hace 6 años
jobs/v2 add GDrive provider support (#118) hace 6 años
kgsearch/v1 add GDrive provider support (#118) hace 6 años
language add GDrive provider support (#118) hace 6 años
lib/codereview add GDrive provider support (#118) hace 6 años
licensing/v1 add GDrive provider support (#118) hace 6 años
logging add GDrive provider support (#118) hace 6 años
manufacturers/v1 add GDrive provider support (#118) hace 6 años
mirror/v1 add GDrive provider support (#118) hace 6 años
ml/v1 add GDrive provider support (#118) hace 6 años
monitoring/v3 add GDrive provider support (#118) hace 6 años
oauth2 add GDrive provider support (#118) hace 6 años
option add GDrive provider support (#118) hace 6 años
oslogin add GDrive provider support (#118) hace 6 años
pagespeedonline add GDrive provider support (#118) hace 6 años
partners/v2 add GDrive provider support (#118) hace 6 años
people/v1 add GDrive provider support (#118) hace 6 años
photoslibrary/v1 add GDrive provider support (#118) hace 6 años
playcustomapp/v1 add GDrive provider support (#118) hace 6 años
playmoviespartner/v1 add GDrive provider support (#118) hace 6 años
plus/v1 add GDrive provider support (#118) hace 6 años
plusdomains/v1 add GDrive provider support (#118) hace 6 años
poly/v1 add GDrive provider support (#118) hace 6 años
prediction add GDrive provider support (#118) hace 6 años
proximitybeacon/v1beta1 add GDrive provider support (#118) hace 6 años
pubsub add GDrive provider support (#118) hace 6 años
qpxexpress/v1 add GDrive provider support (#118) hace 6 años
redis/v1beta1 add GDrive provider support (#118) hace 6 años
replicapool add GDrive provider support (#118) hace 6 años
replicapoolupdater/v1beta1 add GDrive provider support (#118) hace 6 años
reseller/v1 add GDrive provider support (#118) hace 6 años
resourceviews add GDrive provider support (#118) hace 6 años
runtimeconfig add GDrive provider support (#118) hace 6 años
safebrowsing/v4 add GDrive provider support (#118) hace 6 años
script/v1 add GDrive provider support (#118) hace 6 años
searchconsole/v1 add GDrive provider support (#118) hace 6 años
servicebroker add GDrive provider support (#118) hace 6 años
serviceconsumermanagement/v1 add GDrive provider support (#118) hace 6 años
servicecontrol/v1 add GDrive provider support (#118) hace 6 años
servicemanagement/v1 add GDrive provider support (#118) hace 6 años
serviceusage add GDrive provider support (#118) hace 6 años
serviceuser/v1 add GDrive provider support (#118) hace 6 años
sheets/v4 add GDrive provider support (#118) hace 6 años
siteverification/v1 add GDrive provider support (#118) hace 6 años
slides/v1 add GDrive provider support (#118) hace 6 años
sourcerepo/v1 add GDrive provider support (#118) hace 6 años
spanner/v1 add GDrive provider support (#118) hace 6 años
spectrum/v1explorer add GDrive provider support (#118) hace 6 años
speech add GDrive provider support (#118) hace 6 años
sqladmin add GDrive provider support (#118) hace 6 años
storage add GDrive provider support (#118) hace 6 años
storagetransfer/v1 add GDrive provider support (#118) hace 6 años
streetviewpublish/v1 add GDrive provider support (#118) hace 6 años
support/bundler add GDrive provider support (#118) hace 6 años
surveys/v2 add GDrive provider support (#118) hace 6 años
tagmanager add GDrive provider support (#118) hace 6 años
taskqueue add GDrive provider support (#118) hace 6 años
tasks/v1 add GDrive provider support (#118) hace 6 años
testing/v1 add GDrive provider support (#118) hace 6 años
texttospeech/v1beta1 add GDrive provider support (#118) hace 6 años
toolresults add GDrive provider support (#118) hace 6 años
tpu add GDrive provider support (#118) hace 6 años
tracing/v2 add GDrive provider support (#118) hace 6 años
translate/v2 add GDrive provider support (#118) hace 6 años
transport add GDrive provider support (#118) hace 6 años
urlshortener/v1 add GDrive provider support (#118) hace 6 años
vault/v1 add GDrive provider support (#118) hace 6 años
videointelligence add GDrive provider support (#118) hace 6 años
vision add GDrive provider support (#118) hace 6 años
webfonts/v1 add GDrive provider support (#118) hace 6 años
webmasters/v3 add GDrive provider support (#118) hace 6 años
websecurityscanner/v1alpha add GDrive provider support (#118) hace 6 años
youtube/v3 add GDrive provider support (#118) hace 6 años
youtubeanalytics add GDrive provider support (#118) hace 6 años
youtubereporting/v1 add GDrive provider support (#118) hace 6 años
.gitignore add GDrive provider support (#118) hace 6 años
.hgtags add GDrive provider support (#118) hace 6 años
.travis.yml add GDrive provider support (#118) hace 6 años
AUTHORS add GDrive provider support (#118) hace 6 años
CONTRIBUTING.md add GDrive provider support (#118) hace 6 años
CONTRIBUTORS add GDrive provider support (#118) hace 6 años
GettingStarted.md add GDrive provider support (#118) hace 6 años
LICENSE add GDrive provider support (#118) hace 6 años
NOTES add GDrive provider support (#118) hace 6 años
README.md add GDrive provider support (#118) hace 6 años
TODO add GDrive provider support (#118) hace 6 años
api-list.json add GDrive provider support (#118) hace 6 años
key.json.enc add GDrive provider support (#118) hace 6 años

README.md

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.