PHP Class SevenShores\Hubspot\Http\Client

Afficher le fichier Open project: fungku/hubspot-php

Méthodes publiques

Свойство Type Description
$client GuzzleHttp\Client
$key string
$oauth boolean
$oauth2 boolean
$userId integer

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
generateUrl ( string $endpoint, string $query_string = null, boolean $requires_auth = true ) : string Generate the full endpoint url, including query string.

Method Details

__construct() public méthode

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

generateUrl() protected méthode

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
Résultat string

request() public méthode

..
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
Résultat Response

Property Details

$client public_oe property

public Client,GuzzleHttp $client
Résultat GuzzleHttp\Client

$key public_oe property

public string $key
Résultat string

$oauth public_oe property

public bool $oauth
Résultat boolean

$oauth2 public_oe property

public bool $oauth2
Résultat boolean

$userId public_oe property

public int $userId
Résultat integer