All URIs are relative to https://api.merge.dev/api/crm/v1
| Method | HTTP request | Description |
|---|---|---|
| link_token_create | POST /link-token |
link_token_create(end_user_details_request)
Creates a link token to be used when linking a new end user.
require 'time'
require 'merge_crm_client'
# setup authorization
MergeCRMClient.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 = MergeCRMClient::LinkTokenApi.new
end_user_details_request = MergeCRMClient::EndUserDetailsRequest.new({end_user_email_address: 'end_user_email_address_example', end_user_organization_name: 'end_user_organization_name_example', end_user_origin_id: 'end_user_origin_id_example', categories: [MergeCRMClient::CategoriesEnum::HRIS]}) # EndUserDetailsRequest |
begin
result = api_instance.link_token_create(end_user_details_request)
p result
rescue MergeCRMClient::ApiError => e
puts "Error when calling LinkTokenApi->link_token_create: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> link_token_create_with_http_info(end_user_details_request)
begin
data, status_code, headers = api_instance.link_token_create_with_http_info(end_user_details_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <LinkToken>
rescue MergeCRMClient::ApiError => e
puts "Error when calling LinkTokenApi->link_token_create_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| end_user_details_request | EndUserDetailsRequest |
- Content-Type: application/json, application/x-www-form-urlencoded, multipart/form-data
- Accept: application/json