Property | Type | Description | |
---|---|---|---|
$curl |
Method | Description | |
---|---|---|
send ( |
Use the send method to call every endpoint except for oauth/tokens |
public static send ( |
||
$client | ||
$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 |