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

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.