@@ -30,9 +30,9 @@ use ContextDev\Client;
3030
3131$client = new Client(apiKey: getenv('CONTEXT_DEV_API_KEY') ?: 'My API Key');
3232
33- $response = $client->web->extract( );
33+ $brand = $client->brand->retrieve(domain: 'REPLACE_ME' );
3434
35- var_dump($response->data );
35+ var_dump($brand->brand );
3636```
3737
3838### Value Objects
@@ -54,7 +54,7 @@ use ContextDev\Core\Exceptions\RateLimitException;
5454use ContextDev\Core\Exceptions\APIStatusException;
5555
5656try {
57- $response = $client->web->extract( );
57+ $brand = $client->brand->retrieve(domain: 'REPLACE_ME' );
5858} catch (APIConnectionException $e) {
5959 echo "The server could not be reached", PHP_EOL;
6060 var_dump($e->getPrevious());
@@ -99,7 +99,9 @@ use ContextDev\Client;
9999$client = new Client(requestOptions: ['maxRetries' => 0]);
100100
101101// Or, configure per-request:
102- $result = $client->web->extract(requestOptions: ['maxRetries' => 5]);
102+ $result = $client->brand->retrieve(
103+ domain: 'REPLACE_ME', requestOptions: ['maxRetries' => 5]
104+ );
103105```
104106
105107## Advanced concepts
@@ -115,7 +117,8 @@ Note: the `extra*` parameters of the same name overrides the documented paramete
115117``` php
116118<?php
117119
118- $response = $client->web->extract(
120+ $brand = $client->brand->retrieve(
121+ domain: 'REPLACE_ME',
119122 requestOptions: [
120123 'extraQueryParams' => ['my_query_parameter' => 'value'],
121124 'extraBodyParams' => ['my_body_parameter' => 'value'],
0 commit comments