Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 571 Bytes

File metadata and controls

17 lines (15 loc) · 571 Bytes

Instantiate the required library class

$http = new \Romby\Box\Http\Adapters\GuzzleHttpAdapter(new \GuzzleHttp\Client())
$search = new \Romby\Box\Services\Search($http);
/* @param string $token   the OAuth2 token.
 * @param string $query   the search string.
 * @param array  $options the options to modify the query with.
 * @return array the response.
 */
$search->query($token, $query, $options = []);