@@ -56,7 +56,7 @@ public class ApiClient {
5656 private String apiVersion = "v4.0" ;
5757 private String baseUrl = "https://api.aspose.cloud" ;
5858 private String basePath = baseUrl + "/" + apiVersion ;
59- private String clientVersion = "20.10 " ;
59+ private String clientVersion = "20.11 " ;
6060 private boolean debugging = false ;
6161 private Map <String , String > defaultHeaderMap = new HashMap <String , String >();
6262 private String tempFolderPath = null ;
@@ -70,13 +70,13 @@ public class ApiClient {
7070
7171 private String accessToken ;
7272 private String refreshToken ;
73- private String appKey ;
74- private String appSid ;
73+ private String ClientSecret ;
74+ private String clientId ;
7575
76- public ApiClient (String appSid , String appKey , String baseUrl ) {
76+ public ApiClient (String clientId , String clientSecret , String baseUrl ) {
7777 this ();
78- this .appSid = appSid ;
79- this .appKey = appKey ;
78+ this .clientId = clientId ;
79+ this .ClientSecret = clientSecret ;
8080 if (baseUrl != null ) {
8181 this .setBaseUrl (baseUrl );
8282 }
@@ -92,7 +92,7 @@ public ApiClient() {
9292 json = new JSON ();
9393
9494 // Set default User-Agent.
95- setUserAgent ("Swagger-Codegen/1.0.0/java" );
95+ setUserAgent ("Swagger-Codegen/1.0.0/java" );
9696 addDefaultHeader ("x-aspose-client" , "java sdk" );
9797 addDefaultHeader ("x-aspose-client-version" , clientVersion );
9898 setConnectTimeout (5 * 60 * 1000 );
@@ -102,7 +102,7 @@ public ApiClient() {
102102 /**
103103 * Get NotAuth http code
104104 *
105- * @return App Key
105+ * @return NotAuth http code
106106 */
107107 public Integer getNotAuthCode () {
108108 return notAuthCode ;
@@ -111,49 +111,49 @@ public Integer getNotAuthCode() {
111111 /**
112112 * Get BadRequest http code
113113 *
114- * @return App Key
114+ * @return BadRequest http code
115115 */
116116 public Integer getBadRequestCode () {
117117 return badRequestCode ;
118118 }
119119
120- /**
121- * Get App Key
120+ /**
121+ * Get client ID
122122 *
123- * @return App Key
123+ * @return client ID
124124 */
125- public String getAppKey () {
126- return appKey ;
125+ public String getClientId () {
126+ return clientId ;
127127 }
128128
129129 /**
130- * Set App Key
130+ * Set client ID
131131 *
132- * @param appKey App Key
132+ * @param clientId client ID
133133 * @return An instance of OkHttpClient
134134 */
135- public ApiClient setAppKey (String appKey ) {
136- this .appKey = appKey ;
135+ public ApiClient setClientId (String clientId ) {
136+ this .clientId = clientId ;
137137 return this ;
138138 }
139139
140- /**
141- * Get App Sid
140+ /**
141+ * Get client secret
142142 *
143- * @return App Sid
143+ * @return client secret
144144 */
145- public String getAppSid () {
146- return appSid ;
145+ public String getClientSecret () {
146+ return ClientSecret ;
147147 }
148148
149149 /**
150- * Set App Sid
150+ * Set client secret
151151 *
152- * @param appSid App Sid
152+ * @param clientSecret client secret
153153 * @return An instance of OkHttpClient
154154 */
155- public ApiClient setAppSid (String appSid ) {
156- this .appSid = appSid ;
155+ public ApiClient setClientSecret (String clientSecret ) {
156+ this .ClientSecret = clientSecret ;
157157 return this ;
158158 }
159159
@@ -1125,8 +1125,8 @@ public void requestToken() throws ApiException {
11251125 try {
11261126 RequestBody requestBody = new FormEncodingBuilder ()
11271127 .addEncoded ("grant_type" , "client_credentials" )
1128- .addEncoded ("client_id" , getAppSid ())
1129- .addEncoded ("client_secret" , getAppKey ())
1128+ .addEncoded ("client_id" , getClientId ())
1129+ .addEncoded ("client_secret" , getClientSecret ())
11301130 .build ();
11311131
11321132 String url = baseUrl + "/connect/token" ;
0 commit comments