Property | Type | Description | |
---|---|---|---|
$client | |||
$key | string | ||
$oauth | boolean | ||
$oauth2 | boolean | ||
$userId | integer |
Method | Description | |
---|---|---|
__construct ( array $config = [], |
Make it, baby. | |
request ( string $method, string $endpoint, array $options = [], string $query_string = null, boolean $requires_auth = true ) : |
Send the request. |
Method | Description | |
---|---|---|
generateUrl ( string $endpoint, string $query_string = null, boolean $requires_auth = true ) : string | Generate the full endpoint url, including query string. |
public __construct ( array $config = [], |
||
$config | array | Configuration array |
$client | The Http Client (Defaults to Guzzle) |
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 |
return | string |
public request ( string $method, string $endpoint, array $options = [], string $query_string = null, boolean $requires_auth = true ) : |
||
$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 |
return |