25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Andrea Spacca 82493d6dcb add GDrive provider support (#118) 6 년 전
..
abusiveexperiencereport/v1 add GDrive provider support (#118) 6 년 전
acceleratedmobilepageurl/v1 add GDrive provider support (#118) 6 년 전
adexchangebuyer add GDrive provider support (#118) 6 년 전
adexchangebuyer2/v2beta1 add GDrive provider support (#118) 6 년 전
adexchangeseller add GDrive provider support (#118) 6 년 전
adexperiencereport/v1 add GDrive provider support (#118) 6 년 전
admin add GDrive provider support (#118) 6 년 전
adsense add GDrive provider support (#118) 6 년 전
adsensehost/v4.1 add GDrive provider support (#118) 6 년 전
analytics add GDrive provider support (#118) 6 년 전
analyticsreporting/v4 add GDrive provider support (#118) 6 년 전
androiddeviceprovisioning/v1 add GDrive provider support (#118) 6 년 전
androidenterprise/v1 add GDrive provider support (#118) 6 년 전
androidmanagement/v1 add GDrive provider support (#118) 6 년 전
androidpublisher add GDrive provider support (#118) 6 년 전
appengine add GDrive provider support (#118) 6 년 전
appsactivity/v1 add GDrive provider support (#118) 6 년 전
appstate/v1 add GDrive provider support (#118) 6 년 전
bigquery/v2 add GDrive provider support (#118) 6 년 전
bigquerydatatransfer/v1 add GDrive provider support (#118) 6 년 전
blogger add GDrive provider support (#118) 6 년 전
books/v1 add GDrive provider support (#118) 6 년 전
calendar/v3 add GDrive provider support (#118) 6 년 전
chat/v1 add GDrive provider support (#118) 6 년 전
civicinfo/v2 add GDrive provider support (#118) 6 년 전
classroom/v1 add GDrive provider support (#118) 6 년 전
cloudbilling/v1 add GDrive provider support (#118) 6 년 전
cloudbuild/v1 add GDrive provider support (#118) 6 년 전
clouddebugger/v2 add GDrive provider support (#118) 6 년 전
clouderrorreporting/v1beta1 add GDrive provider support (#118) 6 년 전
cloudfunctions add GDrive provider support (#118) 6 년 전
cloudiot add GDrive provider support (#118) 6 년 전
cloudkms/v1 add GDrive provider support (#118) 6 년 전
cloudmonitoring/v2beta2 add GDrive provider support (#118) 6 년 전
cloudresourcemanager add GDrive provider support (#118) 6 년 전
cloudshell add GDrive provider support (#118) 6 년 전
cloudtasks/v2beta2 add GDrive provider support (#118) 6 년 전
cloudtrace add GDrive provider support (#118) 6 년 전
clouduseraccounts add GDrive provider support (#118) 6 년 전
composer/v1beta1 add GDrive provider support (#118) 6 년 전
compute add GDrive provider support (#118) 6 년 전
consumersurveys/v2 add GDrive provider support (#118) 6 년 전
container add GDrive provider support (#118) 6 년 전
content add GDrive provider support (#118) 6 년 전
customsearch/v1 add GDrive provider support (#118) 6 년 전
dataflow/v1b3 add GDrive provider support (#118) 6 년 전
dataproc add GDrive provider support (#118) 6 년 전
datastore add GDrive provider support (#118) 6 년 전
deploymentmanager add GDrive provider support (#118) 6 년 전
dfareporting add GDrive provider support (#118) 6 년 전
dialogflow add GDrive provider support (#118) 6 년 전
digitalassetlinks/v1 add GDrive provider support (#118) 6 년 전
discovery/v1 add GDrive provider support (#118) 6 년 전
dlp add GDrive provider support (#118) 6 년 전
dns add GDrive provider support (#118) 6 년 전
doubleclickbidmanager/v1 add GDrive provider support (#118) 6 년 전
doubleclicksearch/v2 add GDrive provider support (#118) 6 년 전
drive add GDrive provider support (#118) 6 년 전
examples add GDrive provider support (#118) 6 년 전
firebasedynamiclinks/v1 add GDrive provider support (#118) 6 년 전
firebaseremoteconfig/v1 add GDrive provider support (#118) 6 년 전
firebaserules/v1 add GDrive provider support (#118) 6 년 전
firestore/v1beta1 add GDrive provider support (#118) 6 년 전
fitness/v1 add GDrive provider support (#118) 6 년 전
fusiontables add GDrive provider support (#118) 6 년 전
games/v1 add GDrive provider support (#118) 6 년 전
gamesconfiguration/v1configuration add GDrive provider support (#118) 6 년 전
gamesmanagement/v1management add GDrive provider support (#118) 6 년 전
genomics add GDrive provider support (#118) 6 년 전
gensupport add GDrive provider support (#118) 6 년 전
gmail/v1 add GDrive provider support (#118) 6 년 전
google-api-go-generator add GDrive provider support (#118) 6 년 전
googleapi add GDrive provider support (#118) 6 년 전
groupsmigration/v1 add GDrive provider support (#118) 6 년 전
groupssettings/v1 add GDrive provider support (#118) 6 년 전
iam/v1 add GDrive provider support (#118) 6 년 전
iamcredentials/v1 add GDrive provider support (#118) 6 년 전
identitytoolkit/v3 add GDrive provider support (#118) 6 년 전
integration-tests/storage add GDrive provider support (#118) 6 년 전
internal add GDrive provider support (#118) 6 년 전
iterator add GDrive provider support (#118) 6 년 전
jobs/v2 add GDrive provider support (#118) 6 년 전
kgsearch/v1 add GDrive provider support (#118) 6 년 전
language add GDrive provider support (#118) 6 년 전
lib/codereview add GDrive provider support (#118) 6 년 전
licensing/v1 add GDrive provider support (#118) 6 년 전
logging add GDrive provider support (#118) 6 년 전
manufacturers/v1 add GDrive provider support (#118) 6 년 전
mirror/v1 add GDrive provider support (#118) 6 년 전
ml/v1 add GDrive provider support (#118) 6 년 전
monitoring/v3 add GDrive provider support (#118) 6 년 전
oauth2 add GDrive provider support (#118) 6 년 전
option add GDrive provider support (#118) 6 년 전
oslogin add GDrive provider support (#118) 6 년 전
pagespeedonline add GDrive provider support (#118) 6 년 전
partners/v2 add GDrive provider support (#118) 6 년 전
people/v1 add GDrive provider support (#118) 6 년 전
photoslibrary/v1 add GDrive provider support (#118) 6 년 전
playcustomapp/v1 add GDrive provider support (#118) 6 년 전
playmoviespartner/v1 add GDrive provider support (#118) 6 년 전
plus/v1 add GDrive provider support (#118) 6 년 전
plusdomains/v1 add GDrive provider support (#118) 6 년 전
poly/v1 add GDrive provider support (#118) 6 년 전
prediction add GDrive provider support (#118) 6 년 전
proximitybeacon/v1beta1 add GDrive provider support (#118) 6 년 전
pubsub add GDrive provider support (#118) 6 년 전
qpxexpress/v1 add GDrive provider support (#118) 6 년 전
redis/v1beta1 add GDrive provider support (#118) 6 년 전
replicapool add GDrive provider support (#118) 6 년 전
replicapoolupdater/v1beta1 add GDrive provider support (#118) 6 년 전
reseller/v1 add GDrive provider support (#118) 6 년 전
resourceviews add GDrive provider support (#118) 6 년 전
runtimeconfig add GDrive provider support (#118) 6 년 전
safebrowsing/v4 add GDrive provider support (#118) 6 년 전
script/v1 add GDrive provider support (#118) 6 년 전
searchconsole/v1 add GDrive provider support (#118) 6 년 전
servicebroker add GDrive provider support (#118) 6 년 전
serviceconsumermanagement/v1 add GDrive provider support (#118) 6 년 전
servicecontrol/v1 add GDrive provider support (#118) 6 년 전
servicemanagement/v1 add GDrive provider support (#118) 6 년 전
serviceusage add GDrive provider support (#118) 6 년 전
serviceuser/v1 add GDrive provider support (#118) 6 년 전
sheets/v4 add GDrive provider support (#118) 6 년 전
siteverification/v1 add GDrive provider support (#118) 6 년 전
slides/v1 add GDrive provider support (#118) 6 년 전
sourcerepo/v1 add GDrive provider support (#118) 6 년 전
spanner/v1 add GDrive provider support (#118) 6 년 전
spectrum/v1explorer add GDrive provider support (#118) 6 년 전
speech add GDrive provider support (#118) 6 년 전
sqladmin add GDrive provider support (#118) 6 년 전
storage add GDrive provider support (#118) 6 년 전
storagetransfer/v1 add GDrive provider support (#118) 6 년 전
streetviewpublish/v1 add GDrive provider support (#118) 6 년 전
support/bundler add GDrive provider support (#118) 6 년 전
surveys/v2 add GDrive provider support (#118) 6 년 전
tagmanager add GDrive provider support (#118) 6 년 전
taskqueue add GDrive provider support (#118) 6 년 전
tasks/v1 add GDrive provider support (#118) 6 년 전
testing/v1 add GDrive provider support (#118) 6 년 전
texttospeech/v1beta1 add GDrive provider support (#118) 6 년 전
toolresults add GDrive provider support (#118) 6 년 전
tpu add GDrive provider support (#118) 6 년 전
tracing/v2 add GDrive provider support (#118) 6 년 전
translate/v2 add GDrive provider support (#118) 6 년 전
transport add GDrive provider support (#118) 6 년 전
urlshortener/v1 add GDrive provider support (#118) 6 년 전
vault/v1 add GDrive provider support (#118) 6 년 전
videointelligence add GDrive provider support (#118) 6 년 전
vision add GDrive provider support (#118) 6 년 전
webfonts/v1 add GDrive provider support (#118) 6 년 전
webmasters/v3 add GDrive provider support (#118) 6 년 전
websecurityscanner/v1alpha add GDrive provider support (#118) 6 년 전
youtube/v3 add GDrive provider support (#118) 6 년 전
youtubeanalytics add GDrive provider support (#118) 6 년 전
youtubereporting/v1 add GDrive provider support (#118) 6 년 전
.gitignore add GDrive provider support (#118) 6 년 전
.hgtags add GDrive provider support (#118) 6 년 전
.travis.yml add GDrive provider support (#118) 6 년 전
AUTHORS add GDrive provider support (#118) 6 년 전
CONTRIBUTING.md add GDrive provider support (#118) 6 년 전
CONTRIBUTORS add GDrive provider support (#118) 6 년 전
GettingStarted.md add GDrive provider support (#118) 6 년 전
LICENSE add GDrive provider support (#118) 6 년 전
NOTES add GDrive provider support (#118) 6 년 전
README.md add GDrive provider support (#118) 6 년 전
TODO add GDrive provider support (#118) 6 년 전
api-list.json add GDrive provider support (#118) 6 년 전
key.json.enc add GDrive provider support (#118) 6 년 전

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.