@@ -46,8 +46,8 @@ When the library is unable to connect to the API, or if the API returns a non-su
4646``` ruby
4747begin
4848 session = stagehand.sessions.start(
49- browserbase_api_key: " <your API key here> " ,
50- browserbase_project_id: " <your project ID here> "
49+ browserbase_api_key: " BROWSERBASE_API_KEY " ,
50+ browserbase_project_id: " BROWSERBASE_PROJECT_ID "
5151 )
5252rescue Stagehand ::Errors ::APIConnectionError => e
5353 puts (" The server could not be reached" )
@@ -92,8 +92,8 @@ stagehand = Stagehand::Client.new(
9292
9393# Or, configure per-request:
9494stagehand.sessions.start(
95- browserbase_api_key: " <your API key here> " ,
96- browserbase_project_id: " <your project ID here> " ,
95+ browserbase_api_key: " BROWSERBASE_API_KEY " ,
96+ browserbase_project_id: " BROWSERBASE_PROJECT_ID " ,
9797 request_options: {max_retries: 5 }
9898)
9999```
@@ -110,8 +110,8 @@ stagehand = Stagehand::Client.new(
110110
111111# Or, configure per-request:
112112stagehand.sessions.start(
113- browserbase_api_key: " <your API key here> " ,
114- browserbase_project_id: " <your project ID here> " ,
113+ browserbase_api_key: " BROWSERBASE_API_KEY " ,
114+ browserbase_project_id: " BROWSERBASE_PROJECT_ID " ,
115115 request_options: {timeout: 5 }
116116)
117117```
@@ -145,8 +145,8 @@ Note: the `extra_` parameters of the same name overrides the documented paramete
145145``` ruby
146146response =
147147 stagehand.sessions.start(
148- browserbase_api_key: " <your API key here> " ,
149- browserbase_project_id: " <your project ID here> " ,
148+ browserbase_api_key: " BROWSERBASE_API_KEY " ,
149+ browserbase_project_id: " BROWSERBASE_PROJECT_ID " ,
150150 request_options: {
151151 extra_query: {my_query_parameter: value},
152152 extra_body: {my_body_parameter: value},
0 commit comments