Zendesk\API\Resources\Core\Search::find PHP Method

find() public method

The search API is a unified search API that returns tickets, users, and organizations. You can define filters to narrow your search results according to resource type, dates, and object properties, such as ticket requester or tag.
public find ( null $query = null, array $queryParams = [] ) : stdClass
$query null
$queryParams array
return stdClass | null
    public function find($query = null, array $queryParams = [])
    {
        if (empty($query)) {
            throw new MissingParametersException(__METHOD__, ['query']);
        }
        $queryParams['query'] = $query;
        return $this->client->get($this->getRoute(__FUNCTION__), $queryParams);
    }