PHP Class dosamigos\google\maps\ClientAbstract

Base class for those objects that make requests to the Google Web Services API
Author: Antonio Ramirez ([email protected])
Inheritance: extends yii\base\Object
Afficher le fichier Open project: 2amigos/yii2-google-maps-library Class Usage Examples

Méthodes publiques

Свойство Type Description
$format response format. Can be json or xml.
$key your API key. To configure please, add googleMapsApiKey parameter to your application configuration file with the value of your API key. To get yours, please visit https://code.google.com/apis/console/.
$params the request parameters

Méthodes publiques

Méthode Description
getUrl ( ) : string Returns the api url
init ( )

Méthodes protégées

Méthode Description
getClient ( ) : Guzzle\Http\Client | Client Returns the guzzle client
request ( array $options = [] ) : mixed | null Makes the request to the Google API

Method Details

getClient() protected méthode

Returns the guzzle client
protected getClient ( ) : Guzzle\Http\Client | Client
Résultat Guzzle\Http\Client | GuzzleHttp\Client

getUrl() abstract public méthode

Returns the api url
abstract public getUrl ( ) : string
Résultat string

init() public méthode

public init ( )

request() protected méthode

Makes the request to the Google API
protected request ( array $options = [] ) : mixed | null
$options array for the guzzle request
Résultat mixed | null

Property Details

$format public_oe property

response format. Can be json or xml.
public $format

$key public_oe static_oe property

your API key. To configure please, add googleMapsApiKey parameter to your application configuration file with the value of your API key. To get yours, please visit https://code.google.com/apis/console/.
public static $key

$params public_oe property

the request parameters
public $params