Skip to content
Open
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
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"client_class_name": "CloudPDFClient",
"environment_class_name": "CloudPDFEnvironment"
},
"originGitCommit": "a0adb9e77ef16feaef2358d71b247b4f5a98fd23",
"originGitCommit": "627dce09ca948cde662d6e23a3dc1a049b6440d7",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0a1",
"requestedVersion": "3.0.0a2",
"ciProvider": "github"
}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ client = CloudPDFClient(
base_url="https://yourhost.com/path/to/api",
)

client.tenants.create(
id="id",
client.shares.exchange(
share_token="shareToken",
)
```

Expand All @@ -62,8 +62,8 @@ client = AsyncCloudPDFClient(


async def main() -> None:
await client.tenants.create(
id="id",
await client.shares.exchange(
share_token="shareToken",
)


Expand All @@ -79,7 +79,7 @@ will be thrown.
from cloudpdf.core.api_error import ApiError

try:
client.tenants.create(...)
client.shares.exchange(...)
except ApiError as e:
print(e.status_code)
print(e.body)
Expand All @@ -96,7 +96,7 @@ The `.with_raw_response` property returns a "raw" client that can be used to acc
from cloudpdf import CloudPDFClient

client = CloudPDFClient(...)
response = client.tenants.with_raw_response.create(...)
response = client.shares.with_raw_response.exchange(...)
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 @@ -127,7 +127,7 @@ Which status codes are retried depends on the `retryStatusCodes` generator confi
Use the `max_retries` request option to configure this behavior.

```python
client.tenants.create(..., request_options={
client.shares.exchange(..., request_options={
"max_retries": 1
})
```
Expand All @@ -142,7 +142,7 @@ from cloudpdf import CloudPDFClient
client = CloudPDFClient(..., timeout=20.0)

# Override timeout for a specific method
client.tenants.create(..., request_options={
client.shares.exchange(..., request_options={
"timeout": 1
})
```
Expand Down
8 changes: 4 additions & 4 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"language": "python",
"canonicalVersion": "3.0.0-next.1",
"sdkVersion": "3.0.0a1",
"canonicalVersion": "3.0.0-next.2",
"sdkVersion": "3.0.0a2",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "6858ce7912e9063d8fb171ade95fc473db01c5971a3af241a612dda79cc05100",
"gitCommit": "a0adb9e77ef16feaef2358d71b247b4f5a98fd23",
"openapiSha256": "afef16ae2ee6de353cf141d766e4815df5cee075c906b34c728c1176bc10ddb1",
"gitCommit": "627dce09ca948cde662d6e23a3dc1a049b6440d7",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "cloudpdf"
version = "3.0.0a1"
version = "3.0.0a2"
description = "The official Python SDK for the CloudPDF API."
readme = "README.md"
authors = ["CloudPDF <hello@cloudpdf.com>"]
Expand Down
Loading
Loading