index

Modules

vue-gapi

Classes

Vue

vue-gapi

.install(app, clientConfig)

See: Pluginsopen in new window

ParamTypeDescription
appVueVue application instance
clientConfigOptionsVueGapi plugin options

.useGapi() ⇒ GoogleAuthService

Inject the GoogleAuthService instance via Composition API dependency injection.

.Options : object

gapi.client.init configuration parameters.

See: gapi.client.initopen in new window
Properties

NameTypeDescription
[apiKey]stringThe API Key to use
[discoveryDocs]Array.<string>An array of discovery doc URLs or discovery doc JSON objects
[clientId]stringThe app's client ID, found and created in the Google Developers Console
[scope]stringThe scopes to request, as a space-delimited string

Vue

.app.config.globalProperties.$gapi : GoogleAuthService