Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 103
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-c8fc7d0bf70bf7ed91a141f346a02929e4d25a6fac7b59f58b68136ed6ff024f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-48084a007f009b4358484f09a3a7b74a990c402669f9d15adfbb60e4f835f951.yml
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ client = Orb(
api_key=os.environ.get("ORB_API_KEY"), # This is the default and can be omitted
)

customer = client.customers.create(
customer_model = client.customers.create(
email="[email protected]",
name="My Customer",
)
print(customer.id)
print(customer_model.id)
```

While you can provide an `api_key` keyword argument,
Expand All @@ -56,11 +56,11 @@ client = AsyncOrb(


async def main() -> None:
customer = await client.customers.create(
customer_model = await client.customers.create(
email="[email protected]",
name="My Customer",
)
print(customer.id)
print(customer_model.id)


asyncio.run(main())
Expand Down Expand Up @@ -151,7 +151,7 @@ from orb import Orb

client = Orb()

customer = client.customers.create(
customer_model = client.customers.create(
email="[email protected]",
name="My Customer",
billing_address={
Expand All @@ -160,7 +160,7 @@ customer = client.customers.create(
"line1": "123 Example Street",
},
)
print(customer.id)
print(customer_model.id)
```

## Handling errors
Expand Down
341 changes: 186 additions & 155 deletions api.md

Large diffs are not rendered by default.

Loading