Skip to content

Commit 3c73488

Browse files
Merge pull request #4 from kaferi/master
Updated to 18.8
2 parents 00bfcd5 + 67112d6 commit 3c73488

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+7129
-8645
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Add this dependency to your project's POM:
3434
<dependency>
3535
<groupId>com.aspose</groupId>
3636
<artifactId>aspose-cloud-pdf</artifactId>
37-
<version>18.7.0</version>
37+
<version>18.8.0</version>
3838
<scope>compile</scope>
3939
</dependency>
4040
```
@@ -44,7 +44,7 @@ Add this dependency to your project's POM:
4444
Add this dependency to your project's build file:
4545

4646
```groovy
47-
compile "com.aspose:aspose-cloud-pdf:18.7.0"
47+
compile "com.aspose:aspose-cloud-pdf:18.8.0"
4848
```
4949

5050
### Others
@@ -55,7 +55,7 @@ At first generate the JAR by executing:
5555

5656
Then manually install the following JARs:
5757

58-
* target/aspose-cloud-pdf-18.7.0.jar
58+
* target/aspose-cloud-pdf-18.8.0.jar
5959
* target/lib/*.jar
6060

6161
## Getting Started

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ apply plugin: 'idea'
2020
apply plugin: 'eclipse'
2121

2222
group = 'com.aspose'
23-
version = '18.7.0'
23+
version = '18.8.0'
2424

2525
buildscript {
2626
repositories {
@@ -71,7 +71,7 @@ dependencies {
7171
publish {
7272
groupId = 'com.aspose'
7373
artifactId = 'aspose-cloud-pdf'
74-
publishVersion = '18.7.0'
74+
publishVersion = '18.8.0'
7575
desc = 'Aspose.PDF Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.'
7676
licences = ['MIT']
7777
website = 'https://products.aspose.cloud/pdf/cloud'

setup.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"app_key" : "",
3-
"app_sid" : "",
4-
"product_uri" : "https://api-dev.aspose.cloud/v1.1"
2+
"app_key": "",
3+
"app_sid": "",
4+
"product_uri": "https://billing.cloud.saltov.dynabic.com/v2.0"
55
}

src/main/java/com/aspose/asposecloudpdf/ApiClient.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
public class ApiClient {
6464

65-
private String basePath = "https://api.aspose.cloud/v1.1";
65+
private String basePath = "https://api.aspose.cloud/v2.0";
6666
private boolean debugging = false;
6767
private Map<String, String> defaultHeaderMap = new HashMap<String, String>();
6868
private String tempFolderPath = null;
@@ -149,7 +149,7 @@ public String getBasePath() {
149149
/**
150150
* Set base path
151151
*
152-
* @param basePath Base path of the URL (e.g https://api.aspose.cloud/v1.1
152+
* @param basePath Base path of the URL (e.g https://api.aspose.cloud/v2.0
153153
* @return An instance of OkHttpClient
154154
*/
155155
public ApiClient setBasePath(String basePath) {
@@ -1019,7 +1019,7 @@ private void requestToken() throws ApiException
10191019
.addEncoded("client_secret", getAppKey())
10201020
.build();
10211021

1022-
String url = basePath.replace("/v1.1", "") + "/oauth2/token";
1022+
String url = basePath.replace("/v2.0", "") + "/oauth2/token";
10231023
Request request = new Request.Builder()
10241024
.url(url)
10251025
.post(requestBody)
@@ -1048,7 +1048,7 @@ public void refreshToken() throws ApiException
10481048
.addEncoded("refresh_token", this.refreshToken)
10491049
.build();
10501050

1051-
String url = basePath.replace("/v1.1", "") + "/oauth2/token";
1051+
String url = basePath.replace("/v2.0", "") + "/oauth2/token";
10521052
Request request = new Request.Builder()
10531053
.url(url)
10541054
.post(requestBody)

src/main/java/com/aspose/asposecloudpdf/api/PdfApi.java

Lines changed: 5292 additions & 5230 deletions
Large diffs are not rendered by default.

src/main/java/com/aspose/asposecloudpdf/model/AnnotationResponse.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
import java.util.Objects;
2626
import com.aspose.asposecloudpdf.model.Annotation;
27-
import com.aspose.asposecloudpdf.model.HttpStatusCode;
28-
import com.aspose.asposecloudpdf.model.SaaSposeResponse;
27+
import com.aspose.asposecloudpdf.model.AsposeResponse;
2928
import com.google.gson.TypeAdapter;
3029
import com.google.gson.annotations.JsonAdapter;
3130
import com.google.gson.annotations.SerializedName;
@@ -39,7 +38,7 @@
3938
* AnnotationResponse
4039
*/
4140

42-
public class AnnotationResponse extends SaaSposeResponse {
41+
public class AnnotationResponse extends AsposeResponse {
4342
@SerializedName("Annotation")
4443
private Annotation annotation = null;
4544

src/main/java/com/aspose/asposecloudpdf/model/AnnotationsResponse.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424

2525
import java.util.Objects;
2626
import com.aspose.asposecloudpdf.model.Annotations;
27-
import com.aspose.asposecloudpdf.model.HttpStatusCode;
28-
import com.aspose.asposecloudpdf.model.SaaSposeResponse;
27+
import com.aspose.asposecloudpdf.model.AsposeResponse;
2928
import com.google.gson.TypeAdapter;
3029
import com.google.gson.annotations.JsonAdapter;
3130
import com.google.gson.annotations.SerializedName;
@@ -39,7 +38,7 @@
3938
* AnnotationsResponse
4039
*/
4140

42-
public class AnnotationsResponse extends SaaSposeResponse {
41+
public class AnnotationsResponse extends AsposeResponse {
4342
@SerializedName("Annotations")
4443
private Annotations annotations = null;
4544

src/main/java/com/aspose/asposecloudpdf/model/AppendDocument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public AppendDocument document(String document) {
5656
* Document to append (server path).
5757
* @return document
5858
**/
59-
@ApiModelProperty(value = "Document to append (server path).")
59+
@ApiModelProperty(required = true, value = "Document to append (server path).")
6060
public String getDocument() {
6161
return document;
6262
}

src/main/java/com/aspose/asposecloudpdf/model/SaaSposeResponse.java renamed to src/main/java/com/aspose/asposecloudpdf/model/AsposeResponse.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
package com.aspose.asposecloudpdf.model;
2424

2525
import java.util.Objects;
26-
import com.aspose.asposecloudpdf.model.HttpStatusCode;
2726
import com.google.gson.TypeAdapter;
2827
import com.google.gson.annotations.JsonAdapter;
2928
import com.google.gson.annotations.SerializedName;
@@ -39,14 +38,14 @@
3938
@ApiModel(description = "Base class for all responses.")
4039

4140

42-
public class SaaSposeResponse {
41+
public class AsposeResponse {
4342
@SerializedName("Code")
44-
private HttpStatusCode code = null;
43+
private Integer code = null;
4544

4645
@SerializedName("Status")
4746
private String status = null;
4847

49-
public SaaSposeResponse code(HttpStatusCode code) {
48+
public AsposeResponse code(Integer code) {
5049
this.code = code;
5150
return this;
5251
}
@@ -56,15 +55,15 @@ public SaaSposeResponse code(HttpStatusCode code) {
5655
* @return code
5756
**/
5857
@ApiModelProperty(required = true, value = "Response status code.")
59-
public HttpStatusCode getCode() {
58+
public Integer getCode() {
6059
return code;
6160
}
6261

63-
public void setCode(HttpStatusCode code) {
62+
public void setCode(Integer code) {
6463
this.code = code;
6564
}
6665

67-
public SaaSposeResponse status(String status) {
66+
public AsposeResponse status(String status) {
6867
this.status = status;
6968
return this;
7069
}
@@ -91,9 +90,9 @@ public boolean equals(java.lang.Object o) {
9190
if (o == null || getClass() != o.getClass()) {
9291
return false;
9392
}
94-
SaaSposeResponse saaSposeResponse = (SaaSposeResponse) o;
95-
return Objects.equals(this.code, saaSposeResponse.code) &&
96-
Objects.equals(this.status, saaSposeResponse.status);
93+
AsposeResponse asposeResponse = (AsposeResponse) o;
94+
return Objects.equals(this.code, asposeResponse.code) &&
95+
Objects.equals(this.status, asposeResponse.status);
9796
}
9897

9998
@Override
@@ -105,7 +104,7 @@ public int hashCode() {
105104
@Override
106105
public String toString() {
107106
StringBuilder sb = new StringBuilder();
108-
sb.append("class SaaSposeResponse {\n");
107+
sb.append("class AsposeResponse {\n");
109108

110109
sb.append(" code: ").append(toIndentedString(code)).append("\n");
111110
sb.append(" status: ").append(toIndentedString(status)).append("\n");

src/main/java/com/aspose/asposecloudpdf/model/AttachmentResponse.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
package com.aspose.asposecloudpdf.model;
2424

2525
import java.util.Objects;
26+
import com.aspose.asposecloudpdf.model.AsposeResponse;
2627
import com.aspose.asposecloudpdf.model.Attachment;
27-
import com.aspose.asposecloudpdf.model.HttpStatusCode;
28-
import com.aspose.asposecloudpdf.model.SaaSposeResponse;
2928
import com.google.gson.TypeAdapter;
3029
import com.google.gson.annotations.JsonAdapter;
3130
import com.google.gson.annotations.SerializedName;
@@ -39,7 +38,7 @@
3938
* AttachmentResponse
4039
*/
4140

42-
public class AttachmentResponse extends SaaSposeResponse {
41+
public class AttachmentResponse extends AsposeResponse {
4342
@SerializedName("Attachment")
4443
private Attachment attachment = null;
4544

0 commit comments

Comments
 (0)