Google

Joomla Framework class for interacting with the Google APIs.

deprecated
property-read

Google API object for data.

Google API object for embed generation.

since

1.0

deprecated

The joomla/google package is deprecated

Methods

__construct

Constructor.

__construct(array $options = array(), \Joomla\Google\Auth $auth = null) 
since

1.0

Arguments

$options

arrayGoogle options object.

$auth

\Joomla\Google\AuthThe authentication client object.

data

Method to create Data objects

data(string $name, array $options = null, \Joomla\Google\Auth $auth = null) : \Joomla\Google\Data
since

1.0

Arguments

$name

stringName of property to retrieve

$options

arrayGoogle options object.

$auth

\Joomla\Google\AuthThe authentication client object.

Response

\Joomla\Google\DataGoogle data API object.

embed

Method to create Embed objects

embed(string $name, array $options = null) : \Joomla\Google\Embed
since

1.0

Arguments

$name

stringName of property to retrieve

$options

arrayGoogle options object.

Response

\Joomla\Google\EmbedGoogle embed API object.

getOption

Get an option from the Google instance.

getOption(string $key) : mixed
since

1.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

setOption

Set an option for the Google instance.

setOption(string $key, mixed $value) : \Joomla\Google\Google
since

1.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\Joomla\Google\GoogleThis object for method chaining.

Properties

options

Options for the Google object.

since

1.0

Type(s)

array

auth

The authentication client object to use in sending authenticated HTTP requests.

since

1.0

Type(s)

\Joomla\Google\Auth

data

Google API object for data request.

since

1.0

Type(s)

\Joomla\Google\Data

embed

Google API object for embed generation.

since

1.0

Type(s)

\Joomla\Google\Embed

data

Google API object for data.

Type(s)

\Joomla\Google\Data

embed

Google API object for embed generation.

Type(s)

\Joomla\Google\Embed