All URIs are relative to https://api.merge.dev/api/hris/v1
Method | HTTP request | Description |
---|---|---|
passthrough_create | POST /passthrough |
passthrough_create(x_account_token, data_passthrough_request)
Pull data from an endpoint not currently supported by Merge.
require 'time'
require 'merge_hris_client'
# setup authorization
MergeHRISClient.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 = MergeHRISClient::PassthroughApi.new
x_account_token = 'x_account_token_example' # String | Token identifying the end user.
data_passthrough_request = MergeHRISClient::DataPassthroughRequest.new({method: MergeHRISClient::MethodEnum::GET, path: '/scooters'}) # DataPassthroughRequest |
begin
result = api_instance.passthrough_create(x_account_token, data_passthrough_request)
p result
rescue MergeHRISClient::ApiError => e
puts "Error when calling PassthroughApi->passthrough_create: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> passthrough_create_with_http_info(x_account_token, data_passthrough_request)
begin
data, status_code, headers = api_instance.passthrough_create_with_http_info(x_account_token, data_passthrough_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <RemoteResponse>
rescue MergeHRISClient::ApiError => e
puts "Error when calling PassthroughApi->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