Skip to content

feat(api): manual updates #569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025
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
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_model = client.customers.create(
customer = client.customers.create(
email="[email protected]",
name="My Customer",
)
print(customer_model.id)
print(customer.id)
```

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


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


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

client = Orb()

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

## Handling errors
Expand Down
331 changes: 155 additions & 176 deletions api.md

Large diffs are not rendered by default.

Loading