You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
InfoResponseresult = apiInstance.rotateAsyncGet(url, angle, backgroundColor);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateAsyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
angle
BigDecimal
rotation angle in degrees
[optional] [default to 90]
backgroundColor
String
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
ApiResponse<InfoResponse> response = apiInstance.rotateAsyncGetWithHttpInfo(url, angle, backgroundColor);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateAsyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
angle
BigDecimal
rotation angle in degrees
[optional] [default to 90]
backgroundColor
String
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
InfoResponseresult = apiInstance.rotateAsyncPost(body, angle, backgroundColor);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateAsyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
ApiResponse<InfoResponse> response = apiInstance.rotateAsyncPostWithHttpInfo(body, angle, backgroundColor);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateAsyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
* Location - the temporary url of an image in case a post operation id is not provided
400
Bad Request
-
rotateSyncGet
File rotateSyncGet(url, angle, backgroundColor)
Example
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
Fileresult = apiInstance.rotateSyncGet(url, angle, backgroundColor);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateSyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
angle
BigDecimal
rotation angle in degrees
[optional] [default to 90]
backgroundColor
String
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Stringurl = "url_example"; // String | image url, supported formats jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
ApiResponse<File> response = apiInstance.rotateSyncGetWithHttpInfo(url, angle, backgroundColor);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateSyncGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Parameters
Name
Type
Description
Notes
url
String
image url, supported formats jpeg,png,bmp,gif
angle
BigDecimal
rotation angle in degrees
[optional] [default to 90]
backgroundColor
String
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
Fileresult = apiInstance.rotateSyncPost(body, angle, backgroundColor);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateSyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.
// Import classes:importio.imager200.ApiClient;
importio.imager200.ApiException;
importio.imager200.ApiResponse;
importio.imager200.Configuration;
importio.imager200.auth.*;
importio.imager200.models.*;
importio.imager200.client.RotateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.imager200.io");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (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");RotateApiapiInstance = newRotateApi(defaultClient);
Filebody = newFile("/path/to/file"); // File | image binary data, acceptable formats: jpeg,png,bmp,gifBigDecimalangle = newBigDecimal("90"); // BigDecimal | rotation angle in degreesStringbackgroundColor = "white"; // String | the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified [here](https://www.w3schools.com/colors/colors_names.asp)) or hexadecimal code.try {
ApiResponse<File> response = apiInstance.rotateSyncPostWithHttpInfo(body, angle, backgroundColor);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiExceptione) {
System.err.println("Exception when calling RotateApi#rotateSyncPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
the color that should be used to fill the empty surfaces after rotating the image. Must be a valid color name (supported names are specified here) or hexadecimal code.