google-api-go-client

module
v0.0.0-...-ada7ae8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2016 License: BSD-3-Clause

README

Google APIs Client Library for Go

Status

Build Status

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.

Announcement email:

Getting started documentation:

In summary:

$ go get google.golang.org/api/storage/v1
$ go get google.golang.org/api/tasks/v1
$ go get google.golang.org/api/moderator/v1
... etc ...

For docs, see e.g.:

The package of a given import is the second-to-last component, before the version number.

For examples, see:

For support, use the golang-nuts@ mailing list:

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.

Directories

Path Synopsis
adexchangebuyer
v1.2
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
v1.3
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
v1.4
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
adexchangeseller
v1
Package adexchangeseller provides access to the Ad Exchange Seller API.
Package adexchangeseller provides access to the Ad Exchange Seller API.
v1.1
Package adexchangeseller provides access to the Ad Exchange Seller API.
Package adexchangeseller provides access to the Ad Exchange Seller API.
v2.0
Package adexchangeseller provides access to the Ad Exchange Seller API.
Package adexchangeseller provides access to the Ad Exchange Seller API.
admin
datatransfer/v1
Package admin provides access to the Admin Data Transfer API.
Package admin provides access to the Admin Data Transfer API.
directory/v1
Package admin provides access to the Admin Directory API.
Package admin provides access to the Admin Directory API.
email_migration/v2
Package admin provides access to the Email Migration API v2.
Package admin provides access to the Email Migration API v2.
reports/v1
Package admin provides access to the Admin Reports API.
Package admin provides access to the Admin Reports API.
adsense
v1.2
Package adsense provides access to the AdSense Management API.
Package adsense provides access to the AdSense Management API.
v1.3
Package adsense provides access to the AdSense Management API.
Package adsense provides access to the AdSense Management API.
v1.4
Package adsense provides access to the AdSense Management API.
Package adsense provides access to the AdSense Management API.
adsensehost
v4.1
Package adsensehost provides access to the AdSense Host API.
Package adsensehost provides access to the AdSense Host API.
analytics
v2.4
Package analytics provides access to the Google Analytics API.
Package analytics provides access to the Google Analytics API.
v3
Package analytics provides access to the Google Analytics API.
Package analytics provides access to the Google Analytics API.
androidenterprise
v1
Package androidenterprise provides access to the Google Play EMM API.
Package androidenterprise provides access to the Google Play EMM API.
androidpublisher
v1
Package androidpublisher provides access to the Google Play Developer API.
Package androidpublisher provides access to the Google Play Developer API.
v1.1
Package androidpublisher provides access to the Google Play Developer API.
Package androidpublisher provides access to the Google Play Developer API.
v2
Package androidpublisher provides access to the Google Play Developer API.
Package androidpublisher provides access to the Google Play Developer API.
appengine
v1beta4
Package appengine provides access to the Google App Engine Admin API.
Package appengine provides access to the Google App Engine Admin API.
v1beta5
Package appengine provides access to the Google App Engine Admin API.
Package appengine provides access to the Google App Engine Admin API.
appsactivity
v1
Package appsactivity provides access to the Google Apps Activity API.
Package appsactivity provides access to the Google Apps Activity API.
appstate
v1
Package appstate provides access to the Google App State API.
Package appstate provides access to the Google App State API.
autoscaler
v1beta2
Package autoscaler provides access to the Google Compute Engine Autoscaler API.
Package autoscaler provides access to the Google Compute Engine Autoscaler API.
bigquery
v2
Package bigquery provides access to the BigQuery API.
Package bigquery provides access to the BigQuery API.
blogger
v2
Package blogger provides access to the Blogger API.
Package blogger provides access to the Blogger API.
v3
Package blogger provides access to the Blogger API.
Package blogger provides access to the Blogger API.
books
v1
Package books provides access to the Books API.
Package books provides access to the Books API.
calendar
v3
Package calendar provides access to the Calendar API.
Package calendar provides access to the Calendar API.
civicinfo
v2
Package civicinfo provides access to the Google Civic Information API.
Package civicinfo provides access to the Google Civic Information API.
classroom
v1
Package classroom provides access to the Google Classroom API.
Package classroom provides access to the Google Classroom API.
cloudbilling
v1
Package cloudbilling provides access to the Google Cloud Billing API.
Package cloudbilling provides access to the Google Cloud Billing API.
cloudbuild
v1
Package cloudbuild provides access to the Google Cloud Container Builder API.
Package cloudbuild provides access to the Google Cloud Container Builder API.
clouddebugger
v2
Package clouddebugger provides access to the Google Cloud Debugger API.
Package clouddebugger provides access to the Google Cloud Debugger API.
cloudlatencytest
v2
Package cloudlatencytest provides access to the Google Cloud Network Performance Monitoring API.
Package cloudlatencytest provides access to the Google Cloud Network Performance Monitoring API.
cloudmonitoring
v2beta2
Package cloudmonitoring provides access to the Cloud Monitoring API.
Package cloudmonitoring provides access to the Cloud Monitoring API.
cloudresourcemanager
v1beta1
Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
cloudtrace
v1
Package cloudtrace provides access to the Google Cloud Trace API.
Package cloudtrace provides access to the Google Cloud Trace API.
clouduseraccounts
v0.alpha
Package clouduseraccounts provides access to the Cloud User Accounts API.
Package clouduseraccounts provides access to the Cloud User Accounts API.
v0.beta
Package clouduseraccounts provides access to the Cloud User Accounts API.
Package clouduseraccounts provides access to the Cloud User Accounts API.
vm_alpha
Package clouduseraccounts provides access to the Cloud User Accounts API.
Package clouduseraccounts provides access to the Cloud User Accounts API.
vm_beta
Package clouduseraccounts provides access to the Cloud User Accounts API.
Package clouduseraccounts provides access to the Cloud User Accounts API.
compute
v0.beta
Package compute provides access to the Compute Engine API.
Package compute provides access to the Compute Engine API.
v1
Package compute provides access to the Compute Engine API.
Package compute provides access to the Compute Engine API.
container
v1
Package container provides access to the Google Container Engine API.
Package container provides access to the Google Container Engine API.
content
v2
Package content provides access to the Content API for Shopping.
Package content provides access to the Content API for Shopping.
v2sandbox
Package content provides access to the Content API for Shopping.
Package content provides access to the Content API for Shopping.
coordinate
v1
Package coordinate provides access to the Google Maps Coordinate API.
Package coordinate provides access to the Google Maps Coordinate API.
customsearch
v1
Package customsearch provides access to the CustomSearch API.
Package customsearch provides access to the CustomSearch API.
dataflow
v1b3
Package dataflow provides access to the Google Dataflow API.
Package dataflow provides access to the Google Dataflow API.
dataproc
v1
Package dataproc provides access to the Google Cloud Dataproc API.
Package dataproc provides access to the Google Cloud Dataproc API.
v1alpha1
Package dataproc provides access to the Google Cloud Dataproc API.
Package dataproc provides access to the Google Cloud Dataproc API.
v1beta1
Package dataproc provides access to the Google Cloud Dataproc API.
Package dataproc provides access to the Google Cloud Dataproc API.
datastore
v1beta1
Package datastore provides access to the Google Cloud Datastore API.
Package datastore provides access to the Google Cloud Datastore API.
v1beta2
Package datastore provides access to the Google Cloud Datastore API.
Package datastore provides access to the Google Cloud Datastore API.
deploymentmanager
v2
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
v2beta1
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
v2beta2
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
dfareporting
v1
Package dfareporting provides access to the DFA Reporting API.
Package dfareporting provides access to the DFA Reporting API.
v1.1
Package dfareporting provides access to the DFA Reporting API.
Package dfareporting provides access to the DFA Reporting API.
v1.2
Package dfareporting provides access to the DFA Reporting API.
Package dfareporting provides access to the DFA Reporting API.
v1.3
Package dfareporting provides access to the DFA Reporting API.
Package dfareporting provides access to the DFA Reporting API.
v2.0
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
v2.1
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
v2.2
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
v2.3
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
v2.4
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
discovery
v1
Package discovery provides access to the APIs Discovery Service.
Package discovery provides access to the APIs Discovery Service.
dns
v1
Package dns provides access to the Google Cloud DNS API.
Package dns provides access to the Google Cloud DNS API.
v1beta1
Package dns provides access to the Google Cloud DNS API.
Package dns provides access to the Google Cloud DNS API.
doubleclickbidmanager
v1
Package doubleclickbidmanager provides access to the DoubleClick Bid Manager API.
Package doubleclickbidmanager provides access to the DoubleClick Bid Manager API.
doubleclicksearch
v2
Package doubleclicksearch provides access to the DoubleClick Search API.
Package doubleclicksearch provides access to the DoubleClick Search API.
drive
v1
Package drive provides access to the Drive API.
Package drive provides access to the Drive API.
v2
Package drive provides access to the Drive API.
Package drive provides access to the Drive API.
v3
Package drive provides access to the Drive API.
Package drive provides access to the Drive API.
fitness
v1
Package fitness provides access to the Fitness.
Package fitness provides access to the Fitness.
freebase
v1
Package freebase provides access to the Freebase Search.
Package freebase provides access to the Freebase Search.
fusiontables
v1
Package fusiontables provides access to the Fusion Tables API.
Package fusiontables provides access to the Fusion Tables API.
v2
Package fusiontables provides access to the Fusion Tables API.
Package fusiontables provides access to the Fusion Tables API.
games
v1
Package games provides access to the Google Play Game Services API.
Package games provides access to the Google Play Game Services API.
gamesconfiguration
v1configuration
Package gamesconfiguration provides access to the Google Play Game Services Publishing API.
Package gamesconfiguration provides access to the Google Play Game Services Publishing API.
gamesmanagement
v1management
Package gamesmanagement provides access to the Google Play Game Services Management API.
Package gamesmanagement provides access to the Google Play Game Services Management API.
gan
v1beta1
Package gan provides access to the Google Affiliate Network API.
Package gan provides access to the Google Affiliate Network API.
genomics
v1
Package genomics provides access to the Genomics API.
Package genomics provides access to the Genomics API.
v1alpha2
Package genomics provides access to the Genomics API.
Package genomics provides access to the Genomics API.
v1beta2
Package genomics provides access to the Genomics API.
Package genomics provides access to the Genomics API.
Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool.
Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool.
gmail
v1
Package gmail provides access to the Gmail API.
Package gmail provides access to the Gmail API.
Package googleapi contains the common code shared by all Google API libraries.
Package googleapi contains the common code shared by all Google API libraries.
internal/uritemplates
Package uritemplates is a level 3 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570).
Package uritemplates is a level 3 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570).
transport
Package transport contains HTTP transports used to make authenticated API requests.
Package transport contains HTTP transports used to make authenticated API requests.
groupsmigration
v1
Package groupsmigration provides access to the Groups Migration API.
Package groupsmigration provides access to the Groups Migration API.
groupssettings
v1
Package groupssettings provides access to the Groups Settings API.
Package groupssettings provides access to the Groups Settings API.
iam
v1
Package iam provides access to the Google Identity and Access Management API.
Package iam provides access to the Google Identity and Access Management API.
v1alpha1
Package iam provides access to the Google Identity and Access Management API.
Package iam provides access to the Google Identity and Access Management API.
identitytoolkit
v3
Package identitytoolkit provides access to the Google Identity Toolkit API.
Package identitytoolkit provides access to the Google Identity Toolkit API.
kgsearch
v1
Package kgsearch provides access to the Knowledge Graph Search API.
Package kgsearch provides access to the Knowledge Graph Search API.
licensing
v1
Package licensing provides access to the Enterprise License Manager API.
Package licensing provides access to the Enterprise License Manager API.
logging
v1beta3
Package logging provides access to the Google Cloud Logging API.
Package logging provides access to the Google Cloud Logging API.
v2beta1
Package logging provides access to the Google Cloud Logging API.
Package logging provides access to the Google Cloud Logging API.
manager
v1beta2
Package manager provides access to the Deployment Manager API.
Package manager provides access to the Deployment Manager API.
mapsengine
exp2
Package mapsengine provides access to the Google Maps Engine API.
Package mapsengine provides access to the Google Maps Engine API.
v1
Package mapsengine provides access to the Google Maps Engine API.
Package mapsengine provides access to the Google Maps Engine API.
mirror
v1
Package mirror provides access to the Google Mirror API.
Package mirror provides access to the Google Mirror API.
oauth2
v1
Package oauth2 provides access to the Google OAuth2 API.
Package oauth2 provides access to the Google OAuth2 API.
v2
Package oauth2 provides access to the Google OAuth2 API.
Package oauth2 provides access to the Google OAuth2 API.
pagespeedonline
v1
Package pagespeedonline provides access to the PageSpeed Insights API.
Package pagespeedonline provides access to the PageSpeed Insights API.
v2
Package pagespeedonline provides access to the PageSpeed Insights API.
Package pagespeedonline provides access to the PageSpeed Insights API.
partners
v2
Package partners provides access to the Google Partners API.
Package partners provides access to the Google Partners API.
playmoviespartner
v1
Package playmoviespartner provides access to the Google Play Movies Partner API.
Package playmoviespartner provides access to the Google Play Movies Partner API.
plus
v1
Package plus provides access to the Google+ API.
Package plus provides access to the Google+ API.
plusdomains
v1
Package plusdomains provides access to the Google+ Domains API.
Package plusdomains provides access to the Google+ Domains API.
prediction
v1.2
Package prediction provides access to the Prediction API.
Package prediction provides access to the Prediction API.
v1.3
Package prediction provides access to the Prediction API.
Package prediction provides access to the Prediction API.
v1.4
Package prediction provides access to the Prediction API.
Package prediction provides access to the Prediction API.
v1.5
Package prediction provides access to the Prediction API.
Package prediction provides access to the Prediction API.
v1.6
Package prediction provides access to the Prediction API.
Package prediction provides access to the Prediction API.
proximitybeacon
v1beta1
Package proximitybeacon provides access to the Google Proximity Beacon API.
Package proximitybeacon provides access to the Google Proximity Beacon API.
pubsub
v1
Package pubsub provides access to the Google Cloud Pub/Sub API.
Package pubsub provides access to the Google Cloud Pub/Sub API.
v1beta1a
Package pubsub provides access to the Google Cloud Pub/Sub API.
Package pubsub provides access to the Google Cloud Pub/Sub API.
v1beta2
Package pubsub provides access to the Google Cloud Pub/Sub API.
Package pubsub provides access to the Google Cloud Pub/Sub API.
qpxexpress
v1
Package qpxexpress provides access to the QPX Express API.
Package qpxexpress provides access to the QPX Express API.
replicapool
v1beta1
Package replicapool provides access to the Replica Pool API.
Package replicapool provides access to the Replica Pool API.
v1beta2
Package replicapool provides access to the Google Compute Engine Instance Group Manager API.
Package replicapool provides access to the Google Compute Engine Instance Group Manager API.
replicapoolupdater
v1beta1
Package replicapoolupdater provides access to the Google Compute Engine Instance Group Updater API.
Package replicapoolupdater provides access to the Google Compute Engine Instance Group Updater API.
reseller
v1
Package reseller provides access to the Enterprise Apps Reseller API.
Package reseller provides access to the Enterprise Apps Reseller API.
v1sandbox
Package reseller provides access to the Enterprise Apps Reseller API.
Package reseller provides access to the Enterprise Apps Reseller API.
resourceviews
v1beta1
Package resourceviews provides access to the Resource Views API.
Package resourceviews provides access to the Resource Views API.
v1beta2
Package resourceviews provides access to the Google Compute Engine Instance Groups API.
Package resourceviews provides access to the Google Compute Engine Instance Groups API.
script
v1
Package script provides access to the Google Apps Script Execution API.
Package script provides access to the Google Apps Script Execution API.
serviceregistry
v0.alpha
Package serviceregistry provides access to the Google Cloud Service Registry API V1.
Package serviceregistry provides access to the Google Cloud Service Registry API V1.
siteverification
v1
Package siteverification provides access to the Google Site Verification API.
Package siteverification provides access to the Google Site Verification API.
spectrum
v1explorer
Package spectrum provides access to the Google Spectrum Database API.
Package spectrum provides access to the Google Spectrum Database API.
sqladmin
v1beta3
Package sqladmin provides access to the Cloud SQL Administration API.
Package sqladmin provides access to the Cloud SQL Administration API.
v1beta4
Package sqladmin provides access to the Cloud SQL Administration API.
Package sqladmin provides access to the Cloud SQL Administration API.
storage
v1
Package storage provides access to the Cloud Storage JSON API.
Package storage provides access to the Cloud Storage JSON API.
v1beta1
Package storage provides access to the Cloud Storage JSON API.
Package storage provides access to the Cloud Storage JSON API.
v1beta2
Package storage provides access to the Cloud Storage JSON API.
Package storage provides access to the Cloud Storage JSON API.
storagetransfer
v1
Package storagetransfer provides access to the Google Storage Transfer API.
Package storagetransfer provides access to the Google Storage Transfer API.
tagmanager
v1
Package tagmanager provides access to the Tag Manager API.
Package tagmanager provides access to the Tag Manager API.
taskqueue
v1beta1
Package taskqueue provides access to the TaskQueue API.
Package taskqueue provides access to the TaskQueue API.
v1beta2
Package taskqueue provides access to the TaskQueue API.
Package taskqueue provides access to the TaskQueue API.
tasks
v1
Package tasks provides access to the Tasks API.
Package tasks provides access to the Tasks API.
translate
v2
Package translate provides access to the Translate API.
Package translate provides access to the Translate API.
urlshortener
v1
Package urlshortener provides access to the URL Shortener API.
Package urlshortener provides access to the URL Shortener API.
vision
v1
Package vision provides access to the Cloud Vision API.
Package vision provides access to the Cloud Vision API.
webfonts
v1
Package webfonts provides access to the Google Fonts Developer API.
Package webfonts provides access to the Google Fonts Developer API.
webmasters
v3
Package webmasters provides access to the Search Console API.
Package webmasters provides access to the Search Console API.
youtube
v3
Package youtube provides access to the YouTube Data API.
Package youtube provides access to the YouTube Data API.
youtubeanalytics
v1
Package youtubeanalytics provides access to the YouTube Analytics API.
Package youtubeanalytics provides access to the YouTube Analytics API.
v1beta1
Package youtubeanalytics provides access to the YouTube Analytics API.
Package youtubeanalytics provides access to the YouTube Analytics API.
youtubereporting
v1
Package youtubereporting provides access to the YouTube Reporting API.
Package youtubereporting provides access to the YouTube Reporting API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL