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 .spec-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8f933ed904093dc331cc8d2a8bc9c6cf4ac5e03b
fc36985f78cde936ebe11de2da4310102b7a6c80
2 changes: 1 addition & 1 deletion src/onepin/.fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
]
},
"originGitCommit": "aa97888912968233d7b8278a5e028789d15ef281",
"originGitCommit": "76a0b71893b02defdab9fb41fea3c42d842d4578",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"ciProvider": "github"
Expand Down
20 changes: 14 additions & 6 deletions src/onepin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ client = OnePinClient(
token="<token>",
)

client.webhooks.clerk_webhook()
client.dictionary.create_dictionary_entry(
word="word",
method="spelled",
language="language",
)
```

## Environments
Expand Down Expand Up @@ -73,7 +77,11 @@ client = AsyncOnePinClient(


async def main() -> None:
await client.webhooks.clerk_webhook()
await client.dictionary.create_dictionary_entry(
word="word",
method="spelled",
language="language",
)


asyncio.run(main())
Expand All @@ -88,7 +96,7 @@ will be thrown.
from onepin.core.api_error import ApiError

try:
client.webhooks.clerk_webhook()
client.dictionary.create_dictionary_entry(...)
except ApiError as e:
print(e.status_code)
print(e.body)
Expand Down Expand Up @@ -128,7 +136,7 @@ The `.with_raw_response` property returns a "raw" client that can be used to acc
from onepin import OnePinClient

client = OnePinClient(...)
response = client.webhooks.with_raw_response.clerk_webhook()
response = client.dictionary.with_raw_response.create_dictionary_entry(...)
print(response.headers) # access the response headers
print(response.status_code) # access the response status code
print(response.data) # access the underlying object
Expand Down Expand Up @@ -159,7 +167,7 @@ Which status codes are retried depends on the `retryStatusCodes` generator confi
Use the `max_retries` request option to configure this behavior.

```python
client.webhooks.clerk_webhook(request_options={
client.dictionary.create_dictionary_entry(..., request_options={
"max_retries": 1
})
```
Expand All @@ -174,7 +182,7 @@ from onepin import OnePinClient
client = OnePinClient(..., timeout=20.0)

# Override timeout for a specific method
client.webhooks.clerk_webhook(request_options={
client.dictionary.create_dictionary_entry(..., request_options={
"timeout_in_seconds": 1
})
```
Expand Down
Loading
Loading