Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 2.42 KB

PassthroughApi.md

File metadata and controls

81 lines (54 loc) · 2.42 KB

MergeHRISClient::PassthroughApi

All URIs are relative to https://api.merge.dev/api/hris/v1

Method HTTP request Description
passthrough_create POST /passthrough

passthrough_create

passthrough_create(x_account_token, data_passthrough_request)

Pull data from an endpoint not currently supported by Merge.

Examples

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

Using the passthrough_create_with_http_info variant

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

Parameters

Name Type Description Notes
x_account_token String Token identifying the end user.
data_passthrough_request DataPassthroughRequest

Return type

RemoteResponse

Authorization

tokenAuth

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
  • Accept: application/json