All URIs are relative to https://api.imager200.io
InfoResponse resizeAsyncGet(url, height, width, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
String url = "url_example" ; // String | image url, supported formats jpeg,png,bmp,gif
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
InfoResponse result = apiInstance .resizeAsyncGet (url , height , width , resamplingAlgorithm );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeAsyncGet" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
height
Integer
width
Integer
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
InfoResponse
ApiKeyAuth
HTTP request headers
Content-Type : Not defined
Accept : application/json
Status code
Description
Response headers
201
Created
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
resizeAsyncGetWithHttpInfo
ApiResponse resizeAsyncGet resizeAsyncGetWithHttpInfo(url, height, width, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .ApiResponse ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
String url = "url_example" ; // String | image url, supported formats jpeg,png,bmp,gif
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
ApiResponse <InfoResponse > response = apiInstance .resizeAsyncGetWithHttpInfo (url , height , width , resamplingAlgorithm );
System .out .println ("Status code: " + response .getStatusCode ());
System .out .println ("Response headers: " + response .getHeaders ());
System .out .println ("Response body: " + response .getData ());
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeAsyncGet" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
System .err .println ("Reason: " + e .getResponseBody ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
height
Integer
width
Integer
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
ApiResponse<InfoResponse >
ApiKeyAuth
HTTP request headers
Content-Type : Not defined
Accept : application/json
Status code
Description
Response headers
201
Created
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
InfoResponse resizeAsyncPost(height, width, body, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
File body = new File ("/path/to/file" ); // File | image binary data, acceptable formats: jpeg,png,bmp,gif
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
InfoResponse result = apiInstance .resizeAsyncPost (height , width , body , resamplingAlgorithm );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeAsyncPost" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
height
Integer
width
Integer
body
File
image binary data, acceptable formats: jpeg,png,bmp,gif
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
InfoResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/octet-stream
Accept : application/json
Status code
Description
Response headers
201
Created
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
resizeAsyncPostWithHttpInfo
ApiResponse resizeAsyncPost resizeAsyncPostWithHttpInfo(height, width, body, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .ApiResponse ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
File body = new File ("/path/to/file" ); // File | image binary data, acceptable formats: jpeg,png,bmp,gif
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
ApiResponse <InfoResponse > response = apiInstance .resizeAsyncPostWithHttpInfo (height , width , body , resamplingAlgorithm );
System .out .println ("Status code: " + response .getStatusCode ());
System .out .println ("Response headers: " + response .getHeaders ());
System .out .println ("Response body: " + response .getData ());
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeAsyncPost" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
System .err .println ("Reason: " + e .getResponseBody ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
height
Integer
width
Integer
body
File
image binary data, acceptable formats: jpeg,png,bmp,gif
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
ApiResponse<InfoResponse >
ApiKeyAuth
HTTP request headers
Content-Type : application/octet-stream
Accept : application/json
Status code
Description
Response headers
201
Created
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
File resizeSyncGet(url, height, width, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
String url = "url_example" ; // String | image url, supported formats jpeg,png,bmp,gif
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
File result = apiInstance .resizeSyncGet (url , height , width , resamplingAlgorithm );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeSyncGet" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
height
Integer
width
Integer
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
File
ApiKeyAuth
HTTP request headers
Content-Type : Not defined
Accept : image/bmp, image/gif, image/jpeg, image/png, application/json
Status code
Description
Response headers
200
response contains the image file
-
400
Bad Request
-
resizeSyncGetWithHttpInfo
ApiResponse resizeSyncGet resizeSyncGetWithHttpInfo(url, height, width, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .ApiResponse ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
String url = "url_example" ; // String | image url, supported formats jpeg,png,bmp,gif
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
ApiResponse <File > response = apiInstance .resizeSyncGetWithHttpInfo (url , height , width , resamplingAlgorithm );
System .out .println ("Status code: " + response .getStatusCode ());
System .out .println ("Response headers: " + response .getHeaders ());
System .out .println ("Response body: " + response .getData ());
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeSyncGet" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
System .err .println ("Reason: " + e .getResponseBody ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
height
Integer
width
Integer
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
ApiResponse<File >
ApiKeyAuth
HTTP request headers
Content-Type : Not defined
Accept : image/bmp, image/gif, image/jpeg, image/png, application/json
Status code
Description
Response headers
200
response contains the image file
-
400
Bad Request
-
File resizeSyncPost(height, width, body, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
File body = new File ("/path/to/file" ); // File | image binary data, acceptable formats: jpeg,png,bmp,gif
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
File result = apiInstance .resizeSyncPost (height , width , body , resamplingAlgorithm );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeSyncPost" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
height
Integer
width
Integer
body
File
image binary data, acceptable formats: jpeg,png,bmp,gif
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
File
ApiKeyAuth
HTTP request headers
Content-Type : application/octet-stream
Accept : image/bmp, image/gif, image/jpeg, image/png, application/json
Status code
Description
Response headers
200
response contains the image file
-
400
Bad Request
-
resizeSyncPostWithHttpInfo
ApiResponse resizeSyncPost resizeSyncPostWithHttpInfo(height, width, body, resamplingAlgorithm)
// Import classes:
import io .imager200 .ApiClient ;
import io .imager200 .ApiException ;
import io .imager200 .ApiResponse ;
import io .imager200 .Configuration ;
import io .imager200 .auth .*;
import io .imager200 .models .*;
import io .imager200 .client .ResizeApi ;
public class Example {
public static void main (String [] args ) {
ApiClient defaultClient = Configuration .getDefaultApiClient ();
defaultClient .setBasePath ("https://api.imager200.io" );
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth ) defaultClient .getAuthentication ("ApiKeyAuth" );
ApiKeyAuth .setApiKey ("YOUR API KEY" );
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
ResizeApi apiInstance = new ResizeApi (defaultClient );
Integer height = 56 ; // Integer |
Integer width = 56 ; // Integer |
File body = new File ("/path/to/file" ); // File | image binary data, acceptable formats: jpeg,png,bmp,gif
String resamplingAlgorithm = "lanczos" ; // String | It allows changing the resampling algorithm used when resizing (resampling) the image.
try {
ApiResponse <File > response = apiInstance .resizeSyncPostWithHttpInfo (height , width , body , resamplingAlgorithm );
System .out .println ("Status code: " + response .getStatusCode ());
System .out .println ("Response headers: " + response .getHeaders ());
System .out .println ("Response body: " + response .getData ());
} catch (ApiException e ) {
System .err .println ("Exception when calling ResizeApi#resizeSyncPost" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
System .err .println ("Reason: " + e .getResponseBody ());
e .printStackTrace ();
}
}
}
Name
Type
Description
Notes
height
Integer
width
Integer
body
File
image binary data, acceptable formats: jpeg,png,bmp,gif
resamplingAlgorithm
String
It allows changing the resampling algorithm used when resizing (resampling) the image.
[optional] [default to lanczos] [enum: lanczos, linear, box, nearest_neighbor, catmull_rom]
ApiResponse<File >
ApiKeyAuth
HTTP request headers
Content-Type : application/octet-stream
Accept : image/bmp, image/gif, image/jpeg, image/png, application/json
Status code
Description
Response headers
200
response contains the image file
-
400
Bad Request
-