PHP Class Zendesk\API\Http

Show file Open project: zendesk/zendesk_api_client_php Class Usage Examples

Public Properties

Property Type Description
$curl

Public Methods

Method Description
send ( HttpClient $client, string $endPoint, array $options = [] ) : stdClass Use the send method to call every endpoint except for oauth/tokens

Method Details

send() public static method

Use the send method to call every endpoint except for oauth/tokens
public static send ( HttpClient $client, string $endPoint, array $options = [] ) : stdClass
$client HttpClient
$endPoint string E.g. "/tickets.json"
$options array Available options are listed below: array $queryParams Array of unencoded key-value pairs, e.g. ["ids" => "1,2,3,4"] array $postFields Array of unencoded key-value pairs, e.g. ["filename" => "blah.png"] string $method "GET", "POST", etc. Default is GET. string $contentType Default is "application/json"
return stdClass | null The response body, parsed from JSON into an object. Also returns null if something went wrong

Property Details

$curl public static property

public static $curl