groupdocs_signature_cloud 18.8.1 → 21.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/groupdocs_signature_cloud/api/file_api.rb +734 -0
- data/lib/groupdocs_signature_cloud/api/folder_api.rb +699 -0
- data/lib/groupdocs_signature_cloud/api/info_api.rb +364 -0
- data/lib/groupdocs_signature_cloud/api/preview_api.rb +217 -0
- data/lib/groupdocs_signature_cloud/api/sign_api.rb +605 -0
- data/lib/groupdocs_signature_cloud/api/storage_api.rb +544 -0
- data/lib/groupdocs_signature_cloud/api_client.rb +382 -380
- data/lib/groupdocs_signature_cloud/api_error.rb +71 -58
- data/lib/groupdocs_signature_cloud/configuration.rb +95 -110
- data/lib/groupdocs_signature_cloud/models/barcode_signature.rb +434 -0
- data/lib/groupdocs_signature_cloud/models/barcode_type.rb +237 -230
- data/lib/groupdocs_signature_cloud/models/{barcode_collection.rb → barcodes_result.rb} +239 -232
- data/lib/groupdocs_signature_cloud/models/{base_signature_data.rb → base_settings.rb} +237 -230
- data/lib/groupdocs_signature_cloud/models/{border_line_data.rb → border_line.rb} +334 -312
- data/lib/groupdocs_signature_cloud/models/{brush_data.rb → brush.rb} +237 -230
- data/lib/groupdocs_signature_cloud/models/checkbox_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/color.rb +237 -245
- data/lib/groupdocs_signature_cloud/models/combobox_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/delete_options.rb +289 -0
- data/lib/groupdocs_signature_cloud/models/{sign_options_data.rb → delete_result.rb} +276 -255
- data/lib/groupdocs_signature_cloud/models/delete_settings.rb +249 -0
- data/lib/groupdocs_signature_cloud/models/digital_form_field_signature.rb +460 -0
- data/lib/groupdocs_signature_cloud/models/digital_signature.rb +454 -0
- data/lib/groupdocs_signature_cloud/models/digital_signature_appearance.rb +309 -0
- data/lib/groupdocs_signature_cloud/models/disc_usage.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/{cells_qr_code_signature_data.rb → error.rb} +267 -250
- data/lib/groupdocs_signature_cloud/models/error_details.rb +252 -0
- data/lib/groupdocs_signature_cloud/models/{barcode_signature_data.rb → file_info.rb} +267 -250
- data/lib/groupdocs_signature_cloud/models/file_version.rb +312 -0
- data/lib/groupdocs_signature_cloud/models/file_versions.rb +239 -0
- data/lib/groupdocs_signature_cloud/models/files_list.rb +239 -0
- data/lib/groupdocs_signature_cloud/models/files_upload_result.rb +251 -0
- data/lib/groupdocs_signature_cloud/models/form_field_signature.rb +445 -0
- data/lib/groupdocs_signature_cloud/models/format.rb +247 -240
- data/lib/groupdocs_signature_cloud/models/{format_collection.rb → formats_result.rb} +239 -232
- data/lib/groupdocs_signature_cloud/models/image_appearance.rb +339 -0
- data/lib/groupdocs_signature_cloud/models/image_signature.rb +429 -0
- data/lib/groupdocs_signature_cloud/models/info_result.rb +371 -0
- data/lib/groupdocs_signature_cloud/models/{cells_barcode_signature_data.rb → info_settings.rb} +252 -250
- data/lib/groupdocs_signature_cloud/models/{linear_gradient_brush_data.rb → linear_gradient_brush.rb} +272 -260
- data/lib/groupdocs_signature_cloud/models/{pages_info.rb → object_exist.rb} +257 -247
- data/lib/groupdocs_signature_cloud/models/{pdf_digital_signature_data.rb → options_base.rb} +314 -307
- data/lib/groupdocs_signature_cloud/models/{padding_data.rb → padding.rb} +302 -295
- data/lib/groupdocs_signature_cloud/models/page_info.rb +312 -305
- data/lib/groupdocs_signature_cloud/models/{pages_setup_data.rb → pages_setup.rb} +299 -292
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature.rb +339 -0
- data/lib/groupdocs_signature_cloud/models/pdf_digital_signature_appearance.rb +359 -0
- data/lib/groupdocs_signature_cloud/models/pdf_text_annotation_appearance.rb +395 -0
- data/lib/groupdocs_signature_cloud/models/{document_response.rb → pdf_text_sticker_appearance.rb} +355 -302
- data/lib/groupdocs_signature_cloud/models/preview_page.rb +277 -0
- data/lib/groupdocs_signature_cloud/models/preview_result.rb +279 -0
- data/lib/groupdocs_signature_cloud/models/{cells_verify_qr_code_options_data.rb → preview_settings.rb} +356 -342
- data/lib/groupdocs_signature_cloud/models/qr_code_signature.rb +434 -0
- data/lib/groupdocs_signature_cloud/models/qr_code_type.rb +237 -230
- data/lib/groupdocs_signature_cloud/models/{qr_code_collection.rb → qr_codes_result.rb} +239 -232
- data/lib/groupdocs_signature_cloud/models/{radial_gradient_brush_data.rb → radial_gradient_brush.rb} +257 -250
- data/lib/groupdocs_signature_cloud/models/radio_button_form_field_signature.rb +467 -0
- data/lib/groupdocs_signature_cloud/models/save_options.rb +262 -0
- data/lib/groupdocs_signature_cloud/models/{search_barcode_options_data.rb → search_barcode_options.rb} +365 -332
- data/lib/groupdocs_signature_cloud/models/{cells_digital_signature_data.rb → search_digital_options.rb} +314 -307
- data/lib/groupdocs_signature_cloud/models/{words_digital_signature_data.rb → search_options.rb} +314 -307
- data/lib/groupdocs_signature_cloud/models/{pdf_search_barcode_options_data.rb → search_qr_code_options.rb} +365 -332
- data/lib/groupdocs_signature_cloud/models/{verify_options_collection_data.rb → search_result.rb} +264 -247
- data/lib/groupdocs_signature_cloud/models/search_settings.rb +249 -0
- data/lib/groupdocs_signature_cloud/models/{pdf_sign_text_options_data.rb → sign_barcode_options.rb} +808 -696
- data/lib/groupdocs_signature_cloud/models/{pdf_sign_digital_options_data.rb → sign_digital_options.rb} +695 -556
- data/lib/groupdocs_signature_cloud/models/{sign_stamp_options_data.rb → sign_image_options.rb} +599 -592
- data/lib/groupdocs_signature_cloud/models/sign_options.rb +324 -0
- data/lib/groupdocs_signature_cloud/models/{words_sign_text_options_data.rb → sign_qr_code_options.rb} +823 -696
- data/lib/groupdocs_signature_cloud/models/{verify_options_data.rb → sign_result.rb} +286 -265
- data/lib/groupdocs_signature_cloud/models/{qr_code_signature_data.rb → sign_settings.rb} +259 -250
- data/lib/groupdocs_signature_cloud/models/{slides_sign_stamp_options_data.rb → sign_stamp_options.rb} +705 -592
- data/lib/groupdocs_signature_cloud/models/{images_sign_text_options_data.rb → sign_text_options.rb} +747 -706
- data/lib/groupdocs_signature_cloud/models/signature.rb +404 -0
- data/lib/groupdocs_signature_cloud/models/{signature_document_response.rb → signature_appearance.rb} +278 -289
- data/lib/groupdocs_signature_cloud/models/{signature_font_data.rb → signature_font.rb} +297 -290
- data/lib/groupdocs_signature_cloud/models/{solid_brush_data.rb → solid_brush.rb} +247 -240
- data/lib/groupdocs_signature_cloud/models/{stamp_line_data.rb → stamp_line.rb} +384 -377
- data/lib/groupdocs_signature_cloud/models/storage_exist.rb +242 -0
- data/lib/groupdocs_signature_cloud/models/{document_info.rb → storage_file.rb} +287 -300
- data/lib/groupdocs_signature_cloud/models/text_form_field_signature.rb +455 -0
- data/lib/groupdocs_signature_cloud/models/text_signature.rb +424 -0
- data/lib/groupdocs_signature_cloud/models/{texture_brush_data.rb → texture_brush.rb} +247 -240
- data/lib/groupdocs_signature_cloud/models/time_stamp.rb +257 -0
- data/lib/groupdocs_signature_cloud/models/update_options.rb +374 -0
- data/lib/groupdocs_signature_cloud/models/update_result.rb +276 -0
- data/lib/groupdocs_signature_cloud/models/update_settings.rb +249 -0
- data/lib/groupdocs_signature_cloud/models/{verify_barcode_options_data.rb → verify_barcode_options.rb} +365 -342
- data/lib/groupdocs_signature_cloud/models/{cells_verify_digital_options_data.rb → verify_digital_options.rb} +394 -315
- data/lib/groupdocs_signature_cloud/models/{digital_signature_data.rb → verify_options.rb} +314 -307
- data/lib/groupdocs_signature_cloud/models/{verify_qr_code_options_data.rb → verify_qr_code_options.rb} +365 -342
- data/lib/groupdocs_signature_cloud/models/{images_barcode_signature_data.rb → verify_result.rb} +267 -250
- data/lib/groupdocs_signature_cloud/models/{search_options_collection_data.rb → verify_settings.rb} +249 -232
- data/lib/groupdocs_signature_cloud/models/{cells_verify_barcode_options_data.rb → verify_text_options.rb} +355 -342
- data/lib/groupdocs_signature_cloud/version.rb +2 -2
- data/lib/groupdocs_signature_cloud.rb +125 -191
- metadata +89 -185
- data/lib/groupdocs_signature_cloud/api/signature_api.rb +0 -2590
- data/lib/groupdocs_signature_cloud/models/cells_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/cells_search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/cells_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/cells_sign_barcode_options_data.rb +0 -694
- data/lib/groupdocs_signature_cloud/models/cells_sign_digital_options_data.rb +0 -546
- data/lib/groupdocs_signature_cloud/models/cells_sign_image_options_data.rb +0 -526
- data/lib/groupdocs_signature_cloud/models/cells_sign_qr_code_options_data.rb +0 -704
- data/lib/groupdocs_signature_cloud/models/cells_sign_stamp_options_data.rb +0 -622
- data/lib/groupdocs_signature_cloud/models/cells_sign_text_options_data.rb +0 -736
- data/lib/groupdocs_signature_cloud/models/cells_verify_text_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/images_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/images_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/images_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/images_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/images_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/images_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/images_sign_stamp_options_data.rb +0 -592
- data/lib/groupdocs_signature_cloud/models/images_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/images_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/pdf_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/pdf_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/pdf_search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/pdf_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/pdf_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/pdf_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/pdf_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/pdf_sign_stamp_options_data.rb +0 -592
- data/lib/groupdocs_signature_cloud/models/pdf_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/pdf_verify_digital_options_data.rb +0 -315
- data/lib/groupdocs_signature_cloud/models/pdf_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/pdf_verify_text_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/requests/get_document_info_from_url_request.rb +0 -55
- data/lib/groupdocs_signature_cloud/models/requests/get_document_info_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_barcode_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_barcode_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_collection_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_collection_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_digital_from_url_request.rb +0 -67
- data/lib/groupdocs_signature_cloud/models/requests/post_digital_request.rb +0 -71
- data/lib/groupdocs_signature_cloud/models/requests/post_image_from_url_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_image_request.rb +0 -67
- data/lib/groupdocs_signature_cloud/models/requests/post_qr_code_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_qr_code_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_barcode_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_barcode_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_collection_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_collection_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_digital_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_digital_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_search_qr_code_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_search_qr_code_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_stamp_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_stamp_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_text_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_text_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_barcode_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_barcode_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_collection_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_collection_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_digital_from_url_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_digital_request.rb +0 -67
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_qr_code_from_url_request.rb +0 -59
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_qr_code_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_text_from_url_request.rb +0 -57
- data/lib/groupdocs_signature_cloud/models/requests/post_verification_text_request.rb +0 -63
- data/lib/groupdocs_signature_cloud/models/search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/search_document_response.rb +0 -305
- data/lib/groupdocs_signature_cloud/models/search_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/sign_digital_options_data.rb +0 -516
- data/lib/groupdocs_signature_cloud/models/sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/sign_options_collection_data.rb +0 -232
- data/lib/groupdocs_signature_cloud/models/sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/sign_text_options_data.rb +0 -562
- data/lib/groupdocs_signature_cloud/models/slides_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/slides_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/slides_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/slides_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/slides_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/slides_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/slides_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/slides_sign_text_options_data.rb +0 -670
- data/lib/groupdocs_signature_cloud/models/slides_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/slides_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/slides_verify_text_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/verified_document_response.rb +0 -300
- data/lib/groupdocs_signature_cloud/models/verify_digital_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/verify_text_options_data.rb +0 -285
- data/lib/groupdocs_signature_cloud/models/words_barcode_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/words_qr_code_signature_data.rb +0 -250
- data/lib/groupdocs_signature_cloud/models/words_search_barcode_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/words_search_digital_options_data.rb +0 -265
- data/lib/groupdocs_signature_cloud/models/words_search_qr_code_options_data.rb +0 -332
- data/lib/groupdocs_signature_cloud/models/words_sign_barcode_options_data.rb +0 -664
- data/lib/groupdocs_signature_cloud/models/words_sign_digital_options_data.rb +0 -516
- data/lib/groupdocs_signature_cloud/models/words_sign_image_options_data.rb +0 -496
- data/lib/groupdocs_signature_cloud/models/words_sign_qr_code_options_data.rb +0 -674
- data/lib/groupdocs_signature_cloud/models/words_sign_stamp_options_data.rb +0 -592
- data/lib/groupdocs_signature_cloud/models/words_verify_barcode_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/words_verify_digital_options_data.rb +0 -315
- data/lib/groupdocs_signature_cloud/models/words_verify_qr_code_options_data.rb +0 -342
- data/lib/groupdocs_signature_cloud/models/words_verify_text_options_data.rb +0 -285
@@ -1,2590 +0,0 @@
|
|
1
|
-
# -----------------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose Pty Ltd" file="signature.rb">
|
3
|
-
# Copyright (c) 2003-2018 Aspose Pty Ltd
|
4
|
-
# </copyright>
|
5
|
-
# <summary>
|
6
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
-
# of this software and associated documentation files (the "Software"), to deal
|
8
|
-
# in the Software without restriction, including without limitation the rights
|
9
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
-
# copies of the Software, and to permit persons to whom the Software is
|
11
|
-
# furnished to do so, subject to the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be included in all
|
14
|
-
# copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
22
|
-
# SOFTWARE.
|
23
|
-
# </summary>
|
24
|
-
# -----------------------------------------------------------------------------------
|
25
|
-
|
26
|
-
require 'uri'
|
27
|
-
require 'date'
|
28
|
-
require_relative '../api_client'
|
29
|
-
|
30
|
-
module GroupDocsSignatureCloud
|
31
|
-
#
|
32
|
-
# GroupDocs.Signature Cloud API
|
33
|
-
#
|
34
|
-
class SignatureApi
|
35
|
-
include GroupDocsSignatureCloud
|
36
|
-
|
37
|
-
attr_accessor :config
|
38
|
-
attr_accessor :api_client
|
39
|
-
attr_accessor :access_token
|
40
|
-
|
41
|
-
# Initializes new instance of SignatureApi
|
42
|
-
#
|
43
|
-
# @param [config] Configuration
|
44
|
-
# @return [SignatureApi] New instance of SignatureApi
|
45
|
-
def initialize(config)
|
46
|
-
@config = config
|
47
|
-
@api_client = ApiClient.new(config)
|
48
|
-
require_all '../models/requests'
|
49
|
-
|
50
|
-
@access_token = nil
|
51
|
-
end
|
52
|
-
|
53
|
-
# Initializes new instance of SignatureApi
|
54
|
-
#
|
55
|
-
# @param [app_sid] Application identifier (App SID)
|
56
|
-
# @param [app_key] Application private key (App Key)
|
57
|
-
# @return [SignatureApi] New instance of SignatureApi
|
58
|
-
def self.from_keys(app_sid, app_key)
|
59
|
-
config = Configuration.new(app_sid, app_key)
|
60
|
-
return new(config)
|
61
|
-
end
|
62
|
-
|
63
|
-
# Initializes new instance of SignatureApi
|
64
|
-
#
|
65
|
-
# @param [config] Configuration
|
66
|
-
# @return [SignatureApi] New instance of SignatureApi
|
67
|
-
def self.from_config(config)
|
68
|
-
return new(config)
|
69
|
-
end
|
70
|
-
|
71
|
-
# Retrieves list of supported Barcode type names.
|
72
|
-
#
|
73
|
-
# @return [BarcodeCollection]
|
74
|
-
def get_barcodes()
|
75
|
-
data, _status_code, _headers = get_barcodes_with_http_info()
|
76
|
-
data
|
77
|
-
end
|
78
|
-
|
79
|
-
# Retrieves list of supported Barcode type names.
|
80
|
-
#
|
81
|
-
|
82
|
-
# @return [Array<(BarcodeCollection, Fixnum, Hash)>]
|
83
|
-
# BarcodeCollection data, response status code and response headers
|
84
|
-
def get_barcodes_with_http_info()
|
85
|
-
|
86
|
-
|
87
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.get_barcodes ...' if @api_client.config.debugging
|
88
|
-
# resource path
|
89
|
-
local_var_path = '/signature/barcodes'
|
90
|
-
|
91
|
-
# query parameters
|
92
|
-
query_params = {}
|
93
|
-
|
94
|
-
# header parameters
|
95
|
-
header_params = {}
|
96
|
-
# HTTP header 'Accept' (if needed)
|
97
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
98
|
-
# HTTP header 'Content-Type'
|
99
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
100
|
-
|
101
|
-
# form parameters
|
102
|
-
form_params = {}
|
103
|
-
|
104
|
-
# http body (model)
|
105
|
-
post_body = nil
|
106
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
107
|
-
header_params: header_params,
|
108
|
-
query_params: query_params,
|
109
|
-
form_params: form_params,
|
110
|
-
body: post_body,
|
111
|
-
access_token: get_access_token,
|
112
|
-
return_type: 'BarcodeCollection')
|
113
|
-
if @api_client.config.debugging
|
114
|
-
@api_client.config.logger.debug "API called:
|
115
|
-
SignatureApi#get_barcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
-
end
|
117
|
-
[data, status_code, headers]
|
118
|
-
end
|
119
|
-
|
120
|
-
# Retrieves document information.
|
121
|
-
#
|
122
|
-
# @param request GetDocumentInfoRequest
|
123
|
-
# @return [DocumentInfo]
|
124
|
-
def get_document_info(request)
|
125
|
-
data, _status_code, _headers = get_document_info_with_http_info(request)
|
126
|
-
data
|
127
|
-
end
|
128
|
-
|
129
|
-
# Retrieves document information.
|
130
|
-
#
|
131
|
-
# @param request GetDocumentInfoRequest
|
132
|
-
# @return [Array<(DocumentInfo, Fixnum, Hash)>]
|
133
|
-
# DocumentInfo data, response status code and response headers
|
134
|
-
def get_document_info_with_http_info(request)
|
135
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetDocumentInfoRequest
|
136
|
-
|
137
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.get_document_info ...' if @api_client.config.debugging
|
138
|
-
# verify the required parameter 'file_name' is set
|
139
|
-
raise ArgumentError, 'Missing the required parameter file_name when calling SignatureApi.get_document_info' if @api_client.config.client_side_validation && request.file_name.nil?
|
140
|
-
# resource path
|
141
|
-
local_var_path = '/signature/{fileName}/document/info'
|
142
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('FileName') + '}', request.file_name.to_s)
|
143
|
-
|
144
|
-
# query parameters
|
145
|
-
query_params = {}
|
146
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
147
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
148
|
-
else
|
149
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
150
|
-
end
|
151
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
152
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
153
|
-
else
|
154
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
155
|
-
end
|
156
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
157
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
158
|
-
else
|
159
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
160
|
-
end
|
161
|
-
|
162
|
-
# header parameters
|
163
|
-
header_params = {}
|
164
|
-
# HTTP header 'Accept' (if needed)
|
165
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
166
|
-
# HTTP header 'Content-Type'
|
167
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
168
|
-
|
169
|
-
# form parameters
|
170
|
-
form_params = {}
|
171
|
-
|
172
|
-
# http body (model)
|
173
|
-
post_body = nil
|
174
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
175
|
-
header_params: header_params,
|
176
|
-
query_params: query_params,
|
177
|
-
form_params: form_params,
|
178
|
-
body: post_body,
|
179
|
-
access_token: get_access_token,
|
180
|
-
return_type: 'DocumentInfo')
|
181
|
-
if @api_client.config.debugging
|
182
|
-
@api_client.config.logger.debug "API called:
|
183
|
-
SignatureApi#get_document_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
184
|
-
end
|
185
|
-
[data, status_code, headers]
|
186
|
-
end
|
187
|
-
|
188
|
-
# Retrieves document information for document at provided URL. Retrieves file from specified URL and tries to detect file type when fileName parameter is not specified. Saves retrieved file in storage. Use fileName and folder parameters to specify desired file name and folder to save file. When file with specified name already exists in storage new unique file name will be used for file.
|
189
|
-
#
|
190
|
-
# @param request GetDocumentInfoFromUrlRequest
|
191
|
-
# @return [DocumentInfo]
|
192
|
-
def get_document_info_from_url(request)
|
193
|
-
data, _status_code, _headers = get_document_info_from_url_with_http_info(request)
|
194
|
-
data
|
195
|
-
end
|
196
|
-
|
197
|
-
# Retrieves document information for document at provided URL. Retrieves file from specified URL and tries to detect file type when fileName parameter is not specified. Saves retrieved file in storage. Use fileName and folder parameters to specify desired file name and folder to save file. When file with specified name already exists in storage new unique file name will be used for file.
|
198
|
-
#
|
199
|
-
# @param request GetDocumentInfoFromUrlRequest
|
200
|
-
# @return [Array<(DocumentInfo, Fixnum, Hash)>]
|
201
|
-
# DocumentInfo data, response status code and response headers
|
202
|
-
def get_document_info_from_url_with_http_info(request)
|
203
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? GetDocumentInfoFromUrlRequest
|
204
|
-
|
205
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.get_document_info_from_url ...' if @api_client.config.debugging
|
206
|
-
# verify the required parameter 'url' is set
|
207
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.get_document_info_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
208
|
-
# resource path
|
209
|
-
local_var_path = '/signature/document/info'
|
210
|
-
|
211
|
-
# query parameters
|
212
|
-
query_params = {}
|
213
|
-
query_params[downcase_first_letter('Url')] = request.url
|
214
|
-
|
215
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
216
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
217
|
-
else
|
218
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
219
|
-
end
|
220
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
221
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
222
|
-
else
|
223
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
224
|
-
end
|
225
|
-
|
226
|
-
# header parameters
|
227
|
-
header_params = {}
|
228
|
-
# HTTP header 'Accept' (if needed)
|
229
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
230
|
-
# HTTP header 'Content-Type'
|
231
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
232
|
-
|
233
|
-
# form parameters
|
234
|
-
form_params = {}
|
235
|
-
|
236
|
-
# http body (model)
|
237
|
-
post_body = nil
|
238
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
239
|
-
header_params: header_params,
|
240
|
-
query_params: query_params,
|
241
|
-
form_params: form_params,
|
242
|
-
body: post_body,
|
243
|
-
access_token: get_access_token,
|
244
|
-
return_type: 'DocumentInfo')
|
245
|
-
if @api_client.config.debugging
|
246
|
-
@api_client.config.logger.debug "API called:
|
247
|
-
SignatureApi#get_document_info_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
248
|
-
end
|
249
|
-
[data, status_code, headers]
|
250
|
-
end
|
251
|
-
|
252
|
-
# Retrieves list of supported QR-Code type names.
|
253
|
-
#
|
254
|
-
# @return [QRCodeCollection]
|
255
|
-
def get_qr_codes()
|
256
|
-
data, _status_code, _headers = get_qr_codes_with_http_info()
|
257
|
-
data
|
258
|
-
end
|
259
|
-
|
260
|
-
# Retrieves list of supported QR-Code type names.
|
261
|
-
#
|
262
|
-
|
263
|
-
# @return [Array<(QRCodeCollection, Fixnum, Hash)>]
|
264
|
-
# QRCodeCollection data, response status code and response headers
|
265
|
-
def get_qr_codes_with_http_info()
|
266
|
-
|
267
|
-
|
268
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.get_qr_codes ...' if @api_client.config.debugging
|
269
|
-
# resource path
|
270
|
-
local_var_path = '/signature/qrcodes'
|
271
|
-
|
272
|
-
# query parameters
|
273
|
-
query_params = {}
|
274
|
-
|
275
|
-
# header parameters
|
276
|
-
header_params = {}
|
277
|
-
# HTTP header 'Accept' (if needed)
|
278
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
279
|
-
# HTTP header 'Content-Type'
|
280
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
281
|
-
|
282
|
-
# form parameters
|
283
|
-
form_params = {}
|
284
|
-
|
285
|
-
# http body (model)
|
286
|
-
post_body = nil
|
287
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
288
|
-
header_params: header_params,
|
289
|
-
query_params: query_params,
|
290
|
-
form_params: form_params,
|
291
|
-
body: post_body,
|
292
|
-
access_token: get_access_token,
|
293
|
-
return_type: 'QRCodeCollection')
|
294
|
-
if @api_client.config.debugging
|
295
|
-
@api_client.config.logger.debug "API called:
|
296
|
-
SignatureApi#get_qr_codes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
297
|
-
end
|
298
|
-
[data, status_code, headers]
|
299
|
-
end
|
300
|
-
|
301
|
-
# Lists supported file formats.
|
302
|
-
#
|
303
|
-
# @return [FormatCollection]
|
304
|
-
def get_supported_formats()
|
305
|
-
data, _status_code, _headers = get_supported_formats_with_http_info()
|
306
|
-
data
|
307
|
-
end
|
308
|
-
|
309
|
-
# Lists supported file formats.
|
310
|
-
#
|
311
|
-
|
312
|
-
# @return [Array<(FormatCollection, Fixnum, Hash)>]
|
313
|
-
# FormatCollection data, response status code and response headers
|
314
|
-
def get_supported_formats_with_http_info()
|
315
|
-
|
316
|
-
|
317
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.get_supported_formats ...' if @api_client.config.debugging
|
318
|
-
# resource path
|
319
|
-
local_var_path = '/signature/formats'
|
320
|
-
|
321
|
-
# query parameters
|
322
|
-
query_params = {}
|
323
|
-
|
324
|
-
# header parameters
|
325
|
-
header_params = {}
|
326
|
-
# HTTP header 'Accept' (if needed)
|
327
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
328
|
-
# HTTP header 'Content-Type'
|
329
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
330
|
-
|
331
|
-
# form parameters
|
332
|
-
form_params = {}
|
333
|
-
|
334
|
-
# http body (model)
|
335
|
-
post_body = nil
|
336
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
337
|
-
header_params: header_params,
|
338
|
-
query_params: query_params,
|
339
|
-
form_params: form_params,
|
340
|
-
body: post_body,
|
341
|
-
access_token: get_access_token,
|
342
|
-
return_type: 'FormatCollection')
|
343
|
-
if @api_client.config.debugging
|
344
|
-
@api_client.config.logger.debug "API called:
|
345
|
-
SignatureApi#get_supported_formats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
346
|
-
end
|
347
|
-
[data, status_code, headers]
|
348
|
-
end
|
349
|
-
|
350
|
-
# Insert Barcode Signature into the Document
|
351
|
-
#
|
352
|
-
# @param request PostBarcodeRequest
|
353
|
-
# @return [SignatureDocumentResponse]
|
354
|
-
def post_barcode(request)
|
355
|
-
data, _status_code, _headers = post_barcode_with_http_info(request)
|
356
|
-
data
|
357
|
-
end
|
358
|
-
|
359
|
-
# Insert Barcode Signature into the Document
|
360
|
-
#
|
361
|
-
# @param request PostBarcodeRequest
|
362
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
363
|
-
# SignatureDocumentResponse data, response status code and response headers
|
364
|
-
def post_barcode_with_http_info(request)
|
365
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostBarcodeRequest
|
366
|
-
|
367
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_barcode ...' if @api_client.config.debugging
|
368
|
-
# verify the required parameter 'name' is set
|
369
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_barcode' if @api_client.config.client_side_validation && request.name.nil?
|
370
|
-
# resource path
|
371
|
-
local_var_path = '/signature/{name}/barcode'
|
372
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
373
|
-
|
374
|
-
# query parameters
|
375
|
-
query_params = {}
|
376
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
377
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
378
|
-
else
|
379
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
380
|
-
end
|
381
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
382
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
383
|
-
else
|
384
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
385
|
-
end
|
386
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
387
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
388
|
-
else
|
389
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
390
|
-
end
|
391
|
-
|
392
|
-
# header parameters
|
393
|
-
header_params = {}
|
394
|
-
# HTTP header 'Accept' (if needed)
|
395
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
396
|
-
# HTTP header 'Content-Type'
|
397
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
398
|
-
|
399
|
-
# form parameters
|
400
|
-
form_params = {}
|
401
|
-
|
402
|
-
# http body (model)
|
403
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
404
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
405
|
-
header_params: header_params,
|
406
|
-
query_params: query_params,
|
407
|
-
form_params: form_params,
|
408
|
-
body: post_body,
|
409
|
-
access_token: get_access_token,
|
410
|
-
return_type: 'SignatureDocumentResponse')
|
411
|
-
if @api_client.config.debugging
|
412
|
-
@api_client.config.logger.debug "API called:
|
413
|
-
SignatureApi#post_barcode\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
414
|
-
end
|
415
|
-
[data, status_code, headers]
|
416
|
-
end
|
417
|
-
|
418
|
-
# Insert Barcode Signature into the Document provided by URL
|
419
|
-
#
|
420
|
-
# @param request PostBarcodeFromUrlRequest
|
421
|
-
# @return [SignatureDocumentResponse]
|
422
|
-
def post_barcode_from_url(request)
|
423
|
-
data, _status_code, _headers = post_barcode_from_url_with_http_info(request)
|
424
|
-
data
|
425
|
-
end
|
426
|
-
|
427
|
-
# Insert Barcode Signature into the Document provided by URL
|
428
|
-
#
|
429
|
-
# @param request PostBarcodeFromUrlRequest
|
430
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
431
|
-
# SignatureDocumentResponse data, response status code and response headers
|
432
|
-
def post_barcode_from_url_with_http_info(request)
|
433
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostBarcodeFromUrlRequest
|
434
|
-
|
435
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_barcode_from_url ...' if @api_client.config.debugging
|
436
|
-
# verify the required parameter 'url' is set
|
437
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_barcode_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
438
|
-
# resource path
|
439
|
-
local_var_path = '/signature/barcode'
|
440
|
-
|
441
|
-
# query parameters
|
442
|
-
query_params = {}
|
443
|
-
query_params[downcase_first_letter('Url')] = request.url
|
444
|
-
|
445
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
446
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
447
|
-
else
|
448
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
449
|
-
end
|
450
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
451
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
452
|
-
else
|
453
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
454
|
-
end
|
455
|
-
|
456
|
-
# header parameters
|
457
|
-
header_params = {}
|
458
|
-
# HTTP header 'Accept' (if needed)
|
459
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
460
|
-
# HTTP header 'Content-Type'
|
461
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
462
|
-
|
463
|
-
# form parameters
|
464
|
-
form_params = {}
|
465
|
-
|
466
|
-
# http body (model)
|
467
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
468
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
469
|
-
header_params: header_params,
|
470
|
-
query_params: query_params,
|
471
|
-
form_params: form_params,
|
472
|
-
body: post_body,
|
473
|
-
access_token: get_access_token,
|
474
|
-
return_type: 'SignatureDocumentResponse')
|
475
|
-
if @api_client.config.debugging
|
476
|
-
@api_client.config.logger.debug "API called:
|
477
|
-
SignatureApi#post_barcode_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
478
|
-
end
|
479
|
-
[data, status_code, headers]
|
480
|
-
end
|
481
|
-
|
482
|
-
# Insert Signature into the Document
|
483
|
-
#
|
484
|
-
# @param request PostCollectionRequest
|
485
|
-
# @return [SignatureDocumentResponse]
|
486
|
-
def post_collection(request)
|
487
|
-
data, _status_code, _headers = post_collection_with_http_info(request)
|
488
|
-
data
|
489
|
-
end
|
490
|
-
|
491
|
-
# Insert Signature into the Document
|
492
|
-
#
|
493
|
-
# @param request PostCollectionRequest
|
494
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
495
|
-
# SignatureDocumentResponse data, response status code and response headers
|
496
|
-
def post_collection_with_http_info(request)
|
497
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostCollectionRequest
|
498
|
-
|
499
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_collection ...' if @api_client.config.debugging
|
500
|
-
# verify the required parameter 'name' is set
|
501
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_collection' if @api_client.config.client_side_validation && request.name.nil?
|
502
|
-
# resource path
|
503
|
-
local_var_path = '/signature/{name}/collection'
|
504
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
505
|
-
|
506
|
-
# query parameters
|
507
|
-
query_params = {}
|
508
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
509
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
510
|
-
else
|
511
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
512
|
-
end
|
513
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
514
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
515
|
-
else
|
516
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
517
|
-
end
|
518
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
519
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
520
|
-
else
|
521
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
522
|
-
end
|
523
|
-
|
524
|
-
# header parameters
|
525
|
-
header_params = {}
|
526
|
-
# HTTP header 'Accept' (if needed)
|
527
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
528
|
-
# HTTP header 'Content-Type'
|
529
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
530
|
-
|
531
|
-
# form parameters
|
532
|
-
form_params = {}
|
533
|
-
|
534
|
-
# http body (model)
|
535
|
-
post_body = @api_client.object_to_http_body(request.sign_options_collection_data)
|
536
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
537
|
-
header_params: header_params,
|
538
|
-
query_params: query_params,
|
539
|
-
form_params: form_params,
|
540
|
-
body: post_body,
|
541
|
-
access_token: get_access_token,
|
542
|
-
return_type: 'SignatureDocumentResponse')
|
543
|
-
if @api_client.config.debugging
|
544
|
-
@api_client.config.logger.debug "API called:
|
545
|
-
SignatureApi#post_collection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
546
|
-
end
|
547
|
-
[data, status_code, headers]
|
548
|
-
end
|
549
|
-
|
550
|
-
# Insert Stamp Signature into the Document provided by URL
|
551
|
-
#
|
552
|
-
# @param request PostCollectionFromUrlRequest
|
553
|
-
# @return [SignatureDocumentResponse]
|
554
|
-
def post_collection_from_url(request)
|
555
|
-
data, _status_code, _headers = post_collection_from_url_with_http_info(request)
|
556
|
-
data
|
557
|
-
end
|
558
|
-
|
559
|
-
# Insert Stamp Signature into the Document provided by URL
|
560
|
-
#
|
561
|
-
# @param request PostCollectionFromUrlRequest
|
562
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
563
|
-
# SignatureDocumentResponse data, response status code and response headers
|
564
|
-
def post_collection_from_url_with_http_info(request)
|
565
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostCollectionFromUrlRequest
|
566
|
-
|
567
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_collection_from_url ...' if @api_client.config.debugging
|
568
|
-
# verify the required parameter 'url' is set
|
569
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_collection_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
570
|
-
# resource path
|
571
|
-
local_var_path = '/signature/collection'
|
572
|
-
|
573
|
-
# query parameters
|
574
|
-
query_params = {}
|
575
|
-
query_params[downcase_first_letter('Url')] = request.url
|
576
|
-
|
577
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
578
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
579
|
-
else
|
580
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
581
|
-
end
|
582
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
583
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
584
|
-
else
|
585
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
586
|
-
end
|
587
|
-
|
588
|
-
# header parameters
|
589
|
-
header_params = {}
|
590
|
-
# HTTP header 'Accept' (if needed)
|
591
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
592
|
-
# HTTP header 'Content-Type'
|
593
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
594
|
-
|
595
|
-
# form parameters
|
596
|
-
form_params = {}
|
597
|
-
|
598
|
-
# http body (model)
|
599
|
-
post_body = @api_client.object_to_http_body(request.sign_options_collection_data)
|
600
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
601
|
-
header_params: header_params,
|
602
|
-
query_params: query_params,
|
603
|
-
form_params: form_params,
|
604
|
-
body: post_body,
|
605
|
-
access_token: get_access_token,
|
606
|
-
return_type: 'SignatureDocumentResponse')
|
607
|
-
if @api_client.config.debugging
|
608
|
-
@api_client.config.logger.debug "API called:
|
609
|
-
SignatureApi#post_collection_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
610
|
-
end
|
611
|
-
[data, status_code, headers]
|
612
|
-
end
|
613
|
-
|
614
|
-
# Insert Digital Signature into the Document
|
615
|
-
#
|
616
|
-
# @param request PostDigitalRequest
|
617
|
-
# @return [SignatureDocumentResponse]
|
618
|
-
def post_digital(request)
|
619
|
-
data, _status_code, _headers = post_digital_with_http_info(request)
|
620
|
-
data
|
621
|
-
end
|
622
|
-
|
623
|
-
# Insert Digital Signature into the Document
|
624
|
-
#
|
625
|
-
# @param request PostDigitalRequest
|
626
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
627
|
-
# SignatureDocumentResponse data, response status code and response headers
|
628
|
-
def post_digital_with_http_info(request)
|
629
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDigitalRequest
|
630
|
-
|
631
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_digital ...' if @api_client.config.debugging
|
632
|
-
# verify the required parameter 'name' is set
|
633
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_digital' if @api_client.config.client_side_validation && request.name.nil?
|
634
|
-
# resource path
|
635
|
-
local_var_path = '/signature/{name}/digital'
|
636
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
637
|
-
|
638
|
-
# query parameters
|
639
|
-
query_params = {}
|
640
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
641
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
642
|
-
else
|
643
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
644
|
-
end
|
645
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
646
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
647
|
-
else
|
648
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
649
|
-
end
|
650
|
-
if local_var_path.include? ('{' + downcase_first_letter('CertificateFile') + '}')
|
651
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('CertificateFile') + '}', request.certificate_file.to_s)
|
652
|
-
else
|
653
|
-
query_params[downcase_first_letter('CertificateFile')] = request.certificate_file unless request.certificate_file.nil?
|
654
|
-
end
|
655
|
-
if local_var_path.include? ('{' + downcase_first_letter('ImageFile') + '}')
|
656
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('ImageFile') + '}', request.image_file.to_s)
|
657
|
-
else
|
658
|
-
query_params[downcase_first_letter('ImageFile')] = request.image_file unless request.image_file.nil?
|
659
|
-
end
|
660
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
661
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
662
|
-
else
|
663
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
664
|
-
end
|
665
|
-
|
666
|
-
# header parameters
|
667
|
-
header_params = {}
|
668
|
-
# HTTP header 'Accept' (if needed)
|
669
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
670
|
-
# HTTP header 'Content-Type'
|
671
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
672
|
-
|
673
|
-
# form parameters
|
674
|
-
form_params = {}
|
675
|
-
|
676
|
-
# http body (model)
|
677
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
678
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
679
|
-
header_params: header_params,
|
680
|
-
query_params: query_params,
|
681
|
-
form_params: form_params,
|
682
|
-
body: post_body,
|
683
|
-
access_token: get_access_token,
|
684
|
-
return_type: 'SignatureDocumentResponse')
|
685
|
-
if @api_client.config.debugging
|
686
|
-
@api_client.config.logger.debug "API called:
|
687
|
-
SignatureApi#post_digital\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
688
|
-
end
|
689
|
-
[data, status_code, headers]
|
690
|
-
end
|
691
|
-
|
692
|
-
# Insert Digital Signature into the Document
|
693
|
-
#
|
694
|
-
# @param request PostDigitalFromUrlRequest
|
695
|
-
# @return [SignatureDocumentResponse]
|
696
|
-
def post_digital_from_url(request)
|
697
|
-
data, _status_code, _headers = post_digital_from_url_with_http_info(request)
|
698
|
-
data
|
699
|
-
end
|
700
|
-
|
701
|
-
# Insert Digital Signature into the Document
|
702
|
-
#
|
703
|
-
# @param request PostDigitalFromUrlRequest
|
704
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
705
|
-
# SignatureDocumentResponse data, response status code and response headers
|
706
|
-
def post_digital_from_url_with_http_info(request)
|
707
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostDigitalFromUrlRequest
|
708
|
-
|
709
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_digital_from_url ...' if @api_client.config.debugging
|
710
|
-
# verify the required parameter 'url' is set
|
711
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_digital_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
712
|
-
# resource path
|
713
|
-
local_var_path = '/signature/digital'
|
714
|
-
|
715
|
-
# query parameters
|
716
|
-
query_params = {}
|
717
|
-
query_params[downcase_first_letter('Url')] = request.url
|
718
|
-
|
719
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
720
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
721
|
-
else
|
722
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
723
|
-
end
|
724
|
-
if local_var_path.include? ('{' + downcase_first_letter('CertificateFile') + '}')
|
725
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('CertificateFile') + '}', request.certificate_file.to_s)
|
726
|
-
else
|
727
|
-
query_params[downcase_first_letter('CertificateFile')] = request.certificate_file unless request.certificate_file.nil?
|
728
|
-
end
|
729
|
-
if local_var_path.include? ('{' + downcase_first_letter('ImageFile') + '}')
|
730
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('ImageFile') + '}', request.image_file.to_s)
|
731
|
-
else
|
732
|
-
query_params[downcase_first_letter('ImageFile')] = request.image_file unless request.image_file.nil?
|
733
|
-
end
|
734
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
735
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
736
|
-
else
|
737
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
738
|
-
end
|
739
|
-
|
740
|
-
# header parameters
|
741
|
-
header_params = {}
|
742
|
-
# HTTP header 'Accept' (if needed)
|
743
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
744
|
-
# HTTP header 'Content-Type'
|
745
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
746
|
-
|
747
|
-
# form parameters
|
748
|
-
form_params = {}
|
749
|
-
|
750
|
-
# http body (model)
|
751
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
752
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
753
|
-
header_params: header_params,
|
754
|
-
query_params: query_params,
|
755
|
-
form_params: form_params,
|
756
|
-
body: post_body,
|
757
|
-
access_token: get_access_token,
|
758
|
-
return_type: 'SignatureDocumentResponse')
|
759
|
-
if @api_client.config.debugging
|
760
|
-
@api_client.config.logger.debug "API called:
|
761
|
-
SignatureApi#post_digital_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
762
|
-
end
|
763
|
-
[data, status_code, headers]
|
764
|
-
end
|
765
|
-
|
766
|
-
# Insert Image Signature into the Document
|
767
|
-
#
|
768
|
-
# @param request PostImageRequest
|
769
|
-
# @return [SignatureDocumentResponse]
|
770
|
-
def post_image(request)
|
771
|
-
data, _status_code, _headers = post_image_with_http_info(request)
|
772
|
-
data
|
773
|
-
end
|
774
|
-
|
775
|
-
# Insert Image Signature into the Document
|
776
|
-
#
|
777
|
-
# @param request PostImageRequest
|
778
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
779
|
-
# SignatureDocumentResponse data, response status code and response headers
|
780
|
-
def post_image_with_http_info(request)
|
781
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostImageRequest
|
782
|
-
|
783
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_image ...' if @api_client.config.debugging
|
784
|
-
# verify the required parameter 'name' is set
|
785
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_image' if @api_client.config.client_side_validation && request.name.nil?
|
786
|
-
# resource path
|
787
|
-
local_var_path = '/signature/{name}/image'
|
788
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
789
|
-
|
790
|
-
# query parameters
|
791
|
-
query_params = {}
|
792
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
793
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
794
|
-
else
|
795
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
796
|
-
end
|
797
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
798
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
799
|
-
else
|
800
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
801
|
-
end
|
802
|
-
if local_var_path.include? ('{' + downcase_first_letter('Image') + '}')
|
803
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Image') + '}', request.image.to_s)
|
804
|
-
else
|
805
|
-
query_params[downcase_first_letter('Image')] = request.image unless request.image.nil?
|
806
|
-
end
|
807
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
808
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
809
|
-
else
|
810
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
811
|
-
end
|
812
|
-
|
813
|
-
# header parameters
|
814
|
-
header_params = {}
|
815
|
-
# HTTP header 'Accept' (if needed)
|
816
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
817
|
-
# HTTP header 'Content-Type'
|
818
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
819
|
-
|
820
|
-
# form parameters
|
821
|
-
form_params = {}
|
822
|
-
|
823
|
-
# http body (model)
|
824
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
825
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
826
|
-
header_params: header_params,
|
827
|
-
query_params: query_params,
|
828
|
-
form_params: form_params,
|
829
|
-
body: post_body,
|
830
|
-
access_token: get_access_token,
|
831
|
-
return_type: 'SignatureDocumentResponse')
|
832
|
-
if @api_client.config.debugging
|
833
|
-
@api_client.config.logger.debug "API called:
|
834
|
-
SignatureApi#post_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
835
|
-
end
|
836
|
-
[data, status_code, headers]
|
837
|
-
end
|
838
|
-
|
839
|
-
# Insert Image Signature into the Document provided by URL
|
840
|
-
#
|
841
|
-
# @param request PostImageFromUrlRequest
|
842
|
-
# @return [SignatureDocumentResponse]
|
843
|
-
def post_image_from_url(request)
|
844
|
-
data, _status_code, _headers = post_image_from_url_with_http_info(request)
|
845
|
-
data
|
846
|
-
end
|
847
|
-
|
848
|
-
# Insert Image Signature into the Document provided by URL
|
849
|
-
#
|
850
|
-
# @param request PostImageFromUrlRequest
|
851
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
852
|
-
# SignatureDocumentResponse data, response status code and response headers
|
853
|
-
def post_image_from_url_with_http_info(request)
|
854
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostImageFromUrlRequest
|
855
|
-
|
856
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_image_from_url ...' if @api_client.config.debugging
|
857
|
-
# verify the required parameter 'url' is set
|
858
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_image_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
859
|
-
# resource path
|
860
|
-
local_var_path = '/signature/image'
|
861
|
-
|
862
|
-
# query parameters
|
863
|
-
query_params = {}
|
864
|
-
query_params[downcase_first_letter('Url')] = request.url
|
865
|
-
|
866
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
867
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
868
|
-
else
|
869
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
870
|
-
end
|
871
|
-
if local_var_path.include? ('{' + downcase_first_letter('Image') + '}')
|
872
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Image') + '}', request.image.to_s)
|
873
|
-
else
|
874
|
-
query_params[downcase_first_letter('Image')] = request.image unless request.image.nil?
|
875
|
-
end
|
876
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
877
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
878
|
-
else
|
879
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
880
|
-
end
|
881
|
-
|
882
|
-
# header parameters
|
883
|
-
header_params = {}
|
884
|
-
# HTTP header 'Accept' (if needed)
|
885
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
886
|
-
# HTTP header 'Content-Type'
|
887
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
888
|
-
|
889
|
-
# form parameters
|
890
|
-
form_params = {}
|
891
|
-
|
892
|
-
# http body (model)
|
893
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
894
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
895
|
-
header_params: header_params,
|
896
|
-
query_params: query_params,
|
897
|
-
form_params: form_params,
|
898
|
-
body: post_body,
|
899
|
-
access_token: get_access_token,
|
900
|
-
return_type: 'SignatureDocumentResponse')
|
901
|
-
if @api_client.config.debugging
|
902
|
-
@api_client.config.logger.debug "API called:
|
903
|
-
SignatureApi#post_image_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
904
|
-
end
|
905
|
-
[data, status_code, headers]
|
906
|
-
end
|
907
|
-
|
908
|
-
# Insert QRCode Signature into the Document
|
909
|
-
#
|
910
|
-
# @param request PostQrCodeRequest
|
911
|
-
# @return [SignatureDocumentResponse]
|
912
|
-
def post_qr_code(request)
|
913
|
-
data, _status_code, _headers = post_qr_code_with_http_info(request)
|
914
|
-
data
|
915
|
-
end
|
916
|
-
|
917
|
-
# Insert QRCode Signature into the Document
|
918
|
-
#
|
919
|
-
# @param request PostQrCodeRequest
|
920
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
921
|
-
# SignatureDocumentResponse data, response status code and response headers
|
922
|
-
def post_qr_code_with_http_info(request)
|
923
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostQrCodeRequest
|
924
|
-
|
925
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_qr_code ...' if @api_client.config.debugging
|
926
|
-
# verify the required parameter 'name' is set
|
927
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_qr_code' if @api_client.config.client_side_validation && request.name.nil?
|
928
|
-
# resource path
|
929
|
-
local_var_path = '/signature/{name}/qrcode'
|
930
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
931
|
-
|
932
|
-
# query parameters
|
933
|
-
query_params = {}
|
934
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
935
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
936
|
-
else
|
937
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
938
|
-
end
|
939
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
940
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
941
|
-
else
|
942
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
943
|
-
end
|
944
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
945
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
946
|
-
else
|
947
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
948
|
-
end
|
949
|
-
|
950
|
-
# header parameters
|
951
|
-
header_params = {}
|
952
|
-
# HTTP header 'Accept' (if needed)
|
953
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
954
|
-
# HTTP header 'Content-Type'
|
955
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
956
|
-
|
957
|
-
# form parameters
|
958
|
-
form_params = {}
|
959
|
-
|
960
|
-
# http body (model)
|
961
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
962
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
963
|
-
header_params: header_params,
|
964
|
-
query_params: query_params,
|
965
|
-
form_params: form_params,
|
966
|
-
body: post_body,
|
967
|
-
access_token: get_access_token,
|
968
|
-
return_type: 'SignatureDocumentResponse')
|
969
|
-
if @api_client.config.debugging
|
970
|
-
@api_client.config.logger.debug "API called:
|
971
|
-
SignatureApi#post_qr_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
972
|
-
end
|
973
|
-
[data, status_code, headers]
|
974
|
-
end
|
975
|
-
|
976
|
-
# Insert QRCode Signature into the Document provided by URL
|
977
|
-
#
|
978
|
-
# @param request PostQrCodeFromUrlRequest
|
979
|
-
# @return [SignatureDocumentResponse]
|
980
|
-
def post_qr_code_from_url(request)
|
981
|
-
data, _status_code, _headers = post_qr_code_from_url_with_http_info(request)
|
982
|
-
data
|
983
|
-
end
|
984
|
-
|
985
|
-
# Insert QRCode Signature into the Document provided by URL
|
986
|
-
#
|
987
|
-
# @param request PostQrCodeFromUrlRequest
|
988
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
989
|
-
# SignatureDocumentResponse data, response status code and response headers
|
990
|
-
def post_qr_code_from_url_with_http_info(request)
|
991
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostQrCodeFromUrlRequest
|
992
|
-
|
993
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_qr_code_from_url ...' if @api_client.config.debugging
|
994
|
-
# verify the required parameter 'url' is set
|
995
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_qr_code_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
996
|
-
# resource path
|
997
|
-
local_var_path = '/signature/qrcode'
|
998
|
-
|
999
|
-
# query parameters
|
1000
|
-
query_params = {}
|
1001
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1002
|
-
|
1003
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1004
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1005
|
-
else
|
1006
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1007
|
-
end
|
1008
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1009
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1010
|
-
else
|
1011
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1012
|
-
end
|
1013
|
-
|
1014
|
-
# header parameters
|
1015
|
-
header_params = {}
|
1016
|
-
# HTTP header 'Accept' (if needed)
|
1017
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1018
|
-
# HTTP header 'Content-Type'
|
1019
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1020
|
-
|
1021
|
-
# form parameters
|
1022
|
-
form_params = {}
|
1023
|
-
|
1024
|
-
# http body (model)
|
1025
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
1026
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1027
|
-
header_params: header_params,
|
1028
|
-
query_params: query_params,
|
1029
|
-
form_params: form_params,
|
1030
|
-
body: post_body,
|
1031
|
-
access_token: get_access_token,
|
1032
|
-
return_type: 'SignatureDocumentResponse')
|
1033
|
-
if @api_client.config.debugging
|
1034
|
-
@api_client.config.logger.debug "API called:
|
1035
|
-
SignatureApi#post_qr_code_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1036
|
-
end
|
1037
|
-
[data, status_code, headers]
|
1038
|
-
end
|
1039
|
-
|
1040
|
-
# Search the Document with Barcode Signatures
|
1041
|
-
#
|
1042
|
-
# @param request PostSearchBarcodeRequest
|
1043
|
-
# @return [SearchDocumentResponse]
|
1044
|
-
def post_search_barcode(request)
|
1045
|
-
data, _status_code, _headers = post_search_barcode_with_http_info(request)
|
1046
|
-
data
|
1047
|
-
end
|
1048
|
-
|
1049
|
-
# Search the Document with Barcode Signatures
|
1050
|
-
#
|
1051
|
-
# @param request PostSearchBarcodeRequest
|
1052
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1053
|
-
# SearchDocumentResponse data, response status code and response headers
|
1054
|
-
def post_search_barcode_with_http_info(request)
|
1055
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchBarcodeRequest
|
1056
|
-
|
1057
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_barcode ...' if @api_client.config.debugging
|
1058
|
-
# verify the required parameter 'name' is set
|
1059
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_search_barcode' if @api_client.config.client_side_validation && request.name.nil?
|
1060
|
-
# resource path
|
1061
|
-
local_var_path = '/signature/{name}/barcode/search'
|
1062
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1063
|
-
|
1064
|
-
# query parameters
|
1065
|
-
query_params = {}
|
1066
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1067
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1068
|
-
else
|
1069
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1070
|
-
end
|
1071
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1072
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1073
|
-
else
|
1074
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1075
|
-
end
|
1076
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1077
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1078
|
-
else
|
1079
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1080
|
-
end
|
1081
|
-
|
1082
|
-
# header parameters
|
1083
|
-
header_params = {}
|
1084
|
-
# HTTP header 'Accept' (if needed)
|
1085
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1086
|
-
# HTTP header 'Content-Type'
|
1087
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1088
|
-
|
1089
|
-
# form parameters
|
1090
|
-
form_params = {}
|
1091
|
-
|
1092
|
-
# http body (model)
|
1093
|
-
post_body = @api_client.object_to_http_body(request.search_options_data)
|
1094
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1095
|
-
header_params: header_params,
|
1096
|
-
query_params: query_params,
|
1097
|
-
form_params: form_params,
|
1098
|
-
body: post_body,
|
1099
|
-
access_token: get_access_token,
|
1100
|
-
return_type: 'SearchDocumentResponse')
|
1101
|
-
if @api_client.config.debugging
|
1102
|
-
@api_client.config.logger.debug "API called:
|
1103
|
-
SignatureApi#post_search_barcode\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1104
|
-
end
|
1105
|
-
[data, status_code, headers]
|
1106
|
-
end
|
1107
|
-
|
1108
|
-
# Search the url based Document with Barcode Signatures
|
1109
|
-
#
|
1110
|
-
# @param request PostSearchBarcodeFromUrlRequest
|
1111
|
-
# @return [SearchDocumentResponse]
|
1112
|
-
def post_search_barcode_from_url(request)
|
1113
|
-
data, _status_code, _headers = post_search_barcode_from_url_with_http_info(request)
|
1114
|
-
data
|
1115
|
-
end
|
1116
|
-
|
1117
|
-
# Search the url based Document with Barcode Signatures
|
1118
|
-
#
|
1119
|
-
# @param request PostSearchBarcodeFromUrlRequest
|
1120
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1121
|
-
# SearchDocumentResponse data, response status code and response headers
|
1122
|
-
def post_search_barcode_from_url_with_http_info(request)
|
1123
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchBarcodeFromUrlRequest
|
1124
|
-
|
1125
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_barcode_from_url ...' if @api_client.config.debugging
|
1126
|
-
# verify the required parameter 'url' is set
|
1127
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_search_barcode_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1128
|
-
# resource path
|
1129
|
-
local_var_path = '/signature/barcode/search'
|
1130
|
-
|
1131
|
-
# query parameters
|
1132
|
-
query_params = {}
|
1133
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1134
|
-
|
1135
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1136
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1137
|
-
else
|
1138
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1139
|
-
end
|
1140
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1141
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1142
|
-
else
|
1143
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1144
|
-
end
|
1145
|
-
|
1146
|
-
# header parameters
|
1147
|
-
header_params = {}
|
1148
|
-
# HTTP header 'Accept' (if needed)
|
1149
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1150
|
-
# HTTP header 'Content-Type'
|
1151
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1152
|
-
|
1153
|
-
# form parameters
|
1154
|
-
form_params = {}
|
1155
|
-
|
1156
|
-
# http body (model)
|
1157
|
-
post_body = @api_client.object_to_http_body(request.search_options_data)
|
1158
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1159
|
-
header_params: header_params,
|
1160
|
-
query_params: query_params,
|
1161
|
-
form_params: form_params,
|
1162
|
-
body: post_body,
|
1163
|
-
access_token: get_access_token,
|
1164
|
-
return_type: 'SearchDocumentResponse')
|
1165
|
-
if @api_client.config.debugging
|
1166
|
-
@api_client.config.logger.debug "API called:
|
1167
|
-
SignatureApi#post_search_barcode_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1168
|
-
end
|
1169
|
-
[data, status_code, headers]
|
1170
|
-
end
|
1171
|
-
|
1172
|
-
# Search the Document.
|
1173
|
-
#
|
1174
|
-
# @param request PostSearchCollectionRequest
|
1175
|
-
# @return [SearchDocumentResponse]
|
1176
|
-
def post_search_collection(request)
|
1177
|
-
data, _status_code, _headers = post_search_collection_with_http_info(request)
|
1178
|
-
data
|
1179
|
-
end
|
1180
|
-
|
1181
|
-
# Search the Document.
|
1182
|
-
#
|
1183
|
-
# @param request PostSearchCollectionRequest
|
1184
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1185
|
-
# SearchDocumentResponse data, response status code and response headers
|
1186
|
-
def post_search_collection_with_http_info(request)
|
1187
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchCollectionRequest
|
1188
|
-
|
1189
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_collection ...' if @api_client.config.debugging
|
1190
|
-
# verify the required parameter 'name' is set
|
1191
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_search_collection' if @api_client.config.client_side_validation && request.name.nil?
|
1192
|
-
# resource path
|
1193
|
-
local_var_path = '/signature/{name}/collection/search'
|
1194
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1195
|
-
|
1196
|
-
# query parameters
|
1197
|
-
query_params = {}
|
1198
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1199
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1200
|
-
else
|
1201
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1202
|
-
end
|
1203
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1204
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1205
|
-
else
|
1206
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1207
|
-
end
|
1208
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1209
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1210
|
-
else
|
1211
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1212
|
-
end
|
1213
|
-
|
1214
|
-
# header parameters
|
1215
|
-
header_params = {}
|
1216
|
-
# HTTP header 'Accept' (if needed)
|
1217
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1218
|
-
# HTTP header 'Content-Type'
|
1219
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1220
|
-
|
1221
|
-
# form parameters
|
1222
|
-
form_params = {}
|
1223
|
-
|
1224
|
-
# http body (model)
|
1225
|
-
post_body = @api_client.object_to_http_body(request.search_options_collection_data)
|
1226
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1227
|
-
header_params: header_params,
|
1228
|
-
query_params: query_params,
|
1229
|
-
form_params: form_params,
|
1230
|
-
body: post_body,
|
1231
|
-
access_token: get_access_token,
|
1232
|
-
return_type: 'SearchDocumentResponse')
|
1233
|
-
if @api_client.config.debugging
|
1234
|
-
@api_client.config.logger.debug "API called:
|
1235
|
-
SignatureApi#post_search_collection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1236
|
-
end
|
1237
|
-
[data, status_code, headers]
|
1238
|
-
end
|
1239
|
-
|
1240
|
-
# Search the Document provided by URL.
|
1241
|
-
#
|
1242
|
-
# @param request PostSearchCollectionFromUrlRequest
|
1243
|
-
# @return [SearchDocumentResponse]
|
1244
|
-
def post_search_collection_from_url(request)
|
1245
|
-
data, _status_code, _headers = post_search_collection_from_url_with_http_info(request)
|
1246
|
-
data
|
1247
|
-
end
|
1248
|
-
|
1249
|
-
# Search the Document provided by URL.
|
1250
|
-
#
|
1251
|
-
# @param request PostSearchCollectionFromUrlRequest
|
1252
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1253
|
-
# SearchDocumentResponse data, response status code and response headers
|
1254
|
-
def post_search_collection_from_url_with_http_info(request)
|
1255
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchCollectionFromUrlRequest
|
1256
|
-
|
1257
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_collection_from_url ...' if @api_client.config.debugging
|
1258
|
-
# verify the required parameter 'url' is set
|
1259
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_search_collection_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1260
|
-
# resource path
|
1261
|
-
local_var_path = '/signature/collection/search'
|
1262
|
-
|
1263
|
-
# query parameters
|
1264
|
-
query_params = {}
|
1265
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1266
|
-
|
1267
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1268
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1269
|
-
else
|
1270
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1271
|
-
end
|
1272
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1273
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1274
|
-
else
|
1275
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1276
|
-
end
|
1277
|
-
|
1278
|
-
# header parameters
|
1279
|
-
header_params = {}
|
1280
|
-
# HTTP header 'Accept' (if needed)
|
1281
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1282
|
-
# HTTP header 'Content-Type'
|
1283
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1284
|
-
|
1285
|
-
# form parameters
|
1286
|
-
form_params = {}
|
1287
|
-
|
1288
|
-
# http body (model)
|
1289
|
-
post_body = @api_client.object_to_http_body(request.search_options_collection_data)
|
1290
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1291
|
-
header_params: header_params,
|
1292
|
-
query_params: query_params,
|
1293
|
-
form_params: form_params,
|
1294
|
-
body: post_body,
|
1295
|
-
access_token: get_access_token,
|
1296
|
-
return_type: 'SearchDocumentResponse')
|
1297
|
-
if @api_client.config.debugging
|
1298
|
-
@api_client.config.logger.debug "API called:
|
1299
|
-
SignatureApi#post_search_collection_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1300
|
-
end
|
1301
|
-
[data, status_code, headers]
|
1302
|
-
end
|
1303
|
-
|
1304
|
-
# Search the Document with Digital Signatures
|
1305
|
-
#
|
1306
|
-
# @param request PostSearchDigitalRequest
|
1307
|
-
# @return [SearchDocumentResponse]
|
1308
|
-
def post_search_digital(request)
|
1309
|
-
data, _status_code, _headers = post_search_digital_with_http_info(request)
|
1310
|
-
data
|
1311
|
-
end
|
1312
|
-
|
1313
|
-
# Search the Document with Digital Signatures
|
1314
|
-
#
|
1315
|
-
# @param request PostSearchDigitalRequest
|
1316
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1317
|
-
# SearchDocumentResponse data, response status code and response headers
|
1318
|
-
def post_search_digital_with_http_info(request)
|
1319
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchDigitalRequest
|
1320
|
-
|
1321
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_digital ...' if @api_client.config.debugging
|
1322
|
-
# verify the required parameter 'name' is set
|
1323
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_search_digital' if @api_client.config.client_side_validation && request.name.nil?
|
1324
|
-
# resource path
|
1325
|
-
local_var_path = '/signature/{name}/digital/search'
|
1326
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1327
|
-
|
1328
|
-
# query parameters
|
1329
|
-
query_params = {}
|
1330
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1331
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1332
|
-
else
|
1333
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1334
|
-
end
|
1335
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1336
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1337
|
-
else
|
1338
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1339
|
-
end
|
1340
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1341
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1342
|
-
else
|
1343
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1344
|
-
end
|
1345
|
-
|
1346
|
-
# header parameters
|
1347
|
-
header_params = {}
|
1348
|
-
# HTTP header 'Accept' (if needed)
|
1349
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1350
|
-
# HTTP header 'Content-Type'
|
1351
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1352
|
-
|
1353
|
-
# form parameters
|
1354
|
-
form_params = {}
|
1355
|
-
|
1356
|
-
# http body (model)
|
1357
|
-
post_body = @api_client.object_to_http_body(request.search_options_data)
|
1358
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1359
|
-
header_params: header_params,
|
1360
|
-
query_params: query_params,
|
1361
|
-
form_params: form_params,
|
1362
|
-
body: post_body,
|
1363
|
-
access_token: get_access_token,
|
1364
|
-
return_type: 'SearchDocumentResponse')
|
1365
|
-
if @api_client.config.debugging
|
1366
|
-
@api_client.config.logger.debug "API called:
|
1367
|
-
SignatureApi#post_search_digital\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1368
|
-
end
|
1369
|
-
[data, status_code, headers]
|
1370
|
-
end
|
1371
|
-
|
1372
|
-
# Search the Document from url with Digital Signatures
|
1373
|
-
#
|
1374
|
-
# @param request PostSearchDigitalFromUrlRequest
|
1375
|
-
# @return [SearchDocumentResponse]
|
1376
|
-
def post_search_digital_from_url(request)
|
1377
|
-
data, _status_code, _headers = post_search_digital_from_url_with_http_info(request)
|
1378
|
-
data
|
1379
|
-
end
|
1380
|
-
|
1381
|
-
# Search the Document from url with Digital Signatures
|
1382
|
-
#
|
1383
|
-
# @param request PostSearchDigitalFromUrlRequest
|
1384
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1385
|
-
# SearchDocumentResponse data, response status code and response headers
|
1386
|
-
def post_search_digital_from_url_with_http_info(request)
|
1387
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchDigitalFromUrlRequest
|
1388
|
-
|
1389
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_digital_from_url ...' if @api_client.config.debugging
|
1390
|
-
# verify the required parameter 'url' is set
|
1391
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_search_digital_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1392
|
-
# resource path
|
1393
|
-
local_var_path = '/signature/digital/search'
|
1394
|
-
|
1395
|
-
# query parameters
|
1396
|
-
query_params = {}
|
1397
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1398
|
-
|
1399
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1400
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1401
|
-
else
|
1402
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1403
|
-
end
|
1404
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1405
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1406
|
-
else
|
1407
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1408
|
-
end
|
1409
|
-
|
1410
|
-
# header parameters
|
1411
|
-
header_params = {}
|
1412
|
-
# HTTP header 'Accept' (if needed)
|
1413
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1414
|
-
# HTTP header 'Content-Type'
|
1415
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1416
|
-
|
1417
|
-
# form parameters
|
1418
|
-
form_params = {}
|
1419
|
-
|
1420
|
-
# http body (model)
|
1421
|
-
post_body = @api_client.object_to_http_body(request.search_options_data)
|
1422
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1423
|
-
header_params: header_params,
|
1424
|
-
query_params: query_params,
|
1425
|
-
form_params: form_params,
|
1426
|
-
body: post_body,
|
1427
|
-
access_token: get_access_token,
|
1428
|
-
return_type: 'SearchDocumentResponse')
|
1429
|
-
if @api_client.config.debugging
|
1430
|
-
@api_client.config.logger.debug "API called:
|
1431
|
-
SignatureApi#post_search_digital_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1432
|
-
end
|
1433
|
-
[data, status_code, headers]
|
1434
|
-
end
|
1435
|
-
|
1436
|
-
# Search the Document with QRCode Signatures
|
1437
|
-
#
|
1438
|
-
# @param request PostSearchQrCodeRequest
|
1439
|
-
# @return [SearchDocumentResponse]
|
1440
|
-
def post_search_qr_code(request)
|
1441
|
-
data, _status_code, _headers = post_search_qr_code_with_http_info(request)
|
1442
|
-
data
|
1443
|
-
end
|
1444
|
-
|
1445
|
-
# Search the Document with QRCode Signatures
|
1446
|
-
#
|
1447
|
-
# @param request PostSearchQrCodeRequest
|
1448
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1449
|
-
# SearchDocumentResponse data, response status code and response headers
|
1450
|
-
def post_search_qr_code_with_http_info(request)
|
1451
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchQrCodeRequest
|
1452
|
-
|
1453
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_qr_code ...' if @api_client.config.debugging
|
1454
|
-
# verify the required parameter 'name' is set
|
1455
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_search_qr_code' if @api_client.config.client_side_validation && request.name.nil?
|
1456
|
-
# resource path
|
1457
|
-
local_var_path = '/signature/{name}/qrcode/search'
|
1458
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1459
|
-
|
1460
|
-
# query parameters
|
1461
|
-
query_params = {}
|
1462
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1463
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1464
|
-
else
|
1465
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1466
|
-
end
|
1467
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1468
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1469
|
-
else
|
1470
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1471
|
-
end
|
1472
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1473
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1474
|
-
else
|
1475
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1476
|
-
end
|
1477
|
-
|
1478
|
-
# header parameters
|
1479
|
-
header_params = {}
|
1480
|
-
# HTTP header 'Accept' (if needed)
|
1481
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1482
|
-
# HTTP header 'Content-Type'
|
1483
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1484
|
-
|
1485
|
-
# form parameters
|
1486
|
-
form_params = {}
|
1487
|
-
|
1488
|
-
# http body (model)
|
1489
|
-
post_body = @api_client.object_to_http_body(request.search_options_data)
|
1490
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1491
|
-
header_params: header_params,
|
1492
|
-
query_params: query_params,
|
1493
|
-
form_params: form_params,
|
1494
|
-
body: post_body,
|
1495
|
-
access_token: get_access_token,
|
1496
|
-
return_type: 'SearchDocumentResponse')
|
1497
|
-
if @api_client.config.debugging
|
1498
|
-
@api_client.config.logger.debug "API called:
|
1499
|
-
SignatureApi#post_search_qr_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1500
|
-
end
|
1501
|
-
[data, status_code, headers]
|
1502
|
-
end
|
1503
|
-
|
1504
|
-
# Search the url based Document with QRCode Signatures
|
1505
|
-
#
|
1506
|
-
# @param request PostSearchQrCodeFromUrlRequest
|
1507
|
-
# @return [SearchDocumentResponse]
|
1508
|
-
def post_search_qr_code_from_url(request)
|
1509
|
-
data, _status_code, _headers = post_search_qr_code_from_url_with_http_info(request)
|
1510
|
-
data
|
1511
|
-
end
|
1512
|
-
|
1513
|
-
# Search the url based Document with QRCode Signatures
|
1514
|
-
#
|
1515
|
-
# @param request PostSearchQrCodeFromUrlRequest
|
1516
|
-
# @return [Array<(SearchDocumentResponse, Fixnum, Hash)>]
|
1517
|
-
# SearchDocumentResponse data, response status code and response headers
|
1518
|
-
def post_search_qr_code_from_url_with_http_info(request)
|
1519
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostSearchQrCodeFromUrlRequest
|
1520
|
-
|
1521
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_search_qr_code_from_url ...' if @api_client.config.debugging
|
1522
|
-
# verify the required parameter 'url' is set
|
1523
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_search_qr_code_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1524
|
-
# resource path
|
1525
|
-
local_var_path = '/signature/qrcode/search'
|
1526
|
-
|
1527
|
-
# query parameters
|
1528
|
-
query_params = {}
|
1529
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1530
|
-
|
1531
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1532
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1533
|
-
else
|
1534
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1535
|
-
end
|
1536
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1537
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1538
|
-
else
|
1539
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1540
|
-
end
|
1541
|
-
|
1542
|
-
# header parameters
|
1543
|
-
header_params = {}
|
1544
|
-
# HTTP header 'Accept' (if needed)
|
1545
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1546
|
-
# HTTP header 'Content-Type'
|
1547
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1548
|
-
|
1549
|
-
# form parameters
|
1550
|
-
form_params = {}
|
1551
|
-
|
1552
|
-
# http body (model)
|
1553
|
-
post_body = @api_client.object_to_http_body(request.search_options_data)
|
1554
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1555
|
-
header_params: header_params,
|
1556
|
-
query_params: query_params,
|
1557
|
-
form_params: form_params,
|
1558
|
-
body: post_body,
|
1559
|
-
access_token: get_access_token,
|
1560
|
-
return_type: 'SearchDocumentResponse')
|
1561
|
-
if @api_client.config.debugging
|
1562
|
-
@api_client.config.logger.debug "API called:
|
1563
|
-
SignatureApi#post_search_qr_code_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1564
|
-
end
|
1565
|
-
[data, status_code, headers]
|
1566
|
-
end
|
1567
|
-
|
1568
|
-
# Insert Stamp Signature into the Document
|
1569
|
-
#
|
1570
|
-
# @param request PostStampRequest
|
1571
|
-
# @return [SignatureDocumentResponse]
|
1572
|
-
def post_stamp(request)
|
1573
|
-
data, _status_code, _headers = post_stamp_with_http_info(request)
|
1574
|
-
data
|
1575
|
-
end
|
1576
|
-
|
1577
|
-
# Insert Stamp Signature into the Document
|
1578
|
-
#
|
1579
|
-
# @param request PostStampRequest
|
1580
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
1581
|
-
# SignatureDocumentResponse data, response status code and response headers
|
1582
|
-
def post_stamp_with_http_info(request)
|
1583
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostStampRequest
|
1584
|
-
|
1585
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_stamp ...' if @api_client.config.debugging
|
1586
|
-
# verify the required parameter 'name' is set
|
1587
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_stamp' if @api_client.config.client_side_validation && request.name.nil?
|
1588
|
-
# resource path
|
1589
|
-
local_var_path = '/signature/{name}/stamp'
|
1590
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1591
|
-
|
1592
|
-
# query parameters
|
1593
|
-
query_params = {}
|
1594
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1595
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1596
|
-
else
|
1597
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1598
|
-
end
|
1599
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1600
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1601
|
-
else
|
1602
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1603
|
-
end
|
1604
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1605
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1606
|
-
else
|
1607
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1608
|
-
end
|
1609
|
-
|
1610
|
-
# header parameters
|
1611
|
-
header_params = {}
|
1612
|
-
# HTTP header 'Accept' (if needed)
|
1613
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1614
|
-
# HTTP header 'Content-Type'
|
1615
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1616
|
-
|
1617
|
-
# form parameters
|
1618
|
-
form_params = {}
|
1619
|
-
|
1620
|
-
# http body (model)
|
1621
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
1622
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1623
|
-
header_params: header_params,
|
1624
|
-
query_params: query_params,
|
1625
|
-
form_params: form_params,
|
1626
|
-
body: post_body,
|
1627
|
-
access_token: get_access_token,
|
1628
|
-
return_type: 'SignatureDocumentResponse')
|
1629
|
-
if @api_client.config.debugging
|
1630
|
-
@api_client.config.logger.debug "API called:
|
1631
|
-
SignatureApi#post_stamp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1632
|
-
end
|
1633
|
-
[data, status_code, headers]
|
1634
|
-
end
|
1635
|
-
|
1636
|
-
# Insert Stamp Signature into the Document provided by URL
|
1637
|
-
#
|
1638
|
-
# @param request PostStampFromUrlRequest
|
1639
|
-
# @return [SignatureDocumentResponse]
|
1640
|
-
def post_stamp_from_url(request)
|
1641
|
-
data, _status_code, _headers = post_stamp_from_url_with_http_info(request)
|
1642
|
-
data
|
1643
|
-
end
|
1644
|
-
|
1645
|
-
# Insert Stamp Signature into the Document provided by URL
|
1646
|
-
#
|
1647
|
-
# @param request PostStampFromUrlRequest
|
1648
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
1649
|
-
# SignatureDocumentResponse data, response status code and response headers
|
1650
|
-
def post_stamp_from_url_with_http_info(request)
|
1651
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostStampFromUrlRequest
|
1652
|
-
|
1653
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_stamp_from_url ...' if @api_client.config.debugging
|
1654
|
-
# verify the required parameter 'url' is set
|
1655
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_stamp_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1656
|
-
# resource path
|
1657
|
-
local_var_path = '/signature/stamp'
|
1658
|
-
|
1659
|
-
# query parameters
|
1660
|
-
query_params = {}
|
1661
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1662
|
-
|
1663
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1664
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1665
|
-
else
|
1666
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1667
|
-
end
|
1668
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1669
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1670
|
-
else
|
1671
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1672
|
-
end
|
1673
|
-
|
1674
|
-
# header parameters
|
1675
|
-
header_params = {}
|
1676
|
-
# HTTP header 'Accept' (if needed)
|
1677
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1678
|
-
# HTTP header 'Content-Type'
|
1679
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1680
|
-
|
1681
|
-
# form parameters
|
1682
|
-
form_params = {}
|
1683
|
-
|
1684
|
-
# http body (model)
|
1685
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
1686
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1687
|
-
header_params: header_params,
|
1688
|
-
query_params: query_params,
|
1689
|
-
form_params: form_params,
|
1690
|
-
body: post_body,
|
1691
|
-
access_token: get_access_token,
|
1692
|
-
return_type: 'SignatureDocumentResponse')
|
1693
|
-
if @api_client.config.debugging
|
1694
|
-
@api_client.config.logger.debug "API called:
|
1695
|
-
SignatureApi#post_stamp_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1696
|
-
end
|
1697
|
-
[data, status_code, headers]
|
1698
|
-
end
|
1699
|
-
|
1700
|
-
# Insert Text Signature into the Document
|
1701
|
-
#
|
1702
|
-
# @param request PostTextRequest
|
1703
|
-
# @return [SignatureDocumentResponse]
|
1704
|
-
def post_text(request)
|
1705
|
-
data, _status_code, _headers = post_text_with_http_info(request)
|
1706
|
-
data
|
1707
|
-
end
|
1708
|
-
|
1709
|
-
# Insert Text Signature into the Document
|
1710
|
-
#
|
1711
|
-
# @param request PostTextRequest
|
1712
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
1713
|
-
# SignatureDocumentResponse data, response status code and response headers
|
1714
|
-
def post_text_with_http_info(request)
|
1715
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostTextRequest
|
1716
|
-
|
1717
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_text ...' if @api_client.config.debugging
|
1718
|
-
# verify the required parameter 'name' is set
|
1719
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_text' if @api_client.config.client_side_validation && request.name.nil?
|
1720
|
-
# resource path
|
1721
|
-
local_var_path = '/signature/{name}/text'
|
1722
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1723
|
-
|
1724
|
-
# query parameters
|
1725
|
-
query_params = {}
|
1726
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1727
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1728
|
-
else
|
1729
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1730
|
-
end
|
1731
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1732
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1733
|
-
else
|
1734
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1735
|
-
end
|
1736
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1737
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1738
|
-
else
|
1739
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1740
|
-
end
|
1741
|
-
|
1742
|
-
# header parameters
|
1743
|
-
header_params = {}
|
1744
|
-
# HTTP header 'Accept' (if needed)
|
1745
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1746
|
-
# HTTP header 'Content-Type'
|
1747
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1748
|
-
|
1749
|
-
# form parameters
|
1750
|
-
form_params = {}
|
1751
|
-
|
1752
|
-
# http body (model)
|
1753
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
1754
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1755
|
-
header_params: header_params,
|
1756
|
-
query_params: query_params,
|
1757
|
-
form_params: form_params,
|
1758
|
-
body: post_body,
|
1759
|
-
access_token: get_access_token,
|
1760
|
-
return_type: 'SignatureDocumentResponse')
|
1761
|
-
if @api_client.config.debugging
|
1762
|
-
@api_client.config.logger.debug "API called:
|
1763
|
-
SignatureApi#post_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1764
|
-
end
|
1765
|
-
[data, status_code, headers]
|
1766
|
-
end
|
1767
|
-
|
1768
|
-
# Insert Text Signature into the Document
|
1769
|
-
#
|
1770
|
-
# @param request PostTextFromUrlRequest
|
1771
|
-
# @return [SignatureDocumentResponse]
|
1772
|
-
def post_text_from_url(request)
|
1773
|
-
data, _status_code, _headers = post_text_from_url_with_http_info(request)
|
1774
|
-
data
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
# Insert Text Signature into the Document
|
1778
|
-
#
|
1779
|
-
# @param request PostTextFromUrlRequest
|
1780
|
-
# @return [Array<(SignatureDocumentResponse, Fixnum, Hash)>]
|
1781
|
-
# SignatureDocumentResponse data, response status code and response headers
|
1782
|
-
def post_text_from_url_with_http_info(request)
|
1783
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostTextFromUrlRequest
|
1784
|
-
|
1785
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_text_from_url ...' if @api_client.config.debugging
|
1786
|
-
# verify the required parameter 'url' is set
|
1787
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_text_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1788
|
-
# resource path
|
1789
|
-
local_var_path = '/signature/text'
|
1790
|
-
|
1791
|
-
# query parameters
|
1792
|
-
query_params = {}
|
1793
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1794
|
-
|
1795
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1796
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1797
|
-
else
|
1798
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1799
|
-
end
|
1800
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1801
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1802
|
-
else
|
1803
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1804
|
-
end
|
1805
|
-
|
1806
|
-
# header parameters
|
1807
|
-
header_params = {}
|
1808
|
-
# HTTP header 'Accept' (if needed)
|
1809
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1810
|
-
# HTTP header 'Content-Type'
|
1811
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1812
|
-
|
1813
|
-
# form parameters
|
1814
|
-
form_params = {}
|
1815
|
-
|
1816
|
-
# http body (model)
|
1817
|
-
post_body = @api_client.object_to_http_body(request.sign_options_data)
|
1818
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1819
|
-
header_params: header_params,
|
1820
|
-
query_params: query_params,
|
1821
|
-
form_params: form_params,
|
1822
|
-
body: post_body,
|
1823
|
-
access_token: get_access_token,
|
1824
|
-
return_type: 'SignatureDocumentResponse')
|
1825
|
-
if @api_client.config.debugging
|
1826
|
-
@api_client.config.logger.debug "API called:
|
1827
|
-
SignatureApi#post_text_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1828
|
-
end
|
1829
|
-
[data, status_code, headers]
|
1830
|
-
end
|
1831
|
-
|
1832
|
-
# Verify the Document with Barcode Signatures
|
1833
|
-
#
|
1834
|
-
# @param request PostVerificationBarcodeRequest
|
1835
|
-
# @return [VerifiedDocumentResponse]
|
1836
|
-
def post_verification_barcode(request)
|
1837
|
-
data, _status_code, _headers = post_verification_barcode_with_http_info(request)
|
1838
|
-
data
|
1839
|
-
end
|
1840
|
-
|
1841
|
-
# Verify the Document with Barcode Signatures
|
1842
|
-
#
|
1843
|
-
# @param request PostVerificationBarcodeRequest
|
1844
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
1845
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
1846
|
-
def post_verification_barcode_with_http_info(request)
|
1847
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationBarcodeRequest
|
1848
|
-
|
1849
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_barcode ...' if @api_client.config.debugging
|
1850
|
-
# verify the required parameter 'name' is set
|
1851
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_verification_barcode' if @api_client.config.client_side_validation && request.name.nil?
|
1852
|
-
# resource path
|
1853
|
-
local_var_path = '/signature/{name}/barcode/verification'
|
1854
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1855
|
-
|
1856
|
-
# query parameters
|
1857
|
-
query_params = {}
|
1858
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1859
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1860
|
-
else
|
1861
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1862
|
-
end
|
1863
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1864
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1865
|
-
else
|
1866
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1867
|
-
end
|
1868
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1869
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1870
|
-
else
|
1871
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1872
|
-
end
|
1873
|
-
|
1874
|
-
# header parameters
|
1875
|
-
header_params = {}
|
1876
|
-
# HTTP header 'Accept' (if needed)
|
1877
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1878
|
-
# HTTP header 'Content-Type'
|
1879
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1880
|
-
|
1881
|
-
# form parameters
|
1882
|
-
form_params = {}
|
1883
|
-
|
1884
|
-
# http body (model)
|
1885
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
1886
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1887
|
-
header_params: header_params,
|
1888
|
-
query_params: query_params,
|
1889
|
-
form_params: form_params,
|
1890
|
-
body: post_body,
|
1891
|
-
access_token: get_access_token,
|
1892
|
-
return_type: 'VerifiedDocumentResponse')
|
1893
|
-
if @api_client.config.debugging
|
1894
|
-
@api_client.config.logger.debug "API called:
|
1895
|
-
SignatureApi#post_verification_barcode\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1896
|
-
end
|
1897
|
-
[data, status_code, headers]
|
1898
|
-
end
|
1899
|
-
|
1900
|
-
# Verify the url based Document with Barcode Signatures
|
1901
|
-
#
|
1902
|
-
# @param request PostVerificationBarcodeFromUrlRequest
|
1903
|
-
# @return [VerifiedDocumentResponse]
|
1904
|
-
def post_verification_barcode_from_url(request)
|
1905
|
-
data, _status_code, _headers = post_verification_barcode_from_url_with_http_info(request)
|
1906
|
-
data
|
1907
|
-
end
|
1908
|
-
|
1909
|
-
# Verify the url based Document with Barcode Signatures
|
1910
|
-
#
|
1911
|
-
# @param request PostVerificationBarcodeFromUrlRequest
|
1912
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
1913
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
1914
|
-
def post_verification_barcode_from_url_with_http_info(request)
|
1915
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationBarcodeFromUrlRequest
|
1916
|
-
|
1917
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_barcode_from_url ...' if @api_client.config.debugging
|
1918
|
-
# verify the required parameter 'url' is set
|
1919
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_verification_barcode_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
1920
|
-
# resource path
|
1921
|
-
local_var_path = '/signature/barcode/verification'
|
1922
|
-
|
1923
|
-
# query parameters
|
1924
|
-
query_params = {}
|
1925
|
-
query_params[downcase_first_letter('Url')] = request.url
|
1926
|
-
|
1927
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1928
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1929
|
-
else
|
1930
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1931
|
-
end
|
1932
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
1933
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
1934
|
-
else
|
1935
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
1936
|
-
end
|
1937
|
-
|
1938
|
-
# header parameters
|
1939
|
-
header_params = {}
|
1940
|
-
# HTTP header 'Accept' (if needed)
|
1941
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
1942
|
-
# HTTP header 'Content-Type'
|
1943
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
1944
|
-
|
1945
|
-
# form parameters
|
1946
|
-
form_params = {}
|
1947
|
-
|
1948
|
-
# http body (model)
|
1949
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
1950
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1951
|
-
header_params: header_params,
|
1952
|
-
query_params: query_params,
|
1953
|
-
form_params: form_params,
|
1954
|
-
body: post_body,
|
1955
|
-
access_token: get_access_token,
|
1956
|
-
return_type: 'VerifiedDocumentResponse')
|
1957
|
-
if @api_client.config.debugging
|
1958
|
-
@api_client.config.logger.debug "API called:
|
1959
|
-
SignatureApi#post_verification_barcode_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1960
|
-
end
|
1961
|
-
[data, status_code, headers]
|
1962
|
-
end
|
1963
|
-
|
1964
|
-
# Verify the Document.
|
1965
|
-
#
|
1966
|
-
# @param request PostVerificationCollectionRequest
|
1967
|
-
# @return [VerifiedDocumentResponse]
|
1968
|
-
def post_verification_collection(request)
|
1969
|
-
data, _status_code, _headers = post_verification_collection_with_http_info(request)
|
1970
|
-
data
|
1971
|
-
end
|
1972
|
-
|
1973
|
-
# Verify the Document.
|
1974
|
-
#
|
1975
|
-
# @param request PostVerificationCollectionRequest
|
1976
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
1977
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
1978
|
-
def post_verification_collection_with_http_info(request)
|
1979
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationCollectionRequest
|
1980
|
-
|
1981
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_collection ...' if @api_client.config.debugging
|
1982
|
-
# verify the required parameter 'name' is set
|
1983
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_verification_collection' if @api_client.config.client_side_validation && request.name.nil?
|
1984
|
-
# resource path
|
1985
|
-
local_var_path = '/signature/{name}/collection/verification'
|
1986
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
1987
|
-
|
1988
|
-
# query parameters
|
1989
|
-
query_params = {}
|
1990
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
1991
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
1992
|
-
else
|
1993
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
1994
|
-
end
|
1995
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
1996
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
1997
|
-
else
|
1998
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
1999
|
-
end
|
2000
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2001
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2002
|
-
else
|
2003
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2004
|
-
end
|
2005
|
-
|
2006
|
-
# header parameters
|
2007
|
-
header_params = {}
|
2008
|
-
# HTTP header 'Accept' (if needed)
|
2009
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2010
|
-
# HTTP header 'Content-Type'
|
2011
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2012
|
-
|
2013
|
-
# form parameters
|
2014
|
-
form_params = {}
|
2015
|
-
|
2016
|
-
# http body (model)
|
2017
|
-
post_body = @api_client.object_to_http_body(request.verify_options_collection_data)
|
2018
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2019
|
-
header_params: header_params,
|
2020
|
-
query_params: query_params,
|
2021
|
-
form_params: form_params,
|
2022
|
-
body: post_body,
|
2023
|
-
access_token: get_access_token,
|
2024
|
-
return_type: 'VerifiedDocumentResponse')
|
2025
|
-
if @api_client.config.debugging
|
2026
|
-
@api_client.config.logger.debug "API called:
|
2027
|
-
SignatureApi#post_verification_collection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2028
|
-
end
|
2029
|
-
[data, status_code, headers]
|
2030
|
-
end
|
2031
|
-
|
2032
|
-
# Verify the Document provided by URL.
|
2033
|
-
#
|
2034
|
-
# @param request PostVerificationCollectionFromUrlRequest
|
2035
|
-
# @return [VerifiedDocumentResponse]
|
2036
|
-
def post_verification_collection_from_url(request)
|
2037
|
-
data, _status_code, _headers = post_verification_collection_from_url_with_http_info(request)
|
2038
|
-
data
|
2039
|
-
end
|
2040
|
-
|
2041
|
-
# Verify the Document provided by URL.
|
2042
|
-
#
|
2043
|
-
# @param request PostVerificationCollectionFromUrlRequest
|
2044
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2045
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2046
|
-
def post_verification_collection_from_url_with_http_info(request)
|
2047
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationCollectionFromUrlRequest
|
2048
|
-
|
2049
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_collection_from_url ...' if @api_client.config.debugging
|
2050
|
-
# verify the required parameter 'url' is set
|
2051
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_verification_collection_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
2052
|
-
# resource path
|
2053
|
-
local_var_path = '/signature/collection/verification'
|
2054
|
-
|
2055
|
-
# query parameters
|
2056
|
-
query_params = {}
|
2057
|
-
query_params[downcase_first_letter('Url')] = request.url
|
2058
|
-
|
2059
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2060
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2061
|
-
else
|
2062
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2063
|
-
end
|
2064
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2065
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2066
|
-
else
|
2067
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2068
|
-
end
|
2069
|
-
|
2070
|
-
# header parameters
|
2071
|
-
header_params = {}
|
2072
|
-
# HTTP header 'Accept' (if needed)
|
2073
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2074
|
-
# HTTP header 'Content-Type'
|
2075
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2076
|
-
|
2077
|
-
# form parameters
|
2078
|
-
form_params = {}
|
2079
|
-
|
2080
|
-
# http body (model)
|
2081
|
-
post_body = @api_client.object_to_http_body(request.verify_options_collection_data)
|
2082
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2083
|
-
header_params: header_params,
|
2084
|
-
query_params: query_params,
|
2085
|
-
form_params: form_params,
|
2086
|
-
body: post_body,
|
2087
|
-
access_token: get_access_token,
|
2088
|
-
return_type: 'VerifiedDocumentResponse')
|
2089
|
-
if @api_client.config.debugging
|
2090
|
-
@api_client.config.logger.debug "API called:
|
2091
|
-
SignatureApi#post_verification_collection_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2092
|
-
end
|
2093
|
-
[data, status_code, headers]
|
2094
|
-
end
|
2095
|
-
|
2096
|
-
# Verify the Document with Digital Signatures
|
2097
|
-
#
|
2098
|
-
# @param request PostVerificationDigitalRequest
|
2099
|
-
# @return [VerifiedDocumentResponse]
|
2100
|
-
def post_verification_digital(request)
|
2101
|
-
data, _status_code, _headers = post_verification_digital_with_http_info(request)
|
2102
|
-
data
|
2103
|
-
end
|
2104
|
-
|
2105
|
-
# Verify the Document with Digital Signatures
|
2106
|
-
#
|
2107
|
-
# @param request PostVerificationDigitalRequest
|
2108
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2109
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2110
|
-
def post_verification_digital_with_http_info(request)
|
2111
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationDigitalRequest
|
2112
|
-
|
2113
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_digital ...' if @api_client.config.debugging
|
2114
|
-
# verify the required parameter 'name' is set
|
2115
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_verification_digital' if @api_client.config.client_side_validation && request.name.nil?
|
2116
|
-
# resource path
|
2117
|
-
local_var_path = '/signature/{name}/digital/verification'
|
2118
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
2119
|
-
|
2120
|
-
# query parameters
|
2121
|
-
query_params = {}
|
2122
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2123
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2124
|
-
else
|
2125
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2126
|
-
end
|
2127
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
2128
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
2129
|
-
else
|
2130
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
2131
|
-
end
|
2132
|
-
if local_var_path.include? ('{' + downcase_first_letter('CertificateGuid') + '}')
|
2133
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('CertificateGuid') + '}', request.certificate_guid.to_s)
|
2134
|
-
else
|
2135
|
-
query_params[downcase_first_letter('CertificateGuid')] = request.certificate_guid unless request.certificate_guid.nil?
|
2136
|
-
end
|
2137
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2138
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2139
|
-
else
|
2140
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2141
|
-
end
|
2142
|
-
|
2143
|
-
# header parameters
|
2144
|
-
header_params = {}
|
2145
|
-
# HTTP header 'Accept' (if needed)
|
2146
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2147
|
-
# HTTP header 'Content-Type'
|
2148
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2149
|
-
|
2150
|
-
# form parameters
|
2151
|
-
form_params = {}
|
2152
|
-
|
2153
|
-
# http body (model)
|
2154
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
2155
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2156
|
-
header_params: header_params,
|
2157
|
-
query_params: query_params,
|
2158
|
-
form_params: form_params,
|
2159
|
-
body: post_body,
|
2160
|
-
access_token: get_access_token,
|
2161
|
-
return_type: 'VerifiedDocumentResponse')
|
2162
|
-
if @api_client.config.debugging
|
2163
|
-
@api_client.config.logger.debug "API called:
|
2164
|
-
SignatureApi#post_verification_digital\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2165
|
-
end
|
2166
|
-
[data, status_code, headers]
|
2167
|
-
end
|
2168
|
-
|
2169
|
-
# Verify the Document from url with Digital Signatures
|
2170
|
-
#
|
2171
|
-
# @param request PostVerificationDigitalFromUrlRequest
|
2172
|
-
# @return [VerifiedDocumentResponse]
|
2173
|
-
def post_verification_digital_from_url(request)
|
2174
|
-
data, _status_code, _headers = post_verification_digital_from_url_with_http_info(request)
|
2175
|
-
data
|
2176
|
-
end
|
2177
|
-
|
2178
|
-
# Verify the Document from url with Digital Signatures
|
2179
|
-
#
|
2180
|
-
# @param request PostVerificationDigitalFromUrlRequest
|
2181
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2182
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2183
|
-
def post_verification_digital_from_url_with_http_info(request)
|
2184
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationDigitalFromUrlRequest
|
2185
|
-
|
2186
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_digital_from_url ...' if @api_client.config.debugging
|
2187
|
-
# verify the required parameter 'url' is set
|
2188
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_verification_digital_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
2189
|
-
# resource path
|
2190
|
-
local_var_path = '/signature/digital/verification'
|
2191
|
-
|
2192
|
-
# query parameters
|
2193
|
-
query_params = {}
|
2194
|
-
query_params[downcase_first_letter('Url')] = request.url
|
2195
|
-
|
2196
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2197
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2198
|
-
else
|
2199
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2200
|
-
end
|
2201
|
-
if local_var_path.include? ('{' + downcase_first_letter('CertificateGuid') + '}')
|
2202
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('CertificateGuid') + '}', request.certificate_guid.to_s)
|
2203
|
-
else
|
2204
|
-
query_params[downcase_first_letter('CertificateGuid')] = request.certificate_guid unless request.certificate_guid.nil?
|
2205
|
-
end
|
2206
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2207
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2208
|
-
else
|
2209
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2210
|
-
end
|
2211
|
-
|
2212
|
-
# header parameters
|
2213
|
-
header_params = {}
|
2214
|
-
# HTTP header 'Accept' (if needed)
|
2215
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2216
|
-
# HTTP header 'Content-Type'
|
2217
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2218
|
-
|
2219
|
-
# form parameters
|
2220
|
-
form_params = {}
|
2221
|
-
|
2222
|
-
# http body (model)
|
2223
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
2224
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2225
|
-
header_params: header_params,
|
2226
|
-
query_params: query_params,
|
2227
|
-
form_params: form_params,
|
2228
|
-
body: post_body,
|
2229
|
-
access_token: get_access_token,
|
2230
|
-
return_type: 'VerifiedDocumentResponse')
|
2231
|
-
if @api_client.config.debugging
|
2232
|
-
@api_client.config.logger.debug "API called:
|
2233
|
-
SignatureApi#post_verification_digital_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2234
|
-
end
|
2235
|
-
[data, status_code, headers]
|
2236
|
-
end
|
2237
|
-
|
2238
|
-
# Verify the Document with QRCode Signatures
|
2239
|
-
#
|
2240
|
-
# @param request PostVerificationQrCodeRequest
|
2241
|
-
# @return [VerifiedDocumentResponse]
|
2242
|
-
def post_verification_qr_code(request)
|
2243
|
-
data, _status_code, _headers = post_verification_qr_code_with_http_info(request)
|
2244
|
-
data
|
2245
|
-
end
|
2246
|
-
|
2247
|
-
# Verify the Document with QRCode Signatures
|
2248
|
-
#
|
2249
|
-
# @param request PostVerificationQrCodeRequest
|
2250
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2251
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2252
|
-
def post_verification_qr_code_with_http_info(request)
|
2253
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationQrCodeRequest
|
2254
|
-
|
2255
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_qr_code ...' if @api_client.config.debugging
|
2256
|
-
# verify the required parameter 'name' is set
|
2257
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_verification_qr_code' if @api_client.config.client_side_validation && request.name.nil?
|
2258
|
-
# resource path
|
2259
|
-
local_var_path = '/signature/{name}/qrcode/verification'
|
2260
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
2261
|
-
|
2262
|
-
# query parameters
|
2263
|
-
query_params = {}
|
2264
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2265
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2266
|
-
else
|
2267
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2268
|
-
end
|
2269
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
2270
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
2271
|
-
else
|
2272
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
2273
|
-
end
|
2274
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2275
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2276
|
-
else
|
2277
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2278
|
-
end
|
2279
|
-
|
2280
|
-
# header parameters
|
2281
|
-
header_params = {}
|
2282
|
-
# HTTP header 'Accept' (if needed)
|
2283
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2284
|
-
# HTTP header 'Content-Type'
|
2285
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2286
|
-
|
2287
|
-
# form parameters
|
2288
|
-
form_params = {}
|
2289
|
-
|
2290
|
-
# http body (model)
|
2291
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
2292
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2293
|
-
header_params: header_params,
|
2294
|
-
query_params: query_params,
|
2295
|
-
form_params: form_params,
|
2296
|
-
body: post_body,
|
2297
|
-
access_token: get_access_token,
|
2298
|
-
return_type: 'VerifiedDocumentResponse')
|
2299
|
-
if @api_client.config.debugging
|
2300
|
-
@api_client.config.logger.debug "API called:
|
2301
|
-
SignatureApi#post_verification_qr_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2302
|
-
end
|
2303
|
-
[data, status_code, headers]
|
2304
|
-
end
|
2305
|
-
|
2306
|
-
# Verify the url based Document with QRCode Signatures
|
2307
|
-
#
|
2308
|
-
# @param request PostVerificationQrCodeFromUrlRequest
|
2309
|
-
# @return [VerifiedDocumentResponse]
|
2310
|
-
def post_verification_qr_code_from_url(request)
|
2311
|
-
data, _status_code, _headers = post_verification_qr_code_from_url_with_http_info(request)
|
2312
|
-
data
|
2313
|
-
end
|
2314
|
-
|
2315
|
-
# Verify the url based Document with QRCode Signatures
|
2316
|
-
#
|
2317
|
-
# @param request PostVerificationQrCodeFromUrlRequest
|
2318
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2319
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2320
|
-
def post_verification_qr_code_from_url_with_http_info(request)
|
2321
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationQrCodeFromUrlRequest
|
2322
|
-
|
2323
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_qr_code_from_url ...' if @api_client.config.debugging
|
2324
|
-
# verify the required parameter 'url' is set
|
2325
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_verification_qr_code_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
2326
|
-
# resource path
|
2327
|
-
local_var_path = '/signature/qrcode/verification'
|
2328
|
-
|
2329
|
-
# query parameters
|
2330
|
-
query_params = {}
|
2331
|
-
query_params[downcase_first_letter('Url')] = request.url
|
2332
|
-
|
2333
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2334
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2335
|
-
else
|
2336
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2337
|
-
end
|
2338
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2339
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2340
|
-
else
|
2341
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2342
|
-
end
|
2343
|
-
|
2344
|
-
# header parameters
|
2345
|
-
header_params = {}
|
2346
|
-
# HTTP header 'Accept' (if needed)
|
2347
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2348
|
-
# HTTP header 'Content-Type'
|
2349
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2350
|
-
|
2351
|
-
# form parameters
|
2352
|
-
form_params = {}
|
2353
|
-
|
2354
|
-
# http body (model)
|
2355
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
2356
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2357
|
-
header_params: header_params,
|
2358
|
-
query_params: query_params,
|
2359
|
-
form_params: form_params,
|
2360
|
-
body: post_body,
|
2361
|
-
access_token: get_access_token,
|
2362
|
-
return_type: 'VerifiedDocumentResponse')
|
2363
|
-
if @api_client.config.debugging
|
2364
|
-
@api_client.config.logger.debug "API called:
|
2365
|
-
SignatureApi#post_verification_qr_code_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2366
|
-
end
|
2367
|
-
[data, status_code, headers]
|
2368
|
-
end
|
2369
|
-
|
2370
|
-
# Verify the Document with Text Signatures
|
2371
|
-
#
|
2372
|
-
# @param request PostVerificationTextRequest
|
2373
|
-
# @return [VerifiedDocumentResponse]
|
2374
|
-
def post_verification_text(request)
|
2375
|
-
data, _status_code, _headers = post_verification_text_with_http_info(request)
|
2376
|
-
data
|
2377
|
-
end
|
2378
|
-
|
2379
|
-
# Verify the Document with Text Signatures
|
2380
|
-
#
|
2381
|
-
# @param request PostVerificationTextRequest
|
2382
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2383
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2384
|
-
def post_verification_text_with_http_info(request)
|
2385
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationTextRequest
|
2386
|
-
|
2387
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_text ...' if @api_client.config.debugging
|
2388
|
-
# verify the required parameter 'name' is set
|
2389
|
-
raise ArgumentError, 'Missing the required parameter name when calling SignatureApi.post_verification_text' if @api_client.config.client_side_validation && request.name.nil?
|
2390
|
-
# resource path
|
2391
|
-
local_var_path = '/signature/{name}/text/verification'
|
2392
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', request.name.to_s)
|
2393
|
-
|
2394
|
-
# query parameters
|
2395
|
-
query_params = {}
|
2396
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2397
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2398
|
-
else
|
2399
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2400
|
-
end
|
2401
|
-
if local_var_path.include? ('{' + downcase_first_letter('Folder') + '}')
|
2402
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Folder') + '}', request.folder.to_s)
|
2403
|
-
else
|
2404
|
-
query_params[downcase_first_letter('Folder')] = request.folder unless request.folder.nil?
|
2405
|
-
end
|
2406
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2407
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2408
|
-
else
|
2409
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2410
|
-
end
|
2411
|
-
|
2412
|
-
# header parameters
|
2413
|
-
header_params = {}
|
2414
|
-
# HTTP header 'Accept' (if needed)
|
2415
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2416
|
-
# HTTP header 'Content-Type'
|
2417
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2418
|
-
|
2419
|
-
# form parameters
|
2420
|
-
form_params = {}
|
2421
|
-
|
2422
|
-
# http body (model)
|
2423
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
2424
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2425
|
-
header_params: header_params,
|
2426
|
-
query_params: query_params,
|
2427
|
-
form_params: form_params,
|
2428
|
-
body: post_body,
|
2429
|
-
access_token: get_access_token,
|
2430
|
-
return_type: 'VerifiedDocumentResponse')
|
2431
|
-
if @api_client.config.debugging
|
2432
|
-
@api_client.config.logger.debug "API called:
|
2433
|
-
SignatureApi#post_verification_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2434
|
-
end
|
2435
|
-
[data, status_code, headers]
|
2436
|
-
end
|
2437
|
-
|
2438
|
-
# Verify the Document provided by url with Text Signatures
|
2439
|
-
#
|
2440
|
-
# @param request PostVerificationTextFromUrlRequest
|
2441
|
-
# @return [VerifiedDocumentResponse]
|
2442
|
-
def post_verification_text_from_url(request)
|
2443
|
-
data, _status_code, _headers = post_verification_text_from_url_with_http_info(request)
|
2444
|
-
data
|
2445
|
-
end
|
2446
|
-
|
2447
|
-
# Verify the Document provided by url with Text Signatures
|
2448
|
-
#
|
2449
|
-
# @param request PostVerificationTextFromUrlRequest
|
2450
|
-
# @return [Array<(VerifiedDocumentResponse, Fixnum, Hash)>]
|
2451
|
-
# VerifiedDocumentResponse data, response status code and response headers
|
2452
|
-
def post_verification_text_from_url_with_http_info(request)
|
2453
|
-
raise ArgumentError, 'Incorrect request type' unless request.is_a? PostVerificationTextFromUrlRequest
|
2454
|
-
|
2455
|
-
@api_client.config.logger.debug 'Calling API: SignatureApi.post_verification_text_from_url ...' if @api_client.config.debugging
|
2456
|
-
# verify the required parameter 'url' is set
|
2457
|
-
raise ArgumentError, 'Missing the required parameter url when calling SignatureApi.post_verification_text_from_url' if @api_client.config.client_side_validation && request.url.nil?
|
2458
|
-
# resource path
|
2459
|
-
local_var_path = '/signature/text/verification'
|
2460
|
-
|
2461
|
-
# query parameters
|
2462
|
-
query_params = {}
|
2463
|
-
query_params[downcase_first_letter('Url')] = request.url
|
2464
|
-
|
2465
|
-
if local_var_path.include? ('{' + downcase_first_letter('Password') + '}')
|
2466
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Password') + '}', request.password.to_s)
|
2467
|
-
else
|
2468
|
-
query_params[downcase_first_letter('Password')] = request.password unless request.password.nil?
|
2469
|
-
end
|
2470
|
-
if local_var_path.include? ('{' + downcase_first_letter('Storage') + '}')
|
2471
|
-
local_var_path = local_var_path.sub('{' + downcase_first_letter('Storage') + '}', request.storage.to_s)
|
2472
|
-
else
|
2473
|
-
query_params[downcase_first_letter('Storage')] = request.storage unless request.storage.nil?
|
2474
|
-
end
|
2475
|
-
|
2476
|
-
# header parameters
|
2477
|
-
header_params = {}
|
2478
|
-
# HTTP header 'Accept' (if needed)
|
2479
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/xml'])
|
2480
|
-
# HTTP header 'Content-Type'
|
2481
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml'])
|
2482
|
-
|
2483
|
-
# form parameters
|
2484
|
-
form_params = {}
|
2485
|
-
|
2486
|
-
# http body (model)
|
2487
|
-
post_body = @api_client.object_to_http_body(request.verify_options_data)
|
2488
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2489
|
-
header_params: header_params,
|
2490
|
-
query_params: query_params,
|
2491
|
-
form_params: form_params,
|
2492
|
-
body: post_body,
|
2493
|
-
access_token: get_access_token,
|
2494
|
-
return_type: 'VerifiedDocumentResponse')
|
2495
|
-
if @api_client.config.debugging
|
2496
|
-
@api_client.config.logger.debug "API called:
|
2497
|
-
SignatureApi#post_verification_text_from_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2498
|
-
end
|
2499
|
-
[data, status_code, headers]
|
2500
|
-
end
|
2501
|
-
|
2502
|
-
#
|
2503
|
-
# Helper method to convert first letter to downcase
|
2504
|
-
#
|
2505
|
-
private def downcase_first_letter(str)
|
2506
|
-
value = str[0].downcase + str[1..-1]
|
2507
|
-
value
|
2508
|
-
end
|
2509
|
-
|
2510
|
-
#
|
2511
|
-
# Retrieves access token
|
2512
|
-
#
|
2513
|
-
def get_access_token
|
2514
|
-
if @access_token.nil? then
|
2515
|
-
request_access_token
|
2516
|
-
else
|
2517
|
-
access_token_expired = @access_token_expires_at < DateTime.now
|
2518
|
-
if access_token_expired then
|
2519
|
-
reset_access_token
|
2520
|
-
end
|
2521
|
-
end
|
2522
|
-
|
2523
|
-
@access_token
|
2524
|
-
end
|
2525
|
-
|
2526
|
-
#
|
2527
|
-
# Gets a access token from server
|
2528
|
-
#
|
2529
|
-
private def request_access_token
|
2530
|
-
auth_config = Configuration.new(@config.app_sid, @config.app_key)
|
2531
|
-
auth_config.api_base_url = @config.api_host
|
2532
|
-
auth_config.debugging = @config.debugging
|
2533
|
-
auth_config.logger = @config.logger
|
2534
|
-
auth_config.temp_folder_path = @config.temp_folder_path
|
2535
|
-
auth_config.client_side_validation = @config.client_side_validation
|
2536
|
-
auth_config.api_version = ''
|
2537
|
-
|
2538
|
-
auth_api_client = ApiClient.new(auth_config)
|
2539
|
-
|
2540
|
-
request_url = "/oauth2/token"
|
2541
|
-
post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
|
2542
|
-
|
2543
|
-
data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
|
2544
|
-
|
2545
|
-
@access_token = data[:access_token]
|
2546
|
-
@refresh_token = data[:refresh_token]
|
2547
|
-
|
2548
|
-
expires_in_seconds = data[:expires_in].to_i - 5 * 60
|
2549
|
-
expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
|
2550
|
-
@access_token_expires_at = DateTime.now + expires_in_days
|
2551
|
-
end
|
2552
|
-
|
2553
|
-
#
|
2554
|
-
# Resets access token
|
2555
|
-
#
|
2556
|
-
private def reset_access_token
|
2557
|
-
auth_config = Configuration.new(@config.app_sid, @config.app_key)
|
2558
|
-
auth_config.api_base_url = @config.api_base_url
|
2559
|
-
auth_config.debugging = @config.debugging
|
2560
|
-
auth_config.logger = @config.logger
|
2561
|
-
auth_config.temp_folder_path = @config.temp_folder_path
|
2562
|
-
auth_config.client_side_validation = @config.client_side_validation
|
2563
|
-
auth_config.api_version = ''
|
2564
|
-
|
2565
|
-
auth_api_client = ApiClient.new(auth_config)
|
2566
|
-
|
2567
|
-
request_url = "/oauth2/token"
|
2568
|
-
post_data = "grant_type=refresh_token&refresh_token=#{@refresh_token}"
|
2569
|
-
|
2570
|
-
data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
|
2571
|
-
|
2572
|
-
@access_token = data[:access_token]
|
2573
|
-
@refresh_token = data[:refresh_token]
|
2574
|
-
|
2575
|
-
expires_in_seconds = data[:expires_in].to_i - 5 * 60
|
2576
|
-
expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
|
2577
|
-
@access_token_expires_at = DateTime.now + expires_in_days
|
2578
|
-
end
|
2579
|
-
|
2580
|
-
# requires all files inside a directory from current dir
|
2581
|
-
# @param _dir can be relative path like '/lib' or "../lib"
|
2582
|
-
private def require_all(_dir)
|
2583
|
-
Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
|
2584
|
-
require file
|
2585
|
-
end
|
2586
|
-
end
|
2587
|
-
end
|
2588
|
-
end
|
2589
|
-
#
|
2590
|
-
# ----------------------------------
|