public function searchUsers($query)
{
if (!$this->isLoggedIn()) {
throw new InstagramException("You must be logged in to call searchUsers().");
}
$request = new SearchUsersRequest($this, $query);
$response = $request->execute();
if (!$response->isOk()) {
throw new InstagramException(sprintf("Failed to searchUsers: [%s] %s", $response->getStatus(), $response->getMessage()));
}
return $response;
}