Skip to content

Commit 45de578

Browse files
feat(api): manual updates
1 parent cfd1fc1 commit 45de578

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-2c88c6d890406ff8a5f1bca692264fb9af4bc4fe64df0986e06d3386fc6d6fcb.yml
33
openapi_spec_hash: dc6ea17f8152708dc0a390c7f86b1a5d
4-
config_hash: b01f15c540ab2c92808c2bba96368631
4+
config_hash: bdeeac521c2cf3846aec9f75cb681d97

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $client = new Client(
5656
);
5757

5858
$response = $client->sessions->act(
59-
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
59+
'00000000-your-session-id-000000000000',
6060
input: 'click the first link on the page',
6161
);
6262

@@ -81,8 +81,8 @@ use Stagehand\Core\Exceptions\APIConnectionException;
8181

8282
try {
8383
$response = $client->sessions->start(
84-
browserbaseAPIKey: 'BROWSERBASE_API_KEY',
85-
browserbaseProjectID: 'BROWSERBASE_PROJECT_ID',
84+
browserbaseAPIKey: '<your API key here>',
85+
browserbaseProjectID: '<your project ID here>',
8686
);
8787
} catch (APIConnectionException $e) {
8888
echo "The server could not be reached", PHP_EOL;
@@ -130,8 +130,8 @@ $client = new Client(maxRetries: 0);
130130

131131
// Or, configure per-request:
132132
$result = $client->sessions->start(
133-
browserbaseAPIKey: 'BROWSERBASE_API_KEY',
134-
browserbaseProjectID: 'BROWSERBASE_PROJECT_ID',
133+
browserbaseAPIKey: '<your API key here>',
134+
browserbaseProjectID: '<your project ID here>',
135135
requestOptions: RequestOptions::with(maxRetries: 5),
136136
);
137137
```
@@ -152,8 +152,8 @@ Note: the `extra*` parameters of the same name overrides the documented paramete
152152
use Stagehand\RequestOptions;
153153

154154
$response = $client->sessions->start(
155-
browserbaseAPIKey: 'BROWSERBASE_API_KEY',
156-
browserbaseProjectID: 'BROWSERBASE_PROJECT_ID',
155+
browserbaseAPIKey: '<your API key here>',
156+
browserbaseProjectID: '<your project ID here>',
157157
requestOptions: RequestOptions::with(
158158
extraQueryParams: ['my_query_parameter' => 'value'],
159159
extraBodyParams: ['my_body_parameter' => 'value'],

0 commit comments

Comments
 (0)