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 @@ -10,9 +10,9 @@
"base-exception-class-name": "CloudPDFException",
"base-api-exception-class-name": "CloudPDFApiException"
},
"originGitCommit": "cfc415f2b7501e153280b32bcd6aa4af1353e860",
"originGitCommit": "33003769980b6b0155f602109c8e34cc0a2b432d",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "3.0.0-alpha.1",
"requestedVersion": "3.0.0-alpha.4",
"ciProvider": "github"
}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Instantiate and use the client with the following:
package com.example.usage;

import com.cloudpdf.CloudPDFClient;
import com.cloudpdf.resources.tenants.requests.TenantsCreateRequest;
import com.cloudpdf.resources.shares.requests.SharesExchangeRequest;

public class Example {
public static void main(String[] args) {
Expand All @@ -39,10 +39,10 @@ public class Example {
.token("<token>")
.build();

client.tenants().create(
TenantsCreateRequest
client.shares().exchange(
SharesExchangeRequest
.builder()
.id("id")
.shareToken("shareToken")
.build()
);
}
Expand Down Expand Up @@ -70,7 +70,7 @@ When the API returns a non-success status code (4xx or 5xx response), an API exc
import com.cloudpdf.core.CloudPDFApiException;

try{
client.tenants().create(...);
client.shares().exchange(...);
} catch (CloudPDFApiException e){
// Do something with the API exception...
}
Expand Down Expand Up @@ -142,7 +142,7 @@ CloudPDFClient client = CloudPDFClient
.build();

// Request level
client.tenants().create(
client.shares().exchange(
...,
RequestOptions
.builder()
Expand All @@ -168,7 +168,7 @@ CloudPDFClient client = CloudPDFClient
;

// Request level
client.tenants().create(
client.shares().exchange(
...,
RequestOptions
.builder()
Expand All @@ -184,7 +184,7 @@ The `withRawResponse()` method returns a raw client that wraps all responses wit
(A normal client's `response` is identical to a raw client's `response.body()`.)

```java
CloudPDFClientHttpResponse response = client.tenants().withRawResponse().create(...);
CloudPDFClientHttpResponse response = client.shares().withRawResponse().exchange(...);

System.out.println(response.body());
System.out.println(response.headers().get("X-My-Header"));
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ java {

group = 'com.cloudpdf'

version = '3.0.0-alpha.1'
version = '3.0.0-alpha.4'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand All @@ -73,7 +73,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.cloudpdf'
artifactId = 'sdk'
version = '3.0.0-alpha.1'
version = '3.0.0-alpha.4'
from components.java
pom {
name = 'CloudPDF'
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": "java",
"canonicalVersion": "3.0.0-next.1",
"sdkVersion": "3.0.0-alpha.1",
"canonicalVersion": "3.0.0-next.4",
"sdkVersion": "3.0.0-alpha.4",
"source": {
"repository": "embedpdf/embed-pdf-viewer",
"openapi": "cloudpdf/contract/openapi.json",
"openapiSha256": "6858ce7912e9063d8fb171ade95fc473db01c5971a3af241a612dda79cc05100",
"gitCommit": "cfc415f2b7501e153280b32bcd6aa4af1353e860",
"openapiSha256": "901c23684e7c9e33b5248942779b13537764a1d9065db815dd8aedb592c5ec59",
"gitCommit": "33003769980b6b0155f602109c8e34cc0a2b432d",
"gitCommitIsDirty": false
},
"fern": {
Expand Down
Loading
Loading