Skip to content
Auto-generated Google APIs for Go.
Branch: master
Clone or download
jadekler photoslibrary: remove v1 client
The photoslibrary team hopes to fully support Go in the near future, but this
autogenerated library is ready to be sunset.

Removes the photoslibrary autogenerated client. Please note: as noted in our
README and at https://godoc.org/google.golang.org/api, though the API is
considered v1 and stable, all clients in this repository are considered beta.

If you rely on this client, please vendor this library.

Change-Id: Ia5521187d5c8d3b41b122cacf1b23d337628ceee
Reviewed-on: https://code-review.googlesource.com/c/google-api-go-client/+/39951
Reviewed-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Chris Broadfoot <cbro@google.com>
Latest commit 33b7e86 Apr 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
abusiveexperiencereport/v1
acceleratedmobilepageurl/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
accessapproval/v1beta1 all: autogenerated update (2019-04-18) Apr 18, 2019
accesscontextmanager
adexchangebuyer all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
adexchangebuyer2/v2beta1 all: autogenerated update (2019-04-12) Apr 12, 2019
adexchangeseller all: revert back to BSD license Dec 3, 2018
adexperiencereport/v1
admin all: autogenerated update (2019-04-05) Apr 5, 2019
adsense all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
adsensehost/v4.1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
alertcenter/v1beta1
analytics all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
analyticsreporting/v4 all: autogenerated update (2019-03-22) Mar 22, 2019
androiddeviceprovisioning/v1 all: autogenerated update (2019-04-10) Apr 10, 2019
androidenterprise/v1
androidmanagement/v1
androidpublisher all: autogenerated update (2019-04-18) Apr 18, 2019
appengine all: autogenerated update (2019-04-18) Apr 18, 2019
appsactivity/v1 google-api-go-client: Update generated code from discovery. Apr 2, 2019
appstate/v1
bigquery/v2 all: autogenerated update (2019-04-10) Apr 10, 2019
bigquerydatatransfer/v1 all: autogenerated update (2019-03-29) Mar 29, 2019
bigtableadmin all: autogenerated update (2019-04-10) Apr 10, 2019
binaryauthorization/v1beta1
blogger
books/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
calendar/v3 all: autogenerated update (2019-04-05) Apr 5, 2019
chat/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
civicinfo/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
classroom/v1 all: autogenerated update (2019-04-12) Apr 12, 2019
cloudasset
cloudbilling/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
cloudbuild all: autogenerated update (2019-03-29) Mar 29, 2019
clouddebugger/v2
clouderrorreporting/v1beta1
cloudfunctions all: autogenerated update (2019-03-29) Mar 29, 2019
cloudidentity
cloudiot/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
cloudkms/v1 all: autogenerated update (2019-03-27) Mar 27, 2019
cloudprivatecatalog/v1beta1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
cloudprivatecatalogproducer/v1beta1
cloudprofiler/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
cloudresourcemanager all: autogenerated update (2019-04-10) Apr 10, 2019
cloudscheduler all: autogenerated update (2019-04-18) Apr 18, 2019
cloudsearch/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
cloudshell
cloudtasks
cloudtrace all: autogenerated update (2019-03-22) Mar 22, 2019
commentanalyzer/v1alpha1 all: autogenerated update (2019-04-18) Apr 18, 2019
composer all: autogenerated update (2019-03-29) Mar 29, 2019
compute google-api-go-client: Update generated code from discovery. Apr 2, 2019
consumersurveys/v2 all: revert back to BSD license Dec 3, 2018
container all: autogenerated update (2019-04-18) Apr 18, 2019
containeranalysis all: autogenerated update (2019-04-05) Apr 5, 2019
content
customsearch/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dataflow/v1b3
dataproc
datastore all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
deploymentmanager all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dfareporting all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dialogflow all: autogenerated update (2019-04-05) Apr 5, 2019
digitalassetlinks/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
discovery/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
dlp/v2 all: autogenerated update (2019-04-05) Apr 5, 2019
dns all: autogenerated update (2019-03-29) Mar 29, 2019
docs/v1
doubleclickbidmanager/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
doubleclicksearch/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
drive all: autogenerated update (2019-04-13) Apr 13, 2019
driveactivity/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
examples examples: Add example of custom search Dec 6, 2018
factchecktools/v1alpha1 all: autogenerated update (2019-03-29) Mar 29, 2019
file all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
firebasedynamiclinks/v1 all: autogenerated update (2019-04-12) Apr 12, 2019
firebasehosting/v1beta1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
firebaseremoteconfig/v1
firebaserules/v1
firestore all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
fitness/v1
fusiontables all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
games/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
gamesconfiguration/v1configuration
gamesmanagement/v1management all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
genomics
gensupport gensupport: fix incorrect MIME boundary being used in bodies on retries Mar 18, 2019
gmail/v1
google-api-go-generator google-api-go-generator: add NewService(...) Mar 14, 2019
googleapi internal: fix new staticcheck warnings Jan 8, 2019
groupsmigration/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
groupssettings/v1
healthcare all: autogenerated update (2019-04-05) Apr 5, 2019
iam/v1 all: autogenerated update (2019-03-22) Mar 22, 2019
iamcredentials/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
iap all: autogenerated update (2019-04-18) Apr 18, 2019
identitytoolkit/v3 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
indexing/v3 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
integration-tests/storage all: update generator to use "context" Nov 7, 2018
internal internal: improve CI/CD scripts Mar 5, 2019
iterator docs: Change Example_webHandler to show variables inline Feb 5, 2019
jobs all: autogenerated update (2019-04-10) Apr 10, 2019
kgsearch/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
language
lib/codereview codereview: change default cc to golang-codereviews Dec 20, 2013
libraryagent/v1
licensing/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
logging
manufacturers/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
mirror/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
ml/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
monitoring all: autogenerated update (2019-04-05) Apr 5, 2019
oauth2 all: autogenerated update (2019-04-18) Apr 18, 2019
option option: support system parameters Feb 12, 2019
oslogin all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
pagespeedonline all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
partners/v2
people/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
playcustomapp/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
playmoviespartner/v1 all: revert back to BSD license Dec 3, 2018
plus/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
plusdomains/v1
poly/v1 all: autogenerated update (2019-04-12) Apr 12, 2019
prediction all: revert back to BSD license Dec 3, 2018
proximitybeacon/v1beta1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
pubsub
qpxexpress/v1 all: revert back to BSD license Dec 3, 2018
redis all: autogenerated update (2019-03-29) Mar 29, 2019
remotebuildexecution all: autogenerated update (2019-04-18) Apr 18, 2019
replicapool/v1beta1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
replicapoolupdater/v1beta1 all: update generator to use standard message for autogen code Dec 3, 2018
reseller/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
run all: autogenerated update (2019-04-18) Apr 18, 2019
runtimeconfig all: autogenerated update (2019-03-27) Mar 27, 2019
safebrowsing/v4 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
script/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
searchconsole/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
securitycenter all: autogenerated update (2019-04-10) Apr 10, 2019
servicebroker all: autogenerated update (2019-04-18) Apr 18, 2019
serviceconsumermanagement/v1 all: autogenerated update (2019-04-18) Apr 18, 2019
servicecontrol/v1 all: autogenerated update (2019-03-22) Mar 22, 2019
servicemanagement/v1
servicenetworking all: autogenerated update (2019-04-18) Apr 18, 2019
serviceusage all: autogenerated update (2019-04-18) Apr 18, 2019
serviceuser/v1 all: revert back to BSD license Dec 3, 2018
sheets/v4 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
siteverification/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
slides/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
sourcerepo/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
spanner/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
spectrum/v1explorer all: revert back to BSD license Dec 3, 2018
speech all: autogenerated update (2019-03-27) Mar 27, 2019
sqladmin/v1beta4
storage all: autogenerated update (2019-04-10) Apr 10, 2019
storagetransfer/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
streetviewpublish/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
support/bundler Adding 5000 items to bundler exceeds the memory limit of the app engine Dec 13, 2018
surveys/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
tagmanager
tasks/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
testing/v1 all: autogenerated update (2019-03-27) Mar 27, 2019
texttospeech all: autogenerated update (2019-04-05) Apr 5, 2019
toolresults/v1beta3
tpu all: autogenerated update (2019-04-12) Apr 12, 2019
tracing/v2 all: revert back to BSD license Dec 3, 2018
translate/v2 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
transport option: support system parameters Feb 12, 2019
urlshortener/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
vault/v1 all: autogenerated update (2019-04-10) Apr 10, 2019
videointelligence all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
vision all: autogenerated update (2019-04-18) Apr 18, 2019
webfonts/v1 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
webmasters/v3 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
websecurityscanner
youtube/v3 all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
youtubeanalytics all: regenerate everything (adds "NewService" constructor, updates co… Mar 15, 2019
youtubereporting/v1 all: autogenerated update (2019-04-10) Apr 10, 2019
.gitignore google-api-go-generator: move Makefile up from root Aug 17, 2017
.hgtags Add release tag. Feb 7, 2012
AUTHORS Add A+C files. Feb 7, 2012
CONTRIBUTING.md google-api-go-client: remove italics next to <> May 21, 2015
CONTRIBUTORS Strip URL after colon in relstr and append later Jun 6, 2018
GettingStarted.md all: update generator to use "context" Nov 7, 2018
LICENSE a Google API -> Go code generator and base library Aug 24, 2011
NOTES
README.md docs: Add link to code review instance to README Dec 6, 2018
TODO google-api-go-client: add updated GettingStarted.md doc Apr 6, 2015
api-list.json
doc.go docs: clarify library stability Apr 15, 2019
go.mod mod: switch to non-alpha future versions of opencensus Apr 8, 2019
go.sum all: release v0.3.2 Apr 8, 2019
key.json.enc .travis.yml: replace service account key May 19, 2017
tools.go internal: improve CI/CD scripts Mar 5, 2019

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

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 (
        "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.

You can’t perform that action at this time.