You can not select more than 25 topics 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 vuotta sitten
..
abusiveexperiencereport/v1 add GDrive provider support (#118) 6 vuotta sitten
acceleratedmobilepageurl/v1 add GDrive provider support (#118) 6 vuotta sitten
adexchangebuyer add GDrive provider support (#118) 6 vuotta sitten
adexchangebuyer2/v2beta1 add GDrive provider support (#118) 6 vuotta sitten
adexchangeseller add GDrive provider support (#118) 6 vuotta sitten
adexperiencereport/v1 add GDrive provider support (#118) 6 vuotta sitten
admin add GDrive provider support (#118) 6 vuotta sitten
adsense add GDrive provider support (#118) 6 vuotta sitten
adsensehost/v4.1 add GDrive provider support (#118) 6 vuotta sitten
analytics add GDrive provider support (#118) 6 vuotta sitten
analyticsreporting/v4 add GDrive provider support (#118) 6 vuotta sitten
androiddeviceprovisioning/v1 add GDrive provider support (#118) 6 vuotta sitten
androidenterprise/v1 add GDrive provider support (#118) 6 vuotta sitten
androidmanagement/v1 add GDrive provider support (#118) 6 vuotta sitten
androidpublisher add GDrive provider support (#118) 6 vuotta sitten
appengine add GDrive provider support (#118) 6 vuotta sitten
appsactivity/v1 add GDrive provider support (#118) 6 vuotta sitten
appstate/v1 add GDrive provider support (#118) 6 vuotta sitten
bigquery/v2 add GDrive provider support (#118) 6 vuotta sitten
bigquerydatatransfer/v1 add GDrive provider support (#118) 6 vuotta sitten
blogger add GDrive provider support (#118) 6 vuotta sitten
books/v1 add GDrive provider support (#118) 6 vuotta sitten
calendar/v3 add GDrive provider support (#118) 6 vuotta sitten
chat/v1 add GDrive provider support (#118) 6 vuotta sitten
civicinfo/v2 add GDrive provider support (#118) 6 vuotta sitten
classroom/v1 add GDrive provider support (#118) 6 vuotta sitten
cloudbilling/v1 add GDrive provider support (#118) 6 vuotta sitten
cloudbuild/v1 add GDrive provider support (#118) 6 vuotta sitten
clouddebugger/v2 add GDrive provider support (#118) 6 vuotta sitten
clouderrorreporting/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
cloudfunctions add GDrive provider support (#118) 6 vuotta sitten
cloudiot add GDrive provider support (#118) 6 vuotta sitten
cloudkms/v1 add GDrive provider support (#118) 6 vuotta sitten
cloudmonitoring/v2beta2 add GDrive provider support (#118) 6 vuotta sitten
cloudresourcemanager add GDrive provider support (#118) 6 vuotta sitten
cloudshell add GDrive provider support (#118) 6 vuotta sitten
cloudtasks/v2beta2 add GDrive provider support (#118) 6 vuotta sitten
cloudtrace add GDrive provider support (#118) 6 vuotta sitten
clouduseraccounts add GDrive provider support (#118) 6 vuotta sitten
composer/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
compute add GDrive provider support (#118) 6 vuotta sitten
consumersurveys/v2 add GDrive provider support (#118) 6 vuotta sitten
container add GDrive provider support (#118) 6 vuotta sitten
content add GDrive provider support (#118) 6 vuotta sitten
customsearch/v1 add GDrive provider support (#118) 6 vuotta sitten
dataflow/v1b3 add GDrive provider support (#118) 6 vuotta sitten
dataproc add GDrive provider support (#118) 6 vuotta sitten
datastore add GDrive provider support (#118) 6 vuotta sitten
deploymentmanager add GDrive provider support (#118) 6 vuotta sitten
dfareporting add GDrive provider support (#118) 6 vuotta sitten
dialogflow add GDrive provider support (#118) 6 vuotta sitten
digitalassetlinks/v1 add GDrive provider support (#118) 6 vuotta sitten
discovery/v1 add GDrive provider support (#118) 6 vuotta sitten
dlp add GDrive provider support (#118) 6 vuotta sitten
dns add GDrive provider support (#118) 6 vuotta sitten
doubleclickbidmanager/v1 add GDrive provider support (#118) 6 vuotta sitten
doubleclicksearch/v2 add GDrive provider support (#118) 6 vuotta sitten
drive add GDrive provider support (#118) 6 vuotta sitten
examples add GDrive provider support (#118) 6 vuotta sitten
firebasedynamiclinks/v1 add GDrive provider support (#118) 6 vuotta sitten
firebaseremoteconfig/v1 add GDrive provider support (#118) 6 vuotta sitten
firebaserules/v1 add GDrive provider support (#118) 6 vuotta sitten
firestore/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
fitness/v1 add GDrive provider support (#118) 6 vuotta sitten
fusiontables add GDrive provider support (#118) 6 vuotta sitten
games/v1 add GDrive provider support (#118) 6 vuotta sitten
gamesconfiguration/v1configuration add GDrive provider support (#118) 6 vuotta sitten
gamesmanagement/v1management add GDrive provider support (#118) 6 vuotta sitten
genomics add GDrive provider support (#118) 6 vuotta sitten
gensupport add GDrive provider support (#118) 6 vuotta sitten
gmail/v1 add GDrive provider support (#118) 6 vuotta sitten
google-api-go-generator add GDrive provider support (#118) 6 vuotta sitten
googleapi add GDrive provider support (#118) 6 vuotta sitten
groupsmigration/v1 add GDrive provider support (#118) 6 vuotta sitten
groupssettings/v1 add GDrive provider support (#118) 6 vuotta sitten
iam/v1 add GDrive provider support (#118) 6 vuotta sitten
iamcredentials/v1 add GDrive provider support (#118) 6 vuotta sitten
identitytoolkit/v3 add GDrive provider support (#118) 6 vuotta sitten
integration-tests/storage add GDrive provider support (#118) 6 vuotta sitten
internal add GDrive provider support (#118) 6 vuotta sitten
iterator add GDrive provider support (#118) 6 vuotta sitten
jobs/v2 add GDrive provider support (#118) 6 vuotta sitten
kgsearch/v1 add GDrive provider support (#118) 6 vuotta sitten
language add GDrive provider support (#118) 6 vuotta sitten
lib/codereview add GDrive provider support (#118) 6 vuotta sitten
licensing/v1 add GDrive provider support (#118) 6 vuotta sitten
logging add GDrive provider support (#118) 6 vuotta sitten
manufacturers/v1 add GDrive provider support (#118) 6 vuotta sitten
mirror/v1 add GDrive provider support (#118) 6 vuotta sitten
ml/v1 add GDrive provider support (#118) 6 vuotta sitten
monitoring/v3 add GDrive provider support (#118) 6 vuotta sitten
oauth2 add GDrive provider support (#118) 6 vuotta sitten
option add GDrive provider support (#118) 6 vuotta sitten
oslogin add GDrive provider support (#118) 6 vuotta sitten
pagespeedonline add GDrive provider support (#118) 6 vuotta sitten
partners/v2 add GDrive provider support (#118) 6 vuotta sitten
people/v1 add GDrive provider support (#118) 6 vuotta sitten
photoslibrary/v1 add GDrive provider support (#118) 6 vuotta sitten
playcustomapp/v1 add GDrive provider support (#118) 6 vuotta sitten
playmoviespartner/v1 add GDrive provider support (#118) 6 vuotta sitten
plus/v1 add GDrive provider support (#118) 6 vuotta sitten
plusdomains/v1 add GDrive provider support (#118) 6 vuotta sitten
poly/v1 add GDrive provider support (#118) 6 vuotta sitten
prediction add GDrive provider support (#118) 6 vuotta sitten
proximitybeacon/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
pubsub add GDrive provider support (#118) 6 vuotta sitten
qpxexpress/v1 add GDrive provider support (#118) 6 vuotta sitten
redis/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
replicapool add GDrive provider support (#118) 6 vuotta sitten
replicapoolupdater/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
reseller/v1 add GDrive provider support (#118) 6 vuotta sitten
resourceviews add GDrive provider support (#118) 6 vuotta sitten
runtimeconfig add GDrive provider support (#118) 6 vuotta sitten
safebrowsing/v4 add GDrive provider support (#118) 6 vuotta sitten
script/v1 add GDrive provider support (#118) 6 vuotta sitten
searchconsole/v1 add GDrive provider support (#118) 6 vuotta sitten
servicebroker add GDrive provider support (#118) 6 vuotta sitten
serviceconsumermanagement/v1 add GDrive provider support (#118) 6 vuotta sitten
servicecontrol/v1 add GDrive provider support (#118) 6 vuotta sitten
servicemanagement/v1 add GDrive provider support (#118) 6 vuotta sitten
serviceusage add GDrive provider support (#118) 6 vuotta sitten
serviceuser/v1 add GDrive provider support (#118) 6 vuotta sitten
sheets/v4 add GDrive provider support (#118) 6 vuotta sitten
siteverification/v1 add GDrive provider support (#118) 6 vuotta sitten
slides/v1 add GDrive provider support (#118) 6 vuotta sitten
sourcerepo/v1 add GDrive provider support (#118) 6 vuotta sitten
spanner/v1 add GDrive provider support (#118) 6 vuotta sitten
spectrum/v1explorer add GDrive provider support (#118) 6 vuotta sitten
speech add GDrive provider support (#118) 6 vuotta sitten
sqladmin add GDrive provider support (#118) 6 vuotta sitten
storage add GDrive provider support (#118) 6 vuotta sitten
storagetransfer/v1 add GDrive provider support (#118) 6 vuotta sitten
streetviewpublish/v1 add GDrive provider support (#118) 6 vuotta sitten
support/bundler add GDrive provider support (#118) 6 vuotta sitten
surveys/v2 add GDrive provider support (#118) 6 vuotta sitten
tagmanager add GDrive provider support (#118) 6 vuotta sitten
taskqueue add GDrive provider support (#118) 6 vuotta sitten
tasks/v1 add GDrive provider support (#118) 6 vuotta sitten
testing/v1 add GDrive provider support (#118) 6 vuotta sitten
texttospeech/v1beta1 add GDrive provider support (#118) 6 vuotta sitten
toolresults add GDrive provider support (#118) 6 vuotta sitten
tpu add GDrive provider support (#118) 6 vuotta sitten
tracing/v2 add GDrive provider support (#118) 6 vuotta sitten
translate/v2 add GDrive provider support (#118) 6 vuotta sitten
transport add GDrive provider support (#118) 6 vuotta sitten
urlshortener/v1 add GDrive provider support (#118) 6 vuotta sitten
vault/v1 add GDrive provider support (#118) 6 vuotta sitten
videointelligence add GDrive provider support (#118) 6 vuotta sitten
vision add GDrive provider support (#118) 6 vuotta sitten
webfonts/v1 add GDrive provider support (#118) 6 vuotta sitten
webmasters/v3 add GDrive provider support (#118) 6 vuotta sitten
websecurityscanner/v1alpha add GDrive provider support (#118) 6 vuotta sitten
youtube/v3 add GDrive provider support (#118) 6 vuotta sitten
youtubeanalytics add GDrive provider support (#118) 6 vuotta sitten
youtubereporting/v1 add GDrive provider support (#118) 6 vuotta sitten
.gitignore add GDrive provider support (#118) 6 vuotta sitten
.hgtags add GDrive provider support (#118) 6 vuotta sitten
.travis.yml add GDrive provider support (#118) 6 vuotta sitten
AUTHORS add GDrive provider support (#118) 6 vuotta sitten
CONTRIBUTING.md add GDrive provider support (#118) 6 vuotta sitten
CONTRIBUTORS add GDrive provider support (#118) 6 vuotta sitten
GettingStarted.md add GDrive provider support (#118) 6 vuotta sitten
LICENSE add GDrive provider support (#118) 6 vuotta sitten
NOTES add GDrive provider support (#118) 6 vuotta sitten
README.md add GDrive provider support (#118) 6 vuotta sitten
TODO add GDrive provider support (#118) 6 vuotta sitten
api-list.json add GDrive provider support (#118) 6 vuotta sitten
key.json.enc add GDrive provider support (#118) 6 vuotta sitten

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.