File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,12 @@ pip install orb-billing
21
21
The full API of this library can be found in [ api.md] ( https://www.github.com/orbcorp/orb-python/blob/main/api.md ) .
22
22
23
23
``` python
24
+ import os
24
25
from orb import Orb
25
26
26
27
client = Orb(
27
- # defaults to os.environ.get("ORB_API_KEY")
28
- api_key = " My API Key " ,
28
+ # This is the default and can be omitted
29
+ api_key = os.environ.get( " ORB_API_KEY " ) ,
29
30
)
30
31
31
32
customer = client.customers.create(
@@ -45,12 +46,13 @@ so that your API Key is not stored in source control.
45
46
Simply import ` AsyncOrb ` instead of ` Orb ` and use ` await ` with each API call:
46
47
47
48
``` python
49
+ import os
48
50
import asyncio
49
51
from orb import AsyncOrb
50
52
51
53
client = AsyncOrb(
52
- # defaults to os.environ.get("ORB_API_KEY")
53
- api_key = " My API Key " ,
54
+ # This is the default and can be omitted
55
+ api_key = os.environ.get( " ORB_API_KEY " ) ,
54
56
)
55
57
56
58
You can’t perform that action at this time.
0 commit comments