PHP Класс SevenShores\Hubspot\Http\Client

Показать файл Открыть проект

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

Свойство Тип Описание
$client GuzzleHttp\Client
$key string
$oauth boolean
$oauth2 boolean
$userId integer

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

Метод Описание
__construct ( array $config = [], Client $client = null ) Make it, baby.
request ( string $method, string $endpoint, array $options = [], string $query_string = null, boolean $requires_auth = true ) : Response Send the request.

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

Метод Описание
generateUrl ( string $endpoint, string $query_string = null, boolean $requires_auth = true ) : string Generate the full endpoint url, including query string.

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

__construct() публичный Метод

Make it, baby.
public __construct ( array $config = [], Client $client = null )
$config array Configuration array
$client GuzzleHttp\Client The Http Client (Defaults to Guzzle)

generateUrl() защищенный Метод

Generate the full endpoint url, including query string.
protected generateUrl ( string $endpoint, string $query_string = null, boolean $requires_auth = true ) : string
$endpoint string The HubSpot API endpoint.
$query_string string The query string to send to the endpoint.
$requires_auth boolean Whether or not this HubSpot API endpoint requires authentication
Результат string

request() публичный Метод

..
public request ( string $method, string $endpoint, array $options = [], string $query_string = null, boolean $requires_auth = true ) : Response
$method string The HTTP request verb
$endpoint string The Hubspot API endpoint
$options array An array of options to send with the request
$query_string string A query string to send with the request
$requires_auth boolean Whether or not this HubSpot API endpoint requires authentication
Результат Response

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

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

public Client,GuzzleHttp $client
Результат GuzzleHttp\Client

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

public string $key
Результат string

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

public bool $oauth
Результат boolean

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

public bool $oauth2
Результат boolean

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

public int $userId
Результат integer