cloudmersive-image-recognition-api-client 1.4.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- metadata +3 -145
- data/Gemfile +0 -7
- data/README.md +0 -184
- data/Rakefile +0 -8
- data/cloudmersive-image-recognition-api-client.gemspec +0 -45
- data/docs/AgeDetectionResult.md +0 -10
- data/docs/ArtisticApi.md +0 -66
- data/docs/ColorResult.md +0 -10
- data/docs/ConvertApi.md +0 -396
- data/docs/DetectedLicensePlate.md +0 -14
- data/docs/DetectedObject.md +0 -13
- data/docs/DominantColorResult.md +0 -9
- data/docs/DrawPolygonInstance.md +0 -11
- data/docs/DrawPolygonRequest.md +0 -10
- data/docs/DrawRectangleInstance.md +0 -14
- data/docs/DrawRectangleRequest.md +0 -10
- data/docs/DrawTextInstance.md +0 -15
- data/docs/DrawTextRequest.md +0 -10
- data/docs/EditApi.md +0 -704
- data/docs/Face.md +0 -11
- data/docs/FaceApi.md +0 -396
- data/docs/FaceCompareResponse.md +0 -11
- data/docs/FaceLocateResponse.md +0 -11
- data/docs/FaceLocateWithLandmarksResponse.md +0 -11
- data/docs/FaceMatch.md +0 -13
- data/docs/FacePoint.md +0 -9
- data/docs/FaceWithLandmarks.md +0 -20
- data/docs/FilterApi.md +0 -478
- data/docs/FindSymbolResult.md +0 -13
- data/docs/FineTextDetectionResult.md +0 -10
- data/docs/FineTextItem.md +0 -18
- data/docs/GenderDetectionResult.md +0 -10
- data/docs/ImageDescriptionResponse.md +0 -11
- data/docs/ImageMetadata.md +0 -17
- data/docs/ImageMetadataExifValue.md +0 -10
- data/docs/InfoApi.md +0 -118
- data/docs/NsfwApi.md +0 -63
- data/docs/NsfwResult.md +0 -10
- data/docs/ObjectDetectionResult.md +0 -10
- data/docs/PersonWithAge.md +0 -11
- data/docs/PersonWithGender.md +0 -10
- data/docs/PolygonPoint.md +0 -9
- data/docs/RecognitionOutcome.md +0 -9
- data/docs/RecognizeApi.md +0 -455
- data/docs/ResizeApi.md +0 -130
- data/docs/TextDetectionResult.md +0 -10
- data/docs/TextItem.md +0 -11
- data/docs/VehicleLicensePlateDetectionResult.md +0 -10
- data/git_push.sh +0 -55
- data/lib/cloudmersive-image-recognition-api-client.rb +0 -82
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +0 -85
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +0 -421
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +0 -765
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +0 -422
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +0 -533
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +0 -135
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +0 -79
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +0 -481
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +0 -159
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +0 -201
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +0 -259
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +0 -327
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +0 -289
- data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +0 -281
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +0 -218
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/version.rb +0 -15
- data/spec/api/artistic_api_spec.rb +0 -48
- data/spec/api/convert_api_spec.rb +0 -120
- data/spec/api/edit_api_spec.rb +0 -191
- data/spec/api/face_api_spec.rb +0 -120
- data/spec/api/filter_api_spec.rb +0 -141
- data/spec/api/info_api_spec.rb +0 -59
- data/spec/api/nsfw_api_spec.rb +0 -47
- data/spec/api/recognize_api_spec.rb +0 -133
- data/spec/api/resize_api_spec.rb +0 -63
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/age_detection_result_spec.rb +0 -54
- data/spec/models/color_result_spec.rb +0 -54
- data/spec/models/detected_license_plate_spec.rb +0 -78
- data/spec/models/detected_object_spec.rb +0 -72
- data/spec/models/dominant_color_result_spec.rb +0 -48
- data/spec/models/draw_polygon_instance_spec.rb +0 -60
- data/spec/models/draw_polygon_request_spec.rb +0 -54
- data/spec/models/draw_rectangle_instance_spec.rb +0 -78
- data/spec/models/draw_rectangle_request_spec.rb +0 -54
- data/spec/models/draw_text_instance_spec.rb +0 -84
- data/spec/models/draw_text_request_spec.rb +0 -54
- data/spec/models/face_compare_response_spec.rb +0 -60
- data/spec/models/face_locate_response_spec.rb +0 -60
- data/spec/models/face_locate_with_landmarks_response_spec.rb +0 -60
- data/spec/models/face_match_spec.rb +0 -72
- data/spec/models/face_point_spec.rb +0 -48
- data/spec/models/face_spec.rb +0 -60
- data/spec/models/face_with_landmarks_spec.rb +0 -114
- data/spec/models/find_symbol_result_spec.rb +0 -72
- data/spec/models/fine_text_detection_result_spec.rb +0 -54
- data/spec/models/fine_text_item_spec.rb +0 -102
- data/spec/models/gender_detection_result_spec.rb +0 -54
- data/spec/models/image_description_response_spec.rb +0 -60
- data/spec/models/image_metadata_exif_value_spec.rb +0 -54
- data/spec/models/image_metadata_spec.rb +0 -96
- data/spec/models/nsfw_result_spec.rb +0 -54
- data/spec/models/object_detection_result_spec.rb +0 -54
- data/spec/models/person_with_age_spec.rb +0 -60
- data/spec/models/person_with_gender_spec.rb +0 -54
- data/spec/models/polygon_point_spec.rb +0 -48
- data/spec/models/recognition_outcome_spec.rb +0 -48
- data/spec/models/text_detection_result_spec.rb +0 -54
- data/spec/models/text_item_spec.rb +0 -60
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +0 -54
- data/spec/spec_helper.rb +0 -111
data/docs/ResizeApi.md
DELETED
@@ -1,130 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::ResizeApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**resize_post**](ResizeApi.md#resize_post) | **POST** /image/resize/preserveAspectRatio/{maxWidth}/{maxHeight} | Resize an image while preserving aspect ratio
|
8
|
-
[**resize_resize_simple**](ResizeApi.md#resize_resize_simple) | **POST** /image/resize/target/{width}/{height} | Resize an image
|
9
|
-
|
10
|
-
|
11
|
-
# **resize_post**
|
12
|
-
> String resize_post(max_width, max_height, image_file)
|
13
|
-
|
14
|
-
Resize an image while preserving aspect ratio
|
15
|
-
|
16
|
-
Resize an image to a maximum width and maximum height, while preserving the image's original aspect ratio
|
17
|
-
|
18
|
-
### Example
|
19
|
-
```ruby
|
20
|
-
# load the gem
|
21
|
-
require 'cloudmersive-image-recognition-api-client'
|
22
|
-
# setup authorization
|
23
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
24
|
-
# Configure API key authorization: Apikey
|
25
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
26
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = CloudmersiveImageRecognitionApiClient::ResizeApi.new
|
31
|
-
|
32
|
-
max_width = 56 # Integer | Maximum width of the output image - final image will be as large as possible while less than or equial to this width
|
33
|
-
|
34
|
-
max_height = 56 # Integer | Maximum height of the output image - final image will be as large as possible while less than or equial to this height
|
35
|
-
|
36
|
-
image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
37
|
-
|
38
|
-
|
39
|
-
begin
|
40
|
-
#Resize an image while preserving aspect ratio
|
41
|
-
result = api_instance.resize_post(max_width, max_height, image_file)
|
42
|
-
p result
|
43
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
44
|
-
puts "Exception when calling ResizeApi->resize_post: #{e}"
|
45
|
-
end
|
46
|
-
```
|
47
|
-
|
48
|
-
### Parameters
|
49
|
-
|
50
|
-
Name | Type | Description | Notes
|
51
|
-
------------- | ------------- | ------------- | -------------
|
52
|
-
**max_width** | **Integer**| Maximum width of the output image - final image will be as large as possible while less than or equial to this width |
|
53
|
-
**max_height** | **Integer**| Maximum height of the output image - final image will be as large as possible while less than or equial to this height |
|
54
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
55
|
-
|
56
|
-
### Return type
|
57
|
-
|
58
|
-
**String**
|
59
|
-
|
60
|
-
### Authorization
|
61
|
-
|
62
|
-
[Apikey](../README.md#Apikey)
|
63
|
-
|
64
|
-
### HTTP request headers
|
65
|
-
|
66
|
-
- **Content-Type**: multipart/form-data
|
67
|
-
- **Accept**: application/octet-stream
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
# **resize_resize_simple**
|
72
|
-
> String resize_resize_simple(width, height, image_file)
|
73
|
-
|
74
|
-
Resize an image
|
75
|
-
|
76
|
-
Resize an image to a specific width and specific height
|
77
|
-
|
78
|
-
### Example
|
79
|
-
```ruby
|
80
|
-
# load the gem
|
81
|
-
require 'cloudmersive-image-recognition-api-client'
|
82
|
-
# setup authorization
|
83
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
84
|
-
# Configure API key authorization: Apikey
|
85
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
86
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
87
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
88
|
-
end
|
89
|
-
|
90
|
-
api_instance = CloudmersiveImageRecognitionApiClient::ResizeApi.new
|
91
|
-
|
92
|
-
width = 56 # Integer | Width of the output image - final image will be exactly this width
|
93
|
-
|
94
|
-
height = 56 # Integer | Height of the output image - final image will be exactly this height
|
95
|
-
|
96
|
-
image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
97
|
-
|
98
|
-
|
99
|
-
begin
|
100
|
-
#Resize an image
|
101
|
-
result = api_instance.resize_resize_simple(width, height, image_file)
|
102
|
-
p result
|
103
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
104
|
-
puts "Exception when calling ResizeApi->resize_resize_simple: #{e}"
|
105
|
-
end
|
106
|
-
```
|
107
|
-
|
108
|
-
### Parameters
|
109
|
-
|
110
|
-
Name | Type | Description | Notes
|
111
|
-
------------- | ------------- | ------------- | -------------
|
112
|
-
**width** | **Integer**| Width of the output image - final image will be exactly this width |
|
113
|
-
**height** | **Integer**| Height of the output image - final image will be exactly this height |
|
114
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
115
|
-
|
116
|
-
### Return type
|
117
|
-
|
118
|
-
**String**
|
119
|
-
|
120
|
-
### Authorization
|
121
|
-
|
122
|
-
[Apikey](../README.md#Apikey)
|
123
|
-
|
124
|
-
### HTTP request headers
|
125
|
-
|
126
|
-
- **Content-Type**: multipart/form-data
|
127
|
-
- **Accept**: application/octet-stream
|
128
|
-
|
129
|
-
|
130
|
-
|
data/docs/TextDetectionResult.md
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::TextDetectionResult
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
7
|
-
**text_items** | [**Array<TextItem>**](TextItem.md) | Text items found in the input image | [optional]
|
8
|
-
**text_items_count** | **Integer** | Count of text items found in the input image | [optional]
|
9
|
-
|
10
|
-
|
data/docs/TextItem.md
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::TextItem
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**left_x** | **Integer** | Left X coordinate of the text location; 0 represents the left edge of the input image | [optional]
|
7
|
-
**top_y** | **Integer** | Top Y coordinate of the text location; 0 represents the top edge of the input image | [optional]
|
8
|
-
**width** | **Integer** | Width in pixels of the text item | [optional]
|
9
|
-
**height** | **Integer** | Height in pixels of the text item | [optional]
|
10
|
-
|
11
|
-
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::VehicleLicensePlateDetectionResult
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**successful** | **BOOLEAN** | Was the image processed successfully? | [optional]
|
7
|
-
**detected_license_plates** | [**Array<DetectedLicensePlate>**](DetectedLicensePlate.md) | License plates found in the image | [optional]
|
8
|
-
**detected_license_plate_count** | **Integer** | The number of license plates detected in the image | [optional]
|
9
|
-
|
10
|
-
|
data/git_push.sh
DELETED
@@ -1,55 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
-
#
|
5
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
6
|
-
#
|
7
|
-
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
8
|
-
|
9
|
-
git_user_id=$1
|
10
|
-
git_repo_id=$2
|
11
|
-
release_note=$3
|
12
|
-
|
13
|
-
if [ "$git_user_id" = "" ]; then
|
14
|
-
git_user_id="GIT_USER_ID"
|
15
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
16
|
-
fi
|
17
|
-
|
18
|
-
if [ "$git_repo_id" = "" ]; then
|
19
|
-
git_repo_id="GIT_REPO_ID"
|
20
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
21
|
-
fi
|
22
|
-
|
23
|
-
if [ "$release_note" = "" ]; then
|
24
|
-
release_note="Minor update"
|
25
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
26
|
-
fi
|
27
|
-
|
28
|
-
# Initialize the local directory as a Git repository
|
29
|
-
git init
|
30
|
-
|
31
|
-
# Adds the files in the local repository and stages them for commit.
|
32
|
-
git add .
|
33
|
-
|
34
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
35
|
-
git commit -m "$release_note"
|
36
|
-
|
37
|
-
# Sets the new remote
|
38
|
-
git_remote=`git remote`
|
39
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
40
|
-
|
41
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
42
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
43
|
-
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
44
|
-
else
|
45
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
46
|
-
fi
|
47
|
-
|
48
|
-
fi
|
49
|
-
|
50
|
-
git pull origin master
|
51
|
-
|
52
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
53
|
-
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
54
|
-
git push origin master 2>&1 | grep -v 'To https'
|
55
|
-
|
@@ -1,82 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
# Common files
|
14
|
-
require 'cloudmersive-image-recognition-api-client/api_client'
|
15
|
-
require 'cloudmersive-image-recognition-api-client/api_error'
|
16
|
-
require 'cloudmersive-image-recognition-api-client/version'
|
17
|
-
require 'cloudmersive-image-recognition-api-client/configuration'
|
18
|
-
|
19
|
-
# Models
|
20
|
-
require 'cloudmersive-image-recognition-api-client/models/age_detection_result'
|
21
|
-
require 'cloudmersive-image-recognition-api-client/models/color_result'
|
22
|
-
require 'cloudmersive-image-recognition-api-client/models/detected_license_plate'
|
23
|
-
require 'cloudmersive-image-recognition-api-client/models/detected_object'
|
24
|
-
require 'cloudmersive-image-recognition-api-client/models/dominant_color_result'
|
25
|
-
require 'cloudmersive-image-recognition-api-client/models/draw_polygon_instance'
|
26
|
-
require 'cloudmersive-image-recognition-api-client/models/draw_polygon_request'
|
27
|
-
require 'cloudmersive-image-recognition-api-client/models/draw_rectangle_instance'
|
28
|
-
require 'cloudmersive-image-recognition-api-client/models/draw_rectangle_request'
|
29
|
-
require 'cloudmersive-image-recognition-api-client/models/draw_text_instance'
|
30
|
-
require 'cloudmersive-image-recognition-api-client/models/draw_text_request'
|
31
|
-
require 'cloudmersive-image-recognition-api-client/models/face'
|
32
|
-
require 'cloudmersive-image-recognition-api-client/models/face_compare_response'
|
33
|
-
require 'cloudmersive-image-recognition-api-client/models/face_locate_response'
|
34
|
-
require 'cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response'
|
35
|
-
require 'cloudmersive-image-recognition-api-client/models/face_match'
|
36
|
-
require 'cloudmersive-image-recognition-api-client/models/face_point'
|
37
|
-
require 'cloudmersive-image-recognition-api-client/models/face_with_landmarks'
|
38
|
-
require 'cloudmersive-image-recognition-api-client/models/find_symbol_result'
|
39
|
-
require 'cloudmersive-image-recognition-api-client/models/fine_text_detection_result'
|
40
|
-
require 'cloudmersive-image-recognition-api-client/models/fine_text_item'
|
41
|
-
require 'cloudmersive-image-recognition-api-client/models/gender_detection_result'
|
42
|
-
require 'cloudmersive-image-recognition-api-client/models/image_description_response'
|
43
|
-
require 'cloudmersive-image-recognition-api-client/models/image_metadata'
|
44
|
-
require 'cloudmersive-image-recognition-api-client/models/image_metadata_exif_value'
|
45
|
-
require 'cloudmersive-image-recognition-api-client/models/nsfw_result'
|
46
|
-
require 'cloudmersive-image-recognition-api-client/models/object_detection_result'
|
47
|
-
require 'cloudmersive-image-recognition-api-client/models/person_with_age'
|
48
|
-
require 'cloudmersive-image-recognition-api-client/models/person_with_gender'
|
49
|
-
require 'cloudmersive-image-recognition-api-client/models/polygon_point'
|
50
|
-
require 'cloudmersive-image-recognition-api-client/models/recognition_outcome'
|
51
|
-
require 'cloudmersive-image-recognition-api-client/models/text_detection_result'
|
52
|
-
require 'cloudmersive-image-recognition-api-client/models/text_item'
|
53
|
-
require 'cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result'
|
54
|
-
|
55
|
-
# APIs
|
56
|
-
require 'cloudmersive-image-recognition-api-client/api/artistic_api'
|
57
|
-
require 'cloudmersive-image-recognition-api-client/api/convert_api'
|
58
|
-
require 'cloudmersive-image-recognition-api-client/api/edit_api'
|
59
|
-
require 'cloudmersive-image-recognition-api-client/api/face_api'
|
60
|
-
require 'cloudmersive-image-recognition-api-client/api/filter_api'
|
61
|
-
require 'cloudmersive-image-recognition-api-client/api/info_api'
|
62
|
-
require 'cloudmersive-image-recognition-api-client/api/nsfw_api'
|
63
|
-
require 'cloudmersive-image-recognition-api-client/api/recognize_api'
|
64
|
-
require 'cloudmersive-image-recognition-api-client/api/resize_api'
|
65
|
-
|
66
|
-
module CloudmersiveImageRecognitionApiClient
|
67
|
-
class << self
|
68
|
-
# Customize default settings for the SDK using block.
|
69
|
-
# CloudmersiveImageRecognitionApiClient.configure do |config|
|
70
|
-
# config.username = "xxx"
|
71
|
-
# config.password = "xxx"
|
72
|
-
# end
|
73
|
-
# If no block given, return the default Configuration object.
|
74
|
-
def configure
|
75
|
-
if block_given?
|
76
|
-
yield(Configuration.default)
|
77
|
-
else
|
78
|
-
Configuration.default
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
@@ -1,85 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require "uri"
|
14
|
-
|
15
|
-
module CloudmersiveImageRecognitionApiClient
|
16
|
-
class ArtisticApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
|
23
|
-
# Transform an image into an artistic painting automatically
|
24
|
-
# Uses machine learning to automatically transform an image into an artistic painting. Due to depth of AI processing, depending on image size this operation can take up to 20 seconds.
|
25
|
-
# @param style The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
|
26
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
27
|
-
# @param [Hash] opts the optional parameters
|
28
|
-
# @return [String]
|
29
|
-
def artistic_painting(style, image_file, opts = {})
|
30
|
-
data, _status_code, _headers = artistic_painting_with_http_info(style, image_file, opts)
|
31
|
-
return data
|
32
|
-
end
|
33
|
-
|
34
|
-
# Transform an image into an artistic painting automatically
|
35
|
-
# Uses machine learning to automatically transform an image into an artistic painting. Due to depth of AI processing, depending on image size this operation can take up to 20 seconds.
|
36
|
-
# @param style The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
|
37
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
40
|
-
def artistic_painting_with_http_info(style, image_file, opts = {})
|
41
|
-
if @api_client.config.debugging
|
42
|
-
@api_client.config.logger.debug "Calling API: ArtisticApi.artistic_painting ..."
|
43
|
-
end
|
44
|
-
# verify the required parameter 'style' is set
|
45
|
-
if @api_client.config.client_side_validation && style.nil?
|
46
|
-
fail ArgumentError, "Missing the required parameter 'style' when calling ArtisticApi.artistic_painting"
|
47
|
-
end
|
48
|
-
# verify the required parameter 'image_file' is set
|
49
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
50
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ArtisticApi.artistic_painting"
|
51
|
-
end
|
52
|
-
# resource path
|
53
|
-
local_var_path = "/image/artistic/painting/{style}".sub('{' + 'style' + '}', style.to_s)
|
54
|
-
|
55
|
-
# query parameters
|
56
|
-
query_params = {}
|
57
|
-
|
58
|
-
# header parameters
|
59
|
-
header_params = {}
|
60
|
-
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
62
|
-
# HTTP header 'Content-Type'
|
63
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
64
|
-
|
65
|
-
# form parameters
|
66
|
-
form_params = {}
|
67
|
-
form_params["imageFile"] = image_file
|
68
|
-
|
69
|
-
# http body (model)
|
70
|
-
post_body = nil
|
71
|
-
auth_names = ['Apikey']
|
72
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
73
|
-
:header_params => header_params,
|
74
|
-
:query_params => query_params,
|
75
|
-
:form_params => form_params,
|
76
|
-
:body => post_body,
|
77
|
-
:auth_names => auth_names,
|
78
|
-
:return_type => 'String')
|
79
|
-
if @api_client.config.debugging
|
80
|
-
@api_client.config.logger.debug "API called: ArtisticApi#artistic_painting\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
-
end
|
82
|
-
return data, status_code, headers
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
@@ -1,421 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require "uri"
|
14
|
-
|
15
|
-
module CloudmersiveImageRecognitionApiClient
|
16
|
-
class ConvertApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
|
23
|
-
# Convert input image to Bitmap BMP format
|
24
|
-
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
25
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @return [String]
|
28
|
-
def convert_to_bmp(image_file, opts = {})
|
29
|
-
data, _status_code, _headers = convert_to_bmp_with_http_info(image_file, opts)
|
30
|
-
return data
|
31
|
-
end
|
32
|
-
|
33
|
-
# Convert input image to Bitmap BMP format
|
34
|
-
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
35
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
36
|
-
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
38
|
-
def convert_to_bmp_with_http_info(image_file, opts = {})
|
39
|
-
if @api_client.config.debugging
|
40
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_bmp ..."
|
41
|
-
end
|
42
|
-
# verify the required parameter 'image_file' is set
|
43
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
44
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_bmp"
|
45
|
-
end
|
46
|
-
# resource path
|
47
|
-
local_var_path = "/image/convert/to/bmp"
|
48
|
-
|
49
|
-
# query parameters
|
50
|
-
query_params = {}
|
51
|
-
|
52
|
-
# header parameters
|
53
|
-
header_params = {}
|
54
|
-
# HTTP header 'Accept' (if needed)
|
55
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
56
|
-
# HTTP header 'Content-Type'
|
57
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
58
|
-
|
59
|
-
# form parameters
|
60
|
-
form_params = {}
|
61
|
-
form_params["imageFile"] = image_file
|
62
|
-
|
63
|
-
# http body (model)
|
64
|
-
post_body = nil
|
65
|
-
auth_names = ['Apikey']
|
66
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
67
|
-
:header_params => header_params,
|
68
|
-
:query_params => query_params,
|
69
|
-
:form_params => form_params,
|
70
|
-
:body => post_body,
|
71
|
-
:auth_names => auth_names,
|
72
|
-
:return_type => 'String')
|
73
|
-
if @api_client.config.debugging
|
74
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_bmp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
-
end
|
76
|
-
return data, status_code, headers
|
77
|
-
end
|
78
|
-
|
79
|
-
# Convert input image to GIF format
|
80
|
-
# Converts the input image into GIF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
81
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
82
|
-
# @param [Hash] opts the optional parameters
|
83
|
-
# @return [String]
|
84
|
-
def convert_to_gif(image_file, opts = {})
|
85
|
-
data, _status_code, _headers = convert_to_gif_with_http_info(image_file, opts)
|
86
|
-
return data
|
87
|
-
end
|
88
|
-
|
89
|
-
# Convert input image to GIF format
|
90
|
-
# Converts the input image into GIF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
91
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
92
|
-
# @param [Hash] opts the optional parameters
|
93
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
94
|
-
def convert_to_gif_with_http_info(image_file, opts = {})
|
95
|
-
if @api_client.config.debugging
|
96
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_gif ..."
|
97
|
-
end
|
98
|
-
# verify the required parameter 'image_file' is set
|
99
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
100
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_gif"
|
101
|
-
end
|
102
|
-
# resource path
|
103
|
-
local_var_path = "/image/convert/to/gif"
|
104
|
-
|
105
|
-
# query parameters
|
106
|
-
query_params = {}
|
107
|
-
|
108
|
-
# header parameters
|
109
|
-
header_params = {}
|
110
|
-
# HTTP header 'Accept' (if needed)
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
112
|
-
# HTTP header 'Content-Type'
|
113
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
114
|
-
|
115
|
-
# form parameters
|
116
|
-
form_params = {}
|
117
|
-
form_params["imageFile"] = image_file
|
118
|
-
|
119
|
-
# http body (model)
|
120
|
-
post_body = nil
|
121
|
-
auth_names = ['Apikey']
|
122
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
123
|
-
:header_params => header_params,
|
124
|
-
:query_params => query_params,
|
125
|
-
:form_params => form_params,
|
126
|
-
:body => post_body,
|
127
|
-
:auth_names => auth_names,
|
128
|
-
:return_type => 'String')
|
129
|
-
if @api_client.config.debugging
|
130
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
131
|
-
end
|
132
|
-
return data, status_code, headers
|
133
|
-
end
|
134
|
-
|
135
|
-
# Convert input image to JPG, JPEG format
|
136
|
-
# Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
137
|
-
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
138
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
139
|
-
# @param [Hash] opts the optional parameters
|
140
|
-
# @return [String]
|
141
|
-
def convert_to_jpg(quality, image_file, opts = {})
|
142
|
-
data, _status_code, _headers = convert_to_jpg_with_http_info(quality, image_file, opts)
|
143
|
-
return data
|
144
|
-
end
|
145
|
-
|
146
|
-
# Convert input image to JPG, JPEG format
|
147
|
-
# Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
148
|
-
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
149
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
150
|
-
# @param [Hash] opts the optional parameters
|
151
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
152
|
-
def convert_to_jpg_with_http_info(quality, image_file, opts = {})
|
153
|
-
if @api_client.config.debugging
|
154
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_jpg ..."
|
155
|
-
end
|
156
|
-
# verify the required parameter 'quality' is set
|
157
|
-
if @api_client.config.client_side_validation && quality.nil?
|
158
|
-
fail ArgumentError, "Missing the required parameter 'quality' when calling ConvertApi.convert_to_jpg"
|
159
|
-
end
|
160
|
-
# verify the required parameter 'image_file' is set
|
161
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
162
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_jpg"
|
163
|
-
end
|
164
|
-
# resource path
|
165
|
-
local_var_path = "/image/convert/to/jpg/{quality}".sub('{' + 'quality' + '}', quality.to_s)
|
166
|
-
|
167
|
-
# query parameters
|
168
|
-
query_params = {}
|
169
|
-
|
170
|
-
# header parameters
|
171
|
-
header_params = {}
|
172
|
-
# HTTP header 'Accept' (if needed)
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
174
|
-
# HTTP header 'Content-Type'
|
175
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
176
|
-
|
177
|
-
# form parameters
|
178
|
-
form_params = {}
|
179
|
-
form_params["imageFile"] = image_file
|
180
|
-
|
181
|
-
# http body (model)
|
182
|
-
post_body = nil
|
183
|
-
auth_names = ['Apikey']
|
184
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
185
|
-
:header_params => header_params,
|
186
|
-
:query_params => query_params,
|
187
|
-
:form_params => form_params,
|
188
|
-
:body => post_body,
|
189
|
-
:auth_names => auth_names,
|
190
|
-
:return_type => 'String')
|
191
|
-
if @api_client.config.debugging
|
192
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
193
|
-
end
|
194
|
-
return data, status_code, headers
|
195
|
-
end
|
196
|
-
|
197
|
-
# Convert input image to Photoshop PSD format
|
198
|
-
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
199
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
200
|
-
# @param [Hash] opts the optional parameters
|
201
|
-
# @return [String]
|
202
|
-
def convert_to_photoshop(image_file, opts = {})
|
203
|
-
data, _status_code, _headers = convert_to_photoshop_with_http_info(image_file, opts)
|
204
|
-
return data
|
205
|
-
end
|
206
|
-
|
207
|
-
# Convert input image to Photoshop PSD format
|
208
|
-
# Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
209
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
210
|
-
# @param [Hash] opts the optional parameters
|
211
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
212
|
-
def convert_to_photoshop_with_http_info(image_file, opts = {})
|
213
|
-
if @api_client.config.debugging
|
214
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_photoshop ..."
|
215
|
-
end
|
216
|
-
# verify the required parameter 'image_file' is set
|
217
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
218
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_photoshop"
|
219
|
-
end
|
220
|
-
# resource path
|
221
|
-
local_var_path = "/image/convert/to/psd"
|
222
|
-
|
223
|
-
# query parameters
|
224
|
-
query_params = {}
|
225
|
-
|
226
|
-
# header parameters
|
227
|
-
header_params = {}
|
228
|
-
# HTTP header 'Accept' (if needed)
|
229
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
230
|
-
# HTTP header 'Content-Type'
|
231
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
232
|
-
|
233
|
-
# form parameters
|
234
|
-
form_params = {}
|
235
|
-
form_params["imageFile"] = image_file
|
236
|
-
|
237
|
-
# http body (model)
|
238
|
-
post_body = nil
|
239
|
-
auth_names = ['Apikey']
|
240
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
241
|
-
:header_params => header_params,
|
242
|
-
:query_params => query_params,
|
243
|
-
:form_params => form_params,
|
244
|
-
:body => post_body,
|
245
|
-
:auth_names => auth_names,
|
246
|
-
:return_type => 'String')
|
247
|
-
if @api_client.config.debugging
|
248
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_photoshop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
249
|
-
end
|
250
|
-
return data, status_code, headers
|
251
|
-
end
|
252
|
-
|
253
|
-
# Convert input image to PNG format
|
254
|
-
# Converts the input image into PNG format. Transparency is preserved when present. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
255
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
256
|
-
# @param [Hash] opts the optional parameters
|
257
|
-
# @return [String]
|
258
|
-
def convert_to_png(image_file, opts = {})
|
259
|
-
data, _status_code, _headers = convert_to_png_with_http_info(image_file, opts)
|
260
|
-
return data
|
261
|
-
end
|
262
|
-
|
263
|
-
# Convert input image to PNG format
|
264
|
-
# Converts the input image into PNG format. Transparency is preserved when present. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
265
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
266
|
-
# @param [Hash] opts the optional parameters
|
267
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
268
|
-
def convert_to_png_with_http_info(image_file, opts = {})
|
269
|
-
if @api_client.config.debugging
|
270
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_png ..."
|
271
|
-
end
|
272
|
-
# verify the required parameter 'image_file' is set
|
273
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
274
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_png"
|
275
|
-
end
|
276
|
-
# resource path
|
277
|
-
local_var_path = "/image/convert/to/png"
|
278
|
-
|
279
|
-
# query parameters
|
280
|
-
query_params = {}
|
281
|
-
|
282
|
-
# header parameters
|
283
|
-
header_params = {}
|
284
|
-
# HTTP header 'Accept' (if needed)
|
285
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
286
|
-
# HTTP header 'Content-Type'
|
287
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
288
|
-
|
289
|
-
# form parameters
|
290
|
-
form_params = {}
|
291
|
-
form_params["imageFile"] = image_file
|
292
|
-
|
293
|
-
# http body (model)
|
294
|
-
post_body = nil
|
295
|
-
auth_names = ['Apikey']
|
296
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
297
|
-
:header_params => header_params,
|
298
|
-
:query_params => query_params,
|
299
|
-
:form_params => form_params,
|
300
|
-
:body => post_body,
|
301
|
-
:auth_names => auth_names,
|
302
|
-
:return_type => 'String')
|
303
|
-
if @api_client.config.debugging
|
304
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
305
|
-
end
|
306
|
-
return data, status_code, headers
|
307
|
-
end
|
308
|
-
|
309
|
-
# Convert input image to TIFF format
|
310
|
-
# Converts the input image into TIFF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
311
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
312
|
-
# @param [Hash] opts the optional parameters
|
313
|
-
# @return [String]
|
314
|
-
def convert_to_tiff(image_file, opts = {})
|
315
|
-
data, _status_code, _headers = convert_to_tiff_with_http_info(image_file, opts)
|
316
|
-
return data
|
317
|
-
end
|
318
|
-
|
319
|
-
# Convert input image to TIFF format
|
320
|
-
# Converts the input image into TIFF format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
321
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
322
|
-
# @param [Hash] opts the optional parameters
|
323
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
324
|
-
def convert_to_tiff_with_http_info(image_file, opts = {})
|
325
|
-
if @api_client.config.debugging
|
326
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_tiff ..."
|
327
|
-
end
|
328
|
-
# verify the required parameter 'image_file' is set
|
329
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
330
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_tiff"
|
331
|
-
end
|
332
|
-
# resource path
|
333
|
-
local_var_path = "/image/convert/to/tiff"
|
334
|
-
|
335
|
-
# query parameters
|
336
|
-
query_params = {}
|
337
|
-
|
338
|
-
# header parameters
|
339
|
-
header_params = {}
|
340
|
-
# HTTP header 'Accept' (if needed)
|
341
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
342
|
-
# HTTP header 'Content-Type'
|
343
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
344
|
-
|
345
|
-
# form parameters
|
346
|
-
form_params = {}
|
347
|
-
form_params["imageFile"] = image_file
|
348
|
-
|
349
|
-
# http body (model)
|
350
|
-
post_body = nil
|
351
|
-
auth_names = ['Apikey']
|
352
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
353
|
-
:header_params => header_params,
|
354
|
-
:query_params => query_params,
|
355
|
-
:form_params => form_params,
|
356
|
-
:body => post_body,
|
357
|
-
:auth_names => auth_names,
|
358
|
-
:return_type => 'String')
|
359
|
-
if @api_client.config.debugging
|
360
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_tiff\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
361
|
-
end
|
362
|
-
return data, status_code, headers
|
363
|
-
end
|
364
|
-
|
365
|
-
# Convert input image to WebP format
|
366
|
-
# Converts the input image into WebP format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
367
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
368
|
-
# @param [Hash] opts the optional parameters
|
369
|
-
# @return [String]
|
370
|
-
def convert_to_web_p(image_file, opts = {})
|
371
|
-
data, _status_code, _headers = convert_to_web_p_with_http_info(image_file, opts)
|
372
|
-
return data
|
373
|
-
end
|
374
|
-
|
375
|
-
# Convert input image to WebP format
|
376
|
-
# Converts the input image into WebP format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
377
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
378
|
-
# @param [Hash] opts the optional parameters
|
379
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
380
|
-
def convert_to_web_p_with_http_info(image_file, opts = {})
|
381
|
-
if @api_client.config.debugging
|
382
|
-
@api_client.config.logger.debug "Calling API: ConvertApi.convert_to_web_p ..."
|
383
|
-
end
|
384
|
-
# verify the required parameter 'image_file' is set
|
385
|
-
if @api_client.config.client_side_validation && image_file.nil?
|
386
|
-
fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_web_p"
|
387
|
-
end
|
388
|
-
# resource path
|
389
|
-
local_var_path = "/image/convert/to/webp"
|
390
|
-
|
391
|
-
# query parameters
|
392
|
-
query_params = {}
|
393
|
-
|
394
|
-
# header parameters
|
395
|
-
header_params = {}
|
396
|
-
# HTTP header 'Accept' (if needed)
|
397
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
398
|
-
# HTTP header 'Content-Type'
|
399
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
400
|
-
|
401
|
-
# form parameters
|
402
|
-
form_params = {}
|
403
|
-
form_params["imageFile"] = image_file
|
404
|
-
|
405
|
-
# http body (model)
|
406
|
-
post_body = nil
|
407
|
-
auth_names = ['Apikey']
|
408
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
409
|
-
:header_params => header_params,
|
410
|
-
:query_params => query_params,
|
411
|
-
:form_params => form_params,
|
412
|
-
:body => post_body,
|
413
|
-
:auth_names => auth_names,
|
414
|
-
:return_type => 'String')
|
415
|
-
if @api_client.config.debugging
|
416
|
-
@api_client.config.logger.debug "API called: ConvertApi#convert_to_web_p\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
-
end
|
418
|
-
return data, status_code, headers
|
419
|
-
end
|
420
|
-
end
|
421
|
-
end
|