Class: AsposeEmailCloud::AiBcrApi
- Inherits:
-
Object
- Object
- AsposeEmailCloud::AiBcrApi
- Defined in:
- lib/aspose-email-cloud/api/ai_bcr_api.rb
Overview
AiBcrApi operations.
Instance Attribute Summary collapse
-
#api_invoker ⇒ Object
readonly
Returns the value of attribute api_invoker.
Instance Method Summary collapse
-
#initialize(api_invoker) ⇒ AiBcrApi
constructor
Initializes a new instance of the AiBcrApi class.
-
#parse(request) ⇒ ContactList
Parse images to vCard document models.
-
#parse_storage(request) ⇒ StorageFileLocationList
Parse images from storage to vCard files.
Constructor Details
#initialize(api_invoker) ⇒ AiBcrApi
Initializes a new instance of the AiBcrApi class.
45 46 47 |
# File 'lib/aspose-email-cloud/api/ai_bcr_api.rb', line 45 def initialize(api_invoker) @api_invoker = api_invoker end |
Instance Attribute Details
#api_invoker ⇒ Object (readonly)
Returns the value of attribute api_invoker.
31 32 33 |
# File 'lib/aspose-email-cloud/api/ai_bcr_api.rb', line 31 def api_invoker @api_invoker end |
Instance Method Details
#parse(request) ⇒ ContactList
Parse images to vCard document models
52 53 54 55 |
# File 'lib/aspose-email-cloud/api/ai_bcr_api.rb', line 52 def parse(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, 'ContactList') end |
#parse_storage(request) ⇒ StorageFileLocationList
Parse images from storage to vCard files
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/aspose-email-cloud/api/ai_bcr_api.rb', line 60 def parse_storage(request) # verify the required parameter 'request' is set if @api_invoker.api_client.config.client_side_validation && request.nil? raise ArgumentError, "Missing the required parameter 'request' when calling AiBcrApi.parse_storage" end local_var_path = '/email/AiBcr/parse-storage' post_body = @api_invoker.api_client.object_to_http_body(request) auth_names = ['JWT'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = EmailRequest.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = EmailRequest.select_header_content_type(['application/json']) http_request = AsposeEmailCloud::HttpRequest.new(resource_path: local_var_path, header_params: header_params, body: post_body, auth_names: auth_names) @api_invoker.make_request(http_request, :PUT, 'StorageFileLocationList') end |