Class: VoucherifySdk::AsyncActionsApi
- Inherits:
-
Object
- Object
- VoucherifySdk::AsyncActionsApi
- Defined in:
- lib/VoucherifySdk/api/async_actions_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_async_action(async_action_id, opts = {}) ⇒ AsyncActionGetResponseBody
Get Async Action Check the result of a scheduled asynchronous operation.
-
#initialize(api_client = ApiClient.default) ⇒ AsyncActionsApi
constructor
A new instance of AsyncActionsApi.
-
#list_async_actions(opts = {}) ⇒ AsyncActionsListResponseBody
List Async Actions Track asynchronous operations scheduled in your project.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ AsyncActionsApi
Returns a new instance of AsyncActionsApi.
19 20 21 |
# File 'lib/VoucherifySdk/api/async_actions_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/VoucherifySdk/api/async_actions_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_async_action(async_action_id, opts = {}) ⇒ AsyncActionGetResponseBody
Get Async Action Check the result of a scheduled asynchronous operation. The table below lists the possible types of async actions. The types are different for each endpoint generating the async action. If you would like to learn more about importing data into Voucherify, read more [here](support.voucherify.io/article/574-data-import).
27 28 29 30 |
# File 'lib/VoucherifySdk/api/async_actions_api.rb', line 27 def get_async_action(async_action_id, opts = {}) data, _status_code, _headers = get_async_action_with_http_info(async_action_id, opts) data end |
#list_async_actions(opts = {}) ⇒ AsyncActionsListResponseBody
List Async Actions Track asynchronous operations scheduled in your project. The table below lists the possible types of async actions. The types are different for each endpoint generating the async action. If you would like to learn more about importing data into Voucherify, read more [here](support.voucherify.io/article/574-data-import).
87 88 89 90 |
# File 'lib/VoucherifySdk/api/async_actions_api.rb', line 87 def list_async_actions(opts = {}) data, _status_code, _headers = list_async_actions_with_http_info(opts) data end |