Skip to content

Commit

Permalink
docs: client params
Browse files Browse the repository at this point in the history
  • Loading branch information
faustoq committed Jul 4, 2024
1 parent a48c6f9 commit abe64a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ composer require orama/oramacloud-client
use OramaCloud\Client;
use OramaCloud\Query;

$client = new Client("<Your Orama Cloud Endpoint>", "<Your Orama Cloud API Key>");
$client = new Client([
'api_key' => '<Your Orama Cloud API Key>',
'endpoint' => '<Your Orama Cloud Endpoint>'
]);

$results = $client->search(
(new Query())
Expand Down

0 comments on commit abe64a4

Please sign in to comment.