25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
Andrea Spacca 82493d6dcb add GDrive provider support (#118) 6 yıl önce
..
abusiveexperiencereport/v1 add GDrive provider support (#118) 6 yıl önce
acceleratedmobilepageurl/v1 add GDrive provider support (#118) 6 yıl önce
adexchangebuyer add GDrive provider support (#118) 6 yıl önce
adexchangebuyer2/v2beta1 add GDrive provider support (#118) 6 yıl önce
adexchangeseller add GDrive provider support (#118) 6 yıl önce
adexperiencereport/v1 add GDrive provider support (#118) 6 yıl önce
admin add GDrive provider support (#118) 6 yıl önce
adsense add GDrive provider support (#118) 6 yıl önce
adsensehost/v4.1 add GDrive provider support (#118) 6 yıl önce
analytics add GDrive provider support (#118) 6 yıl önce
analyticsreporting/v4 add GDrive provider support (#118) 6 yıl önce
androiddeviceprovisioning/v1 add GDrive provider support (#118) 6 yıl önce
androidenterprise/v1 add GDrive provider support (#118) 6 yıl önce
androidmanagement/v1 add GDrive provider support (#118) 6 yıl önce
androidpublisher add GDrive provider support (#118) 6 yıl önce
appengine add GDrive provider support (#118) 6 yıl önce
appsactivity/v1 add GDrive provider support (#118) 6 yıl önce
appstate/v1 add GDrive provider support (#118) 6 yıl önce
bigquery/v2 add GDrive provider support (#118) 6 yıl önce
bigquerydatatransfer/v1 add GDrive provider support (#118) 6 yıl önce
blogger add GDrive provider support (#118) 6 yıl önce
books/v1 add GDrive provider support (#118) 6 yıl önce
calendar/v3 add GDrive provider support (#118) 6 yıl önce
chat/v1 add GDrive provider support (#118) 6 yıl önce
civicinfo/v2 add GDrive provider support (#118) 6 yıl önce
classroom/v1 add GDrive provider support (#118) 6 yıl önce
cloudbilling/v1 add GDrive provider support (#118) 6 yıl önce
cloudbuild/v1 add GDrive provider support (#118) 6 yıl önce
clouddebugger/v2 add GDrive provider support (#118) 6 yıl önce
clouderrorreporting/v1beta1 add GDrive provider support (#118) 6 yıl önce
cloudfunctions add GDrive provider support (#118) 6 yıl önce
cloudiot add GDrive provider support (#118) 6 yıl önce
cloudkms/v1 add GDrive provider support (#118) 6 yıl önce
cloudmonitoring/v2beta2 add GDrive provider support (#118) 6 yıl önce
cloudresourcemanager add GDrive provider support (#118) 6 yıl önce
cloudshell add GDrive provider support (#118) 6 yıl önce
cloudtasks/v2beta2 add GDrive provider support (#118) 6 yıl önce
cloudtrace add GDrive provider support (#118) 6 yıl önce
clouduseraccounts add GDrive provider support (#118) 6 yıl önce
composer/v1beta1 add GDrive provider support (#118) 6 yıl önce
compute add GDrive provider support (#118) 6 yıl önce
consumersurveys/v2 add GDrive provider support (#118) 6 yıl önce
container add GDrive provider support (#118) 6 yıl önce
content add GDrive provider support (#118) 6 yıl önce
customsearch/v1 add GDrive provider support (#118) 6 yıl önce
dataflow/v1b3 add GDrive provider support (#118) 6 yıl önce
dataproc add GDrive provider support (#118) 6 yıl önce
datastore add GDrive provider support (#118) 6 yıl önce
deploymentmanager add GDrive provider support (#118) 6 yıl önce
dfareporting add GDrive provider support (#118) 6 yıl önce
dialogflow add GDrive provider support (#118) 6 yıl önce
digitalassetlinks/v1 add GDrive provider support (#118) 6 yıl önce
discovery/v1 add GDrive provider support (#118) 6 yıl önce
dlp add GDrive provider support (#118) 6 yıl önce
dns add GDrive provider support (#118) 6 yıl önce
doubleclickbidmanager/v1 add GDrive provider support (#118) 6 yıl önce
doubleclicksearch/v2 add GDrive provider support (#118) 6 yıl önce
drive add GDrive provider support (#118) 6 yıl önce
examples add GDrive provider support (#118) 6 yıl önce
firebasedynamiclinks/v1 add GDrive provider support (#118) 6 yıl önce
firebaseremoteconfig/v1 add GDrive provider support (#118) 6 yıl önce
firebaserules/v1 add GDrive provider support (#118) 6 yıl önce
firestore/v1beta1 add GDrive provider support (#118) 6 yıl önce
fitness/v1 add GDrive provider support (#118) 6 yıl önce
fusiontables add GDrive provider support (#118) 6 yıl önce
games/v1 add GDrive provider support (#118) 6 yıl önce
gamesconfiguration/v1configuration add GDrive provider support (#118) 6 yıl önce
gamesmanagement/v1management add GDrive provider support (#118) 6 yıl önce
genomics add GDrive provider support (#118) 6 yıl önce
gensupport add GDrive provider support (#118) 6 yıl önce
gmail/v1 add GDrive provider support (#118) 6 yıl önce
google-api-go-generator add GDrive provider support (#118) 6 yıl önce
googleapi add GDrive provider support (#118) 6 yıl önce
groupsmigration/v1 add GDrive provider support (#118) 6 yıl önce
groupssettings/v1 add GDrive provider support (#118) 6 yıl önce
iam/v1 add GDrive provider support (#118) 6 yıl önce
iamcredentials/v1 add GDrive provider support (#118) 6 yıl önce
identitytoolkit/v3 add GDrive provider support (#118) 6 yıl önce
integration-tests/storage add GDrive provider support (#118) 6 yıl önce
internal add GDrive provider support (#118) 6 yıl önce
iterator add GDrive provider support (#118) 6 yıl önce
jobs/v2 add GDrive provider support (#118) 6 yıl önce
kgsearch/v1 add GDrive provider support (#118) 6 yıl önce
language add GDrive provider support (#118) 6 yıl önce
lib/codereview add GDrive provider support (#118) 6 yıl önce
licensing/v1 add GDrive provider support (#118) 6 yıl önce
logging add GDrive provider support (#118) 6 yıl önce
manufacturers/v1 add GDrive provider support (#118) 6 yıl önce
mirror/v1 add GDrive provider support (#118) 6 yıl önce
ml/v1 add GDrive provider support (#118) 6 yıl önce
monitoring/v3 add GDrive provider support (#118) 6 yıl önce
oauth2 add GDrive provider support (#118) 6 yıl önce
option add GDrive provider support (#118) 6 yıl önce
oslogin add GDrive provider support (#118) 6 yıl önce
pagespeedonline add GDrive provider support (#118) 6 yıl önce
partners/v2 add GDrive provider support (#118) 6 yıl önce
people/v1 add GDrive provider support (#118) 6 yıl önce
photoslibrary/v1 add GDrive provider support (#118) 6 yıl önce
playcustomapp/v1 add GDrive provider support (#118) 6 yıl önce
playmoviespartner/v1 add GDrive provider support (#118) 6 yıl önce
plus/v1 add GDrive provider support (#118) 6 yıl önce
plusdomains/v1 add GDrive provider support (#118) 6 yıl önce
poly/v1 add GDrive provider support (#118) 6 yıl önce
prediction add GDrive provider support (#118) 6 yıl önce
proximitybeacon/v1beta1 add GDrive provider support (#118) 6 yıl önce
pubsub add GDrive provider support (#118) 6 yıl önce
qpxexpress/v1 add GDrive provider support (#118) 6 yıl önce
redis/v1beta1 add GDrive provider support (#118) 6 yıl önce
replicapool add GDrive provider support (#118) 6 yıl önce
replicapoolupdater/v1beta1 add GDrive provider support (#118) 6 yıl önce
reseller/v1 add GDrive provider support (#118) 6 yıl önce
resourceviews add GDrive provider support (#118) 6 yıl önce
runtimeconfig add GDrive provider support (#118) 6 yıl önce
safebrowsing/v4 add GDrive provider support (#118) 6 yıl önce
script/v1 add GDrive provider support (#118) 6 yıl önce
searchconsole/v1 add GDrive provider support (#118) 6 yıl önce
servicebroker add GDrive provider support (#118) 6 yıl önce
serviceconsumermanagement/v1 add GDrive provider support (#118) 6 yıl önce
servicecontrol/v1 add GDrive provider support (#118) 6 yıl önce
servicemanagement/v1 add GDrive provider support (#118) 6 yıl önce
serviceusage add GDrive provider support (#118) 6 yıl önce
serviceuser/v1 add GDrive provider support (#118) 6 yıl önce
sheets/v4 add GDrive provider support (#118) 6 yıl önce
siteverification/v1 add GDrive provider support (#118) 6 yıl önce
slides/v1 add GDrive provider support (#118) 6 yıl önce
sourcerepo/v1 add GDrive provider support (#118) 6 yıl önce
spanner/v1 add GDrive provider support (#118) 6 yıl önce
spectrum/v1explorer add GDrive provider support (#118) 6 yıl önce
speech add GDrive provider support (#118) 6 yıl önce
sqladmin add GDrive provider support (#118) 6 yıl önce
storage add GDrive provider support (#118) 6 yıl önce
storagetransfer/v1 add GDrive provider support (#118) 6 yıl önce
streetviewpublish/v1 add GDrive provider support (#118) 6 yıl önce
support/bundler add GDrive provider support (#118) 6 yıl önce
surveys/v2 add GDrive provider support (#118) 6 yıl önce
tagmanager add GDrive provider support (#118) 6 yıl önce
taskqueue add GDrive provider support (#118) 6 yıl önce
tasks/v1 add GDrive provider support (#118) 6 yıl önce
testing/v1 add GDrive provider support (#118) 6 yıl önce
texttospeech/v1beta1 add GDrive provider support (#118) 6 yıl önce
toolresults add GDrive provider support (#118) 6 yıl önce
tpu add GDrive provider support (#118) 6 yıl önce
tracing/v2 add GDrive provider support (#118) 6 yıl önce
translate/v2 add GDrive provider support (#118) 6 yıl önce
transport add GDrive provider support (#118) 6 yıl önce
urlshortener/v1 add GDrive provider support (#118) 6 yıl önce
vault/v1 add GDrive provider support (#118) 6 yıl önce
videointelligence add GDrive provider support (#118) 6 yıl önce
vision add GDrive provider support (#118) 6 yıl önce
webfonts/v1 add GDrive provider support (#118) 6 yıl önce
webmasters/v3 add GDrive provider support (#118) 6 yıl önce
websecurityscanner/v1alpha add GDrive provider support (#118) 6 yıl önce
youtube/v3 add GDrive provider support (#118) 6 yıl önce
youtubeanalytics add GDrive provider support (#118) 6 yıl önce
youtubereporting/v1 add GDrive provider support (#118) 6 yıl önce
.gitignore add GDrive provider support (#118) 6 yıl önce
.hgtags add GDrive provider support (#118) 6 yıl önce
.travis.yml add GDrive provider support (#118) 6 yıl önce
AUTHORS add GDrive provider support (#118) 6 yıl önce
CONTRIBUTING.md add GDrive provider support (#118) 6 yıl önce
CONTRIBUTORS add GDrive provider support (#118) 6 yıl önce
GettingStarted.md add GDrive provider support (#118) 6 yıl önce
LICENSE add GDrive provider support (#118) 6 yıl önce
NOTES add GDrive provider support (#118) 6 yıl önce
README.md add GDrive provider support (#118) 6 yıl önce
TODO add GDrive provider support (#118) 6 yıl önce
api-list.json add GDrive provider support (#118) 6 yıl önce
key.json.enc add GDrive provider support (#118) 6 yıl önce

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.