cloudmersive-cdr-api-client 2.0.0
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 +7 -0
- data/Gemfile +7 -0
- data/README.md +102 -0
- data/Rakefile +8 -0
- data/cloudmersive-cdr-api-client.gemspec +45 -0
- data/docs/FileSanitizationApi.md +118 -0
- data/git_push.sh +55 -0
- data/lib/cloudmersive-cdr-api-client/api/file_sanitization_api.rb +119 -0
- data/lib/cloudmersive-cdr-api-client/api_client.rb +391 -0
- data/lib/cloudmersive-cdr-api-client/api_error.rb +38 -0
- data/lib/cloudmersive-cdr-api-client/configuration.rb +209 -0
- data/lib/cloudmersive-cdr-api-client/version.rb +15 -0
- data/lib/cloudmersive-cdr-api-client.rb +40 -0
- data/spec/api/file_sanitization_api_spec.rb +59 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +239 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a0868679e9337fb65030ede1afec445637ca469e0c01d9ee35f5371e0c25ed81
|
4
|
+
data.tar.gz: 06cf9bf35b7ba79b3800a7181d15c88eb5d4750f360623c45288dc2e5e14bff3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 921362549e0dd9458cfb48c93e1aae213dd8ad46a3ec7151a6ca23c1d934f511f9aafebe42dec3996c85de2a0c8f3cabe3df2d230445078a6c0abc1f7afaedeb
|
7
|
+
data.tar.gz: f7925a4fe4b3f394f3ca634fafae45c57aad37d1105eac58a2a594baff45584b3c2181bae80c1532c5deb0051a2fd46c26cddade751d8d246b3f9dce25ef0838
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,102 @@
|
|
1
|
+
# cloudmersive-cdr-api-client
|
2
|
+
|
3
|
+
CloudmersiveCdrApiClient - the Ruby gem for the CDR API
|
4
|
+
|
5
|
+
Use the Content Disarm and Reconstruction API to remove security risks from documents by tearing them down, removing unsafe content and rebuilding them.
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API version: v1
|
10
|
+
- Package version: 2.0.0
|
11
|
+
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build cloudmersive-cdr-api-client.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./cloudmersive-cdr-api-client-2.0.0.gem
|
27
|
+
```
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-cdr-api-client-2.0.0.gem` to install the development dependencies)
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'cloudmersive-cdr-api-client', '~> 2.0.0'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
39
|
+
|
40
|
+
gem 'cloudmersive-cdr-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'cloudmersive-cdr-api-client'
|
56
|
+
|
57
|
+
# Setup authorization
|
58
|
+
CloudmersiveCdrApiClient.configure do |config|
|
59
|
+
# Configure API key authorization: Apikey
|
60
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
61
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
62
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
63
|
+
end
|
64
|
+
|
65
|
+
api_instance = CloudmersiveCdrApiClient::FileSanitizationApi.new
|
66
|
+
|
67
|
+
opts = {
|
68
|
+
input_file: File.new('/path/to/file.txt') # File | Input document, or photos of a document, to extract data from
|
69
|
+
}
|
70
|
+
|
71
|
+
begin
|
72
|
+
#Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
73
|
+
api_instance.file(opts)
|
74
|
+
rescue CloudmersiveCdrApiClient::ApiError => e
|
75
|
+
puts "Exception when calling FileSanitizationApi->file: #{e}"
|
76
|
+
end
|
77
|
+
|
78
|
+
```
|
79
|
+
|
80
|
+
## Documentation for API Endpoints
|
81
|
+
|
82
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
83
|
+
|
84
|
+
Class | Method | HTTP request | Description
|
85
|
+
------------ | ------------- | ------------- | -------------
|
86
|
+
*CloudmersiveCdrApiClient::FileSanitizationApi* | [**file**](docs/FileSanitizationApi.md#file) | **POST** /cdr/sanitization/file | Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
87
|
+
*CloudmersiveCdrApiClient::FileSanitizationApi* | [**file_to_pdf**](docs/FileSanitizationApi.md#file_to_pdf) | **POST** /cdr/sanitization/file/to/pdf | Complete Content Disarm and Reconstruction on an Input File with PDF/A Output
|
88
|
+
|
89
|
+
|
90
|
+
## Documentation for Models
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
## Documentation for Authorization
|
95
|
+
|
96
|
+
|
97
|
+
### Apikey
|
98
|
+
|
99
|
+
- **Type**: API key
|
100
|
+
- **API key parameter name**: Apikey
|
101
|
+
- **Location**: HTTP header
|
102
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#CDR API
|
5
|
+
|
6
|
+
#Use the Content Disarm and Reconstruction API to remove security risks from documents by tearing them down, removing unsafe content and rebuilding them.
|
7
|
+
|
8
|
+
OpenAPI spec version: v1
|
9
|
+
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 2.4.14
|
12
|
+
|
13
|
+
=end
|
14
|
+
|
15
|
+
$:.push File.expand_path("../lib", __FILE__)
|
16
|
+
require "cloudmersive-cdr-api-client/version"
|
17
|
+
|
18
|
+
Gem::Specification.new do |s|
|
19
|
+
s.name = "cloudmersive-cdr-api-client"
|
20
|
+
s.version = CloudmersiveCdrApiClient::VERSION
|
21
|
+
s.platform = Gem::Platform::RUBY
|
22
|
+
s.authors = ["Cloudmersive"]
|
23
|
+
s.email = [""]
|
24
|
+
s.homepage = "https://cloudmersive.com/cdr-api"
|
25
|
+
s.summary = "Sanitize business documents."
|
26
|
+
s.description = "CDR API lets you strip security threats from business documents."
|
27
|
+
s.license = 'Apache 2.0'
|
28
|
+
s.required_ruby_version = ">= 1.9"
|
29
|
+
|
30
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
|
+
|
33
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
|
+
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
35
|
+
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
|
36
|
+
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
|
37
|
+
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
|
38
|
+
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
|
39
|
+
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
|
40
|
+
|
41
|
+
s.files = Dir['./**/*']
|
42
|
+
s.test_files = `find spec/*`.split("\n")
|
43
|
+
s.executables = []
|
44
|
+
s.require_paths = ["lib"]
|
45
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
# CloudmersiveCdrApiClient::FileSanitizationApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**file**](FileSanitizationApi.md#file) | **POST** /cdr/sanitization/file | Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
8
|
+
[**file_to_pdf**](FileSanitizationApi.md#file_to_pdf) | **POST** /cdr/sanitization/file/to/pdf | Complete Content Disarm and Reconstruction on an Input File with PDF/A Output
|
9
|
+
|
10
|
+
|
11
|
+
# **file**
|
12
|
+
> file(opts)
|
13
|
+
|
14
|
+
Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
15
|
+
|
16
|
+
Processes the input file via CDR to produce a secured output file. Input content is parsed, disarmed, and then reconstructed into a new output file with the same file format as the input.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'cloudmersive-cdr-api-client'
|
22
|
+
# setup authorization
|
23
|
+
CloudmersiveCdrApiClient.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 = CloudmersiveCdrApiClient::FileSanitizationApi.new
|
31
|
+
|
32
|
+
opts = {
|
33
|
+
input_file: File.new('/path/to/file.txt') # File | Input document, or photos of a document, to extract data from
|
34
|
+
}
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
38
|
+
api_instance.file(opts)
|
39
|
+
rescue CloudmersiveCdrApiClient::ApiError => e
|
40
|
+
puts "Exception when calling FileSanitizationApi->file: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
|
46
|
+
Name | Type | Description | Notes
|
47
|
+
------------- | ------------- | ------------- | -------------
|
48
|
+
**input_file** | **File**| Input document, or photos of a document, to extract data from | [optional]
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
nil (empty response body)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[Apikey](../README.md#Apikey)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: multipart/form-data
|
61
|
+
- **Accept**: Not defined
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
# **file_to_pdf**
|
66
|
+
> file_to_pdf(opts)
|
67
|
+
|
68
|
+
Complete Content Disarm and Reconstruction on an Input File with PDF/A Output
|
69
|
+
|
70
|
+
Processes the input file via CDR to produce a secured PDF/A output file. Input content is parsed, disarmed, and then reconstructed into a new PDF/A output file.
|
71
|
+
|
72
|
+
### Example
|
73
|
+
```ruby
|
74
|
+
# load the gem
|
75
|
+
require 'cloudmersive-cdr-api-client'
|
76
|
+
# setup authorization
|
77
|
+
CloudmersiveCdrApiClient.configure do |config|
|
78
|
+
# Configure API key authorization: Apikey
|
79
|
+
config.api_key['Apikey'] = 'YOUR API KEY'
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
+
#config.api_key_prefix['Apikey'] = 'Bearer'
|
82
|
+
end
|
83
|
+
|
84
|
+
api_instance = CloudmersiveCdrApiClient::FileSanitizationApi.new
|
85
|
+
|
86
|
+
opts = {
|
87
|
+
input_file: File.new('/path/to/file.txt') # File | Input document, or photos of a document, to extract data from
|
88
|
+
}
|
89
|
+
|
90
|
+
begin
|
91
|
+
#Complete Content Disarm and Reconstruction on an Input File with PDF/A Output
|
92
|
+
api_instance.file_to_pdf(opts)
|
93
|
+
rescue CloudmersiveCdrApiClient::ApiError => e
|
94
|
+
puts "Exception when calling FileSanitizationApi->file_to_pdf: #{e}"
|
95
|
+
end
|
96
|
+
```
|
97
|
+
|
98
|
+
### Parameters
|
99
|
+
|
100
|
+
Name | Type | Description | Notes
|
101
|
+
------------- | ------------- | ------------- | -------------
|
102
|
+
**input_file** | **File**| Input document, or photos of a document, to extract data from | [optional]
|
103
|
+
|
104
|
+
### Return type
|
105
|
+
|
106
|
+
nil (empty response body)
|
107
|
+
|
108
|
+
### Authorization
|
109
|
+
|
110
|
+
[Apikey](../README.md#Apikey)
|
111
|
+
|
112
|
+
### HTTP request headers
|
113
|
+
|
114
|
+
- **Content-Type**: multipart/form-data
|
115
|
+
- **Accept**: Not defined
|
116
|
+
|
117
|
+
|
118
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,55 @@
|
|
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
|
+
|
@@ -0,0 +1,119 @@
|
|
1
|
+
=begin
|
2
|
+
#CDR API
|
3
|
+
|
4
|
+
#Use the Content Disarm and Reconstruction API to remove security risks from documents by tearing them down, removing unsafe content and rebuilding them.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module CloudmersiveCdrApiClient
|
16
|
+
class FileSanitizationApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
23
|
+
# Processes the input file via CDR to produce a secured output file. Input content is parsed, disarmed, and then reconstructed into a new output file with the same file format as the input.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
26
|
+
# @return [nil]
|
27
|
+
def file(opts = {})
|
28
|
+
file_with_http_info(opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Complete Content Disarm and Reconstruction on an Input File, and output in same file format
|
33
|
+
# Processes the input file via CDR to produce a secured output file. Input content is parsed, disarmed, and then reconstructed into a new output file with the same file format as the input.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
36
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
37
|
+
def file_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: FileSanitizationApi.file ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/cdr/sanitization/file'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = {}
|
49
|
+
# HTTP header 'Content-Type'
|
50
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = {}
|
54
|
+
form_params['InputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = nil
|
58
|
+
auth_names = ['Apikey']
|
59
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
60
|
+
:header_params => header_params,
|
61
|
+
:query_params => query_params,
|
62
|
+
:form_params => form_params,
|
63
|
+
:body => post_body,
|
64
|
+
:auth_names => auth_names)
|
65
|
+
if @api_client.config.debugging
|
66
|
+
@api_client.config.logger.debug "API called: FileSanitizationApi#file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
67
|
+
end
|
68
|
+
return data, status_code, headers
|
69
|
+
end
|
70
|
+
# Complete Content Disarm and Reconstruction on an Input File with PDF/A Output
|
71
|
+
# Processes the input file via CDR to produce a secured PDF/A output file. Input content is parsed, disarmed, and then reconstructed into a new PDF/A output file.
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
74
|
+
# @return [nil]
|
75
|
+
def file_to_pdf(opts = {})
|
76
|
+
file_to_pdf_with_http_info(opts)
|
77
|
+
nil
|
78
|
+
end
|
79
|
+
|
80
|
+
# Complete Content Disarm and Reconstruction on an Input File with PDF/A Output
|
81
|
+
# Processes the input file via CDR to produce a secured PDF/A output file. Input content is parsed, disarmed, and then reconstructed into a new PDF/A output file.
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [File] :input_file Input document, or photos of a document, to extract data from
|
84
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
85
|
+
def file_to_pdf_with_http_info(opts = {})
|
86
|
+
if @api_client.config.debugging
|
87
|
+
@api_client.config.logger.debug 'Calling API: FileSanitizationApi.file_to_pdf ...'
|
88
|
+
end
|
89
|
+
# resource path
|
90
|
+
local_var_path = '/cdr/sanitization/file/to/pdf'
|
91
|
+
|
92
|
+
# query parameters
|
93
|
+
query_params = {}
|
94
|
+
|
95
|
+
# header parameters
|
96
|
+
header_params = {}
|
97
|
+
# HTTP header 'Content-Type'
|
98
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
99
|
+
|
100
|
+
# form parameters
|
101
|
+
form_params = {}
|
102
|
+
form_params['InputFile'] = opts[:'input_file'] if !opts[:'input_file'].nil?
|
103
|
+
|
104
|
+
# http body (model)
|
105
|
+
post_body = nil
|
106
|
+
auth_names = ['Apikey']
|
107
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
108
|
+
:header_params => header_params,
|
109
|
+
:query_params => query_params,
|
110
|
+
:form_params => form_params,
|
111
|
+
:body => post_body,
|
112
|
+
:auth_names => auth_names)
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug "API called: FileSanitizationApi#file_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
115
|
+
end
|
116
|
+
return data, status_code, headers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|