Class: GroupDocsSignatureCloud::InfoApi
- Inherits:
-
Object
- Object
- GroupDocsSignatureCloud::InfoApi
- Defined in:
- lib/groupdocs_signature_cloud/api/info_api.rb
Overview
GroupDocs.Signature Cloud API
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
-
.from_config(config) ⇒ InfoApi
Initializes new instance of InfoApi.
-
.from_keys(app_sid, app_key) ⇒ InfoApi
Initializes new instance of InfoApi.
Instance Method Summary collapse
-
#get_info(request) ⇒ InfoResult
Retrieves basic document info - path, extension, formats, size etc.
-
#get_info_with_http_info(request) ⇒ Array<(InfoResult, Fixnum, Hash)>
Retrieves basic document info - path, extension, formats, size etc.
-
#get_supported_barcodes ⇒ BarcodesResult
Retrieves supported Barcodes list.
-
#get_supported_barcodes_with_http_info ⇒ Array<(BarcodesResult, Fixnum, Hash)>
BarcodesResult data, response status code and response headers.
-
#get_supported_file_formats ⇒ FormatsResult
Retrieves supported file formats list.
-
#get_supported_file_formats_with_http_info ⇒ Array<(FormatsResult, Fixnum, Hash)>
FormatsResult data, response status code and response headers.
-
#get_supported_qr_codes ⇒ QRCodesResult
Retrieves supported QR-codes list.
-
#get_supported_qr_codes_with_http_info ⇒ Array<(QRCodesResult, Fixnum, Hash)>
QRCodesResult data, response status code and response headers.
-
#initialize(config) ⇒ InfoApi
constructor
Initializes new instance of InfoApi.
Constructor Details
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
34 35 36 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 34 def config @config end |
Class Method Details
.from_config(config) ⇒ InfoApi
Initializes new instance of InfoApi
63 64 65 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 63 def self.from_config(config) return new(config) end |
.from_keys(app_sid, app_key) ⇒ InfoApi
Initializes new instance of InfoApi
54 55 56 57 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 54 def self.from_keys(app_sid, app_key) config = Configuration.new(app_sid, app_key) return new(config) end |
Instance Method Details
#get_info(request) ⇒ InfoResult
Retrieves basic document info - path, extension, formats, size etc
71 72 73 74 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 71 def get_info(request) data, _status_code, _headers = get_info_with_http_info(request) data end |
#get_info_with_http_info(request) ⇒ Array<(InfoResult, Fixnum, Hash)>
Retrieves basic document info - path, extension, formats, size etc
InfoResult data, response status code and response headers
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 81 def get_info_with_http_info(request) raise ArgumentError, 'Incorrect request type' unless request.is_a? GetInfoRequest @api_client.config.logger.debug 'Calling API: InfoApi.get_info ...' if @api_client.config.debugging # verify the required parameter 'info_settings' is set raise ArgumentError, 'Missing the required parameter info_settings when calling InfoApi.get_info' if @api_client.config.client_side_validation && request.info_settings.nil? # resource path local_var_path = '/signature/info' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(request.info_settings) data, status_code, headers = @api_client.call_api(:POST, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, access_token: get_access_token, return_type: 'InfoResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#get_supported_barcodes ⇒ BarcodesResult
Retrieves supported Barcodes list
122 123 124 125 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 122 def () data, _status_code, _headers = () data end |
#get_supported_barcodes_with_http_info ⇒ Array<(BarcodesResult, Fixnum, Hash)>
BarcodesResult data, response status code and response headers
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 132 def () @api_client.config.logger.debug 'Calling API: InfoApi.get_supported_barcodes ...' if @api_client.config.debugging # resource path local_var_path = '/signature/barcodes' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, access_token: get_access_token, return_type: 'BarcodesResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#get_supported_barcodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#get_supported_file_formats ⇒ FormatsResult
Retrieves supported file formats list
171 172 173 174 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 171 def get_supported_file_formats() data, _status_code, _headers = get_supported_file_formats_with_http_info() data end |
#get_supported_file_formats_with_http_info ⇒ Array<(FormatsResult, Fixnum, Hash)>
FormatsResult data, response status code and response headers
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 181 def get_supported_file_formats_with_http_info() @api_client.config.logger.debug 'Calling API: InfoApi.get_supported_file_formats ...' if @api_client.config.debugging # resource path local_var_path = '/signature/formats' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, access_token: get_access_token, return_type: 'FormatsResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#get_supported_file_formats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |
#get_supported_qr_codes ⇒ QRCodesResult
Retrieves supported QR-codes list
220 221 222 223 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 220 def get_supported_qr_codes() data, _status_code, _headers = get_supported_qr_codes_with_http_info() data end |
#get_supported_qr_codes_with_http_info ⇒ Array<(QRCodesResult, Fixnum, Hash)>
QRCodesResult data, response status code and response headers
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/groupdocs_signature_cloud/api/info_api.rb', line 230 def get_supported_qr_codes_with_http_info() @api_client.config.logger.debug 'Calling API: InfoApi.get_supported_qr_codes ...' if @api_client.config.debugging # resource path local_var_path = '/signature/qrcodes' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil data, status_code, headers = @api_client.call_api(:GET, local_var_path, header_params: header_params, query_params: query_params, form_params: form_params, body: post_body, access_token: get_access_token, return_type: 'QRCodesResult') if @api_client.config.debugging @api_client.config.logger.debug "API called: InfoApi#get_supported_qr_codes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end [data, status_code, headers] end |