Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
Andrea Spacca 82493d6dcb add GDrive provider support (#118) 6 lat temu
..
abusiveexperiencereport/v1 add GDrive provider support (#118) 6 lat temu
acceleratedmobilepageurl/v1 add GDrive provider support (#118) 6 lat temu
adexchangebuyer add GDrive provider support (#118) 6 lat temu
adexchangebuyer2/v2beta1 add GDrive provider support (#118) 6 lat temu
adexchangeseller add GDrive provider support (#118) 6 lat temu
adexperiencereport/v1 add GDrive provider support (#118) 6 lat temu
admin add GDrive provider support (#118) 6 lat temu
adsense add GDrive provider support (#118) 6 lat temu
adsensehost/v4.1 add GDrive provider support (#118) 6 lat temu
analytics add GDrive provider support (#118) 6 lat temu
analyticsreporting/v4 add GDrive provider support (#118) 6 lat temu
androiddeviceprovisioning/v1 add GDrive provider support (#118) 6 lat temu
androidenterprise/v1 add GDrive provider support (#118) 6 lat temu
androidmanagement/v1 add GDrive provider support (#118) 6 lat temu
androidpublisher add GDrive provider support (#118) 6 lat temu
appengine add GDrive provider support (#118) 6 lat temu
appsactivity/v1 add GDrive provider support (#118) 6 lat temu
appstate/v1 add GDrive provider support (#118) 6 lat temu
bigquery/v2 add GDrive provider support (#118) 6 lat temu
bigquerydatatransfer/v1 add GDrive provider support (#118) 6 lat temu
blogger add GDrive provider support (#118) 6 lat temu
books/v1 add GDrive provider support (#118) 6 lat temu
calendar/v3 add GDrive provider support (#118) 6 lat temu
chat/v1 add GDrive provider support (#118) 6 lat temu
civicinfo/v2 add GDrive provider support (#118) 6 lat temu
classroom/v1 add GDrive provider support (#118) 6 lat temu
cloudbilling/v1 add GDrive provider support (#118) 6 lat temu
cloudbuild/v1 add GDrive provider support (#118) 6 lat temu
clouddebugger/v2 add GDrive provider support (#118) 6 lat temu
clouderrorreporting/v1beta1 add GDrive provider support (#118) 6 lat temu
cloudfunctions add GDrive provider support (#118) 6 lat temu
cloudiot add GDrive provider support (#118) 6 lat temu
cloudkms/v1 add GDrive provider support (#118) 6 lat temu
cloudmonitoring/v2beta2 add GDrive provider support (#118) 6 lat temu
cloudresourcemanager add GDrive provider support (#118) 6 lat temu
cloudshell add GDrive provider support (#118) 6 lat temu
cloudtasks/v2beta2 add GDrive provider support (#118) 6 lat temu
cloudtrace add GDrive provider support (#118) 6 lat temu
clouduseraccounts add GDrive provider support (#118) 6 lat temu
composer/v1beta1 add GDrive provider support (#118) 6 lat temu
compute add GDrive provider support (#118) 6 lat temu
consumersurveys/v2 add GDrive provider support (#118) 6 lat temu
container add GDrive provider support (#118) 6 lat temu
content add GDrive provider support (#118) 6 lat temu
customsearch/v1 add GDrive provider support (#118) 6 lat temu
dataflow/v1b3 add GDrive provider support (#118) 6 lat temu
dataproc add GDrive provider support (#118) 6 lat temu
datastore add GDrive provider support (#118) 6 lat temu
deploymentmanager add GDrive provider support (#118) 6 lat temu
dfareporting add GDrive provider support (#118) 6 lat temu
dialogflow add GDrive provider support (#118) 6 lat temu
digitalassetlinks/v1 add GDrive provider support (#118) 6 lat temu
discovery/v1 add GDrive provider support (#118) 6 lat temu
dlp add GDrive provider support (#118) 6 lat temu
dns add GDrive provider support (#118) 6 lat temu
doubleclickbidmanager/v1 add GDrive provider support (#118) 6 lat temu
doubleclicksearch/v2 add GDrive provider support (#118) 6 lat temu
drive add GDrive provider support (#118) 6 lat temu
examples add GDrive provider support (#118) 6 lat temu
firebasedynamiclinks/v1 add GDrive provider support (#118) 6 lat temu
firebaseremoteconfig/v1 add GDrive provider support (#118) 6 lat temu
firebaserules/v1 add GDrive provider support (#118) 6 lat temu
firestore/v1beta1 add GDrive provider support (#118) 6 lat temu
fitness/v1 add GDrive provider support (#118) 6 lat temu
fusiontables add GDrive provider support (#118) 6 lat temu
games/v1 add GDrive provider support (#118) 6 lat temu
gamesconfiguration/v1configuration add GDrive provider support (#118) 6 lat temu
gamesmanagement/v1management add GDrive provider support (#118) 6 lat temu
genomics add GDrive provider support (#118) 6 lat temu
gensupport add GDrive provider support (#118) 6 lat temu
gmail/v1 add GDrive provider support (#118) 6 lat temu
google-api-go-generator add GDrive provider support (#118) 6 lat temu
googleapi add GDrive provider support (#118) 6 lat temu
groupsmigration/v1 add GDrive provider support (#118) 6 lat temu
groupssettings/v1 add GDrive provider support (#118) 6 lat temu
iam/v1 add GDrive provider support (#118) 6 lat temu
iamcredentials/v1 add GDrive provider support (#118) 6 lat temu
identitytoolkit/v3 add GDrive provider support (#118) 6 lat temu
integration-tests/storage add GDrive provider support (#118) 6 lat temu
internal add GDrive provider support (#118) 6 lat temu
iterator add GDrive provider support (#118) 6 lat temu
jobs/v2 add GDrive provider support (#118) 6 lat temu
kgsearch/v1 add GDrive provider support (#118) 6 lat temu
language add GDrive provider support (#118) 6 lat temu
lib/codereview add GDrive provider support (#118) 6 lat temu
licensing/v1 add GDrive provider support (#118) 6 lat temu
logging add GDrive provider support (#118) 6 lat temu
manufacturers/v1 add GDrive provider support (#118) 6 lat temu
mirror/v1 add GDrive provider support (#118) 6 lat temu
ml/v1 add GDrive provider support (#118) 6 lat temu
monitoring/v3 add GDrive provider support (#118) 6 lat temu
oauth2 add GDrive provider support (#118) 6 lat temu
option add GDrive provider support (#118) 6 lat temu
oslogin add GDrive provider support (#118) 6 lat temu
pagespeedonline add GDrive provider support (#118) 6 lat temu
partners/v2 add GDrive provider support (#118) 6 lat temu
people/v1 add GDrive provider support (#118) 6 lat temu
photoslibrary/v1 add GDrive provider support (#118) 6 lat temu
playcustomapp/v1 add GDrive provider support (#118) 6 lat temu
playmoviespartner/v1 add GDrive provider support (#118) 6 lat temu
plus/v1 add GDrive provider support (#118) 6 lat temu
plusdomains/v1 add GDrive provider support (#118) 6 lat temu
poly/v1 add GDrive provider support (#118) 6 lat temu
prediction add GDrive provider support (#118) 6 lat temu
proximitybeacon/v1beta1 add GDrive provider support (#118) 6 lat temu
pubsub add GDrive provider support (#118) 6 lat temu
qpxexpress/v1 add GDrive provider support (#118) 6 lat temu
redis/v1beta1 add GDrive provider support (#118) 6 lat temu
replicapool add GDrive provider support (#118) 6 lat temu
replicapoolupdater/v1beta1 add GDrive provider support (#118) 6 lat temu
reseller/v1 add GDrive provider support (#118) 6 lat temu
resourceviews add GDrive provider support (#118) 6 lat temu
runtimeconfig add GDrive provider support (#118) 6 lat temu
safebrowsing/v4 add GDrive provider support (#118) 6 lat temu
script/v1 add GDrive provider support (#118) 6 lat temu
searchconsole/v1 add GDrive provider support (#118) 6 lat temu
servicebroker add GDrive provider support (#118) 6 lat temu
serviceconsumermanagement/v1 add GDrive provider support (#118) 6 lat temu
servicecontrol/v1 add GDrive provider support (#118) 6 lat temu
servicemanagement/v1 add GDrive provider support (#118) 6 lat temu
serviceusage add GDrive provider support (#118) 6 lat temu
serviceuser/v1 add GDrive provider support (#118) 6 lat temu
sheets/v4 add GDrive provider support (#118) 6 lat temu
siteverification/v1 add GDrive provider support (#118) 6 lat temu
slides/v1 add GDrive provider support (#118) 6 lat temu
sourcerepo/v1 add GDrive provider support (#118) 6 lat temu
spanner/v1 add GDrive provider support (#118) 6 lat temu
spectrum/v1explorer add GDrive provider support (#118) 6 lat temu
speech add GDrive provider support (#118) 6 lat temu
sqladmin add GDrive provider support (#118) 6 lat temu
storage add GDrive provider support (#118) 6 lat temu
storagetransfer/v1 add GDrive provider support (#118) 6 lat temu
streetviewpublish/v1 add GDrive provider support (#118) 6 lat temu
support/bundler add GDrive provider support (#118) 6 lat temu
surveys/v2 add GDrive provider support (#118) 6 lat temu
tagmanager add GDrive provider support (#118) 6 lat temu
taskqueue add GDrive provider support (#118) 6 lat temu
tasks/v1 add GDrive provider support (#118) 6 lat temu
testing/v1 add GDrive provider support (#118) 6 lat temu
texttospeech/v1beta1 add GDrive provider support (#118) 6 lat temu
toolresults add GDrive provider support (#118) 6 lat temu
tpu add GDrive provider support (#118) 6 lat temu
tracing/v2 add GDrive provider support (#118) 6 lat temu
translate/v2 add GDrive provider support (#118) 6 lat temu
transport add GDrive provider support (#118) 6 lat temu
urlshortener/v1 add GDrive provider support (#118) 6 lat temu
vault/v1 add GDrive provider support (#118) 6 lat temu
videointelligence add GDrive provider support (#118) 6 lat temu
vision add GDrive provider support (#118) 6 lat temu
webfonts/v1 add GDrive provider support (#118) 6 lat temu
webmasters/v3 add GDrive provider support (#118) 6 lat temu
websecurityscanner/v1alpha add GDrive provider support (#118) 6 lat temu
youtube/v3 add GDrive provider support (#118) 6 lat temu
youtubeanalytics add GDrive provider support (#118) 6 lat temu
youtubereporting/v1 add GDrive provider support (#118) 6 lat temu
.gitignore add GDrive provider support (#118) 6 lat temu
.hgtags add GDrive provider support (#118) 6 lat temu
.travis.yml add GDrive provider support (#118) 6 lat temu
AUTHORS add GDrive provider support (#118) 6 lat temu
CONTRIBUTING.md add GDrive provider support (#118) 6 lat temu
CONTRIBUTORS add GDrive provider support (#118) 6 lat temu
GettingStarted.md add GDrive provider support (#118) 6 lat temu
LICENSE add GDrive provider support (#118) 6 lat temu
NOTES add GDrive provider support (#118) 6 lat temu
README.md add GDrive provider support (#118) 6 lat temu
TODO add GDrive provider support (#118) 6 lat temu
api-list.json add GDrive provider support (#118) 6 lat temu
key.json.enc add GDrive provider support (#118) 6 lat temu

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.