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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"cliVersion": "5.91.0",
"generatorName": "fernapi/fern-ruby-sdk",
"generatorVersion": "1.21.1",
"generatorVersion": "1.28.1",
"generatorConfig": {
"moduleName": "CloudPDF"
},
"originGitCommit": "b7dddfba5011349a40db7878b5cbc8685b2d42cf",
"originGitCommit": "c6f87eecf9636e7ef367946a7fd7f3729401ce90",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0.alpha.14",
"requestedVersion": "3.0.0.alpha.15",
"ciProvider": "github"
}
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ require "cloudpdf"

client = CloudPDF::Client.new(token: "<token>")

client.shares.exchange(share_token: "shareToken")
client.doc.changes(
doc_id: "docId",
layer_name: "layerName",
changes: [{
op_id: "opId"
}]
)
```

## Environments
Expand Down Expand Up @@ -58,7 +64,7 @@ client = CloudPDF::Client.new(
)

begin
result = client.shares.exchange
result = client.doc.changes
rescue CloudPDF::Errors::TimeoutError
puts "API didn't respond before our timeout elapsed"
rescue CloudPDF::Errors::ServiceUnavailableError
Expand Down Expand Up @@ -108,7 +114,7 @@ The SDK defaults to a 60 second timeout. Use the `timeout` option to configure t
```ruby
require "cloudpdf"

response = client.shares.exchange(
response = client.doc.changes(
...,
timeout: 30 # 30 second timeout
)
Expand All @@ -121,7 +127,7 @@ If you would like to send additional headers as part of the request, use the `ad
```ruby
require "cloudpdf"

response = client.shares.exchange(
response = client.doc.changes(
...,
request_options: {
additional_headers: {
Expand All @@ -138,7 +144,7 @@ If you would like to send additional query parameters as part of the request, us
```ruby
require "cloudpdf"

response = client.shares.exchange(
response = client.doc.changes(
...,
request_options: {
additional_query_parameters: {
Expand Down
10 changes: 5 additions & 5 deletions cloudpdf-generation.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"language": "ruby",
"canonicalVersion": "3.0.0-next.14",
"sdkVersion": "3.0.0.alpha.14",
"canonicalVersion": "3.0.0-next.15",
"sdkVersion": "3.0.0.alpha.15",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "188ea071e3534971638ee3d1fb1f19c77f36e04b2a783f5eefdbe67326527ea6",
"gitCommit": "b7dddfba5011349a40db7878b5cbc8685b2d42cf",
"openapiSha256": "9d70deca638cc7a80b0e670ec47fc45710d6603eb8f493d5fac95a38d7e5f8b3",
"gitCommit": "c6f87eecf9636e7ef367946a7fd7f3729401ce90",
"gitCommitIsDirty": false
},
"fern": {
"cliVersion": "5.91.0",
"generatorName": "fernapi/fern-ruby-sdk",
"generatorVersion": "1.21.1"
"generatorVersion": "1.28.1"
}
}
2 changes: 1 addition & 1 deletion lib/CloudPDF/deployment/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def license_status(request_options: {}, **_params)
end
code = response.code.to_i
if code.between?(200, 299)
CloudPDF::Types::DeploymentLicenseStatusResponse.load(response.body)
(response.body.to_s.empty? ? nil : CloudPDF::Types::DeploymentLicenseStatusResponse.load(response.body))
else
error_class = CloudPDF::Errors::ResponseError.subclass_for_code(code)
raise error_class.new(response.body, code: code)
Expand Down
Loading
Loading