All URIs are relative to https://api.merge.dev/api/ats/v1
Method | HTTP request | Description |
---|---|---|
async_passthrough_create | POST /async-passthrough | |
async_passthrough_retrieve | GET /async-passthrough/{async_passthrough_receipt_id} |
async_passthrough_create(x_account_token, data_passthrough_request)
Asynchronously pull data from an endpoint not currently supported by Merge.
require 'time'
require 'merge_ats_client'
# setup authorization
MergeATSClient.configure do |config|
# Configure API key authorization: tokenAuth
config.api_key['tokenAuth'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['tokenAuth'] = 'Bearer'
end
api_instance = MergeATSClient::AsyncPassthroughApi.new
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
data_passthrough_request = MergeATSClient::DataPassthroughRequest.new({method: MergeATSClient::MethodEnum::GET, path: '/scooters'}) # DataPassthroughRequest |
begin
result = api_instance.async_passthrough_create(x_account_token, data_passthrough_request)
p result
rescue MergeATSClient::ApiError => e
puts "Error when calling AsyncPassthroughApi->async_passthrough_create: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> async_passthrough_create_with_http_info(x_account_token, data_passthrough_request)
begin
data, status_code, headers = api_instance.async_passthrough_create_with_http_info(x_account_token, data_passthrough_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AsyncPassthroughReciept>
rescue MergeATSClient::ApiError => e
puts "Error when calling AsyncPassthroughApi->async_passthrough_create_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
x_account_token | String | Token identifying the end user. | |
data_passthrough_request | DataPassthroughRequest |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json
async_passthrough_retrieve(x_account_token, async_passthrough_receipt_id)
Retrieves data from earlier async-passthrough POST request
require 'time'
require 'merge_ats_client'
# setup authorization
MergeATSClient.configure do |config|
# Configure API key authorization: tokenAuth
config.api_key['tokenAuth'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['tokenAuth'] = 'Bearer'
end
api_instance = MergeATSClient::AsyncPassthroughApi.new
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
async_passthrough_receipt_id = TODO # String |
begin
result = api_instance.async_passthrough_retrieve(x_account_token, async_passthrough_receipt_id)
p result
rescue MergeATSClient::ApiError => e
puts "Error when calling AsyncPassthroughApi->async_passthrough_retrieve: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> async_passthrough_retrieve_with_http_info(x_account_token, async_passthrough_receipt_id)
begin
data, status_code, headers = api_instance.async_passthrough_retrieve_with_http_info(x_account_token, async_passthrough_receipt_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <RemoteResponse>
rescue MergeATSClient::ApiError => e
puts "Error when calling AsyncPassthroughApi->async_passthrough_retrieve_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
x_account_token | String | Token identifying the end user. | |
async_passthrough_receipt_id | String |
- Content-Type: Not defined
- Accept: application/json