PHP Класс dosamigos\google\maps\ClientAbstract

Base class for those objects that make requests to the Google Web Services API
Автор: Antonio Ramirez ([email protected])
Наследование: extends yii\base\Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
getUrl ( ) : string Returns the api url
init ( )

Защищенные методы

Метод Описание
getClient ( ) : Guzzle\Http\Client | Client Returns the guzzle client
request ( array $options = [] ) : mixed | null Makes the request to the Google API

Описание методов

getClient() защищенный метод

Returns the guzzle client
protected getClient ( ) : Guzzle\Http\Client | Client
Результат Guzzle\Http\Client | GuzzleHttp\Client

getUrl() абстрактный публичный метод

Returns the api url
abstract public getUrl ( ) : string
Результат string

init() публичный метод

public init ( )

request() защищенный метод

Makes the request to the Google API
protected request ( array $options = [] ) : mixed | null
$options array for the guzzle request
Результат mixed | null

Описание свойств

$format публичное свойство

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

$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/.
public static $key

$params публичное свойство

the request parameters
public $params