Method |
Description |
|
__construct ( string $subdomain, string $username = '', string $scheme = "https", string $hostname = "zendesk.com", integer $port = 443, Client $guzzle = null ) |
|
|
delete ( $endpoint ) : null |
This is a helper method to do a delete request. |
|
get ( $endpoint, array $queryParams = [] ) : stdClass |
This is a helper method to do a get request. |
|
getApiBasePath ( ) : string |
Returns the api base path |
|
getApiUrl ( ) : string |
Returns the generated api URL |
|
getAuth ( ) : Auth |
|
|
getDebug ( ) : Zendesk\API\Debug |
Returns debug information in an object |
|
getHeaders ( ) : array |
|
|
getSideload ( array $params = [] ) : array | null |
Sideload getter |
|
getSubdomain ( ) : string |
Returns the supplied subdomain |
|
getUserAgent ( ) : string |
Return the user agent string |
|
getValidSubResources ( ) : array |
|
|
post ( $endpoint, array $postData = [] ) : stdClass |
This is a helper method to do a post request. |
|
put ( $endpoint, array $putData = [] ) : stdClass |
This is a helper method to do a put request. |
|
setApiBasePath ( string $apiBasePath ) |
Sets the api base path |
|
setAuth ( $strategy, array $options ) |
Configure the authorization method |
|
setDebug ( mixed $lastRequestHeaders, mixed $lastRequestBody, mixed $lastResponseCode, string $lastResponseHeaders, mixed $lastResponseError ) |
Set debug information as an object |
|
setHeader ( string $key, string $value ) : HttpClient |
|
|
setSideload ( array $fields = null ) : HttpClient |
Sideload setter |
|