@@ -29,16 +29,16 @@ from runloop_api_client import Runloop
2929
3030client = Runloop(
3131 # This is the default and can be omitted
32- bearer_token = os.environ.get(" RUNLOOP_BEARER_TOKEN " ),
32+ bearer_token = os.environ.get(" RUNLOOP_API_KEY " ),
3333)
3434
35- blueprint_preview_view = client.blueprints.create()
36- print (blueprint_preview_view.dockerfile )
35+ blueprint_view = client.blueprints.create()
36+ print (blueprint_view.id )
3737```
3838
3939While you can provide a ` bearer_token ` keyword argument,
4040we recommend using [ python-dotenv] ( https://pypi.org/project/python-dotenv/ )
41- to add ` RUNLOOP_BEARER_TOKEN ="My Bearer Token"` to your ` .env ` file
41+ to add ` RUNLOOP_API_KEY ="My Bearer Token"` to your ` .env ` file
4242so that your Bearer Token is not stored in source control.
4343
4444## Async usage
@@ -52,13 +52,13 @@ from runloop_api_client import AsyncRunloop
5252
5353client = AsyncRunloop(
5454 # This is the default and can be omitted
55- bearer_token = os.environ.get(" RUNLOOP_BEARER_TOKEN " ),
55+ bearer_token = os.environ.get(" RUNLOOP_API_KEY " ),
5656)
5757
5858
5959async def main () -> None :
60- blueprint_preview_view = await client.blueprints.create()
61- print (blueprint_preview_view.dockerfile )
60+ blueprint_view = await client.blueprints.create()
61+ print (blueprint_view.id )
6262
6363
6464asyncio.run(main())
@@ -200,7 +200,7 @@ response = client.blueprints.with_raw_response.create()
200200print (response.headers.get(' X-My-Header' ))
201201
202202blueprint = response.parse() # get the object that `blueprints.create()` would have returned
203- print (blueprint.dockerfile )
203+ print (blueprint.id )
204204```
205205
206206These methods return an [ ` APIResponse ` ] ( https://github.com/runloopai/api-client-python/tree/main/src/runloop_api_client/_response.py ) object.
0 commit comments