All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
logged_in_employee_preferences | GET /employee/preferences/>loggedInEmployeePreferences | [BETA] Get employee preferences for current user |
search | GET /employee/preferences | [BETA] Find employee category corresponding with sent data. |
ResponseWrapperEmployeePreferences logged_in_employee_preferences(opts)
[BETA] Get employee preferences for current user
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::EmployeepreferencesApi.new
opts = {
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Get employee preferences for current user
result = api_instance.logged_in_employee_preferences(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeepreferencesApi->logged_in_employee_preferences: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
fields | String | Fields filter pattern | [optional] |
ResponseWrapperEmployeePreferences
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperEmployeePreferences search(opts)
[BETA] Find employee category corresponding with sent data.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::EmployeepreferencesApi.new
opts = {
id: 'id_example', # String | Equals
employee_id: 56, # Integer | Equals
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find employee category corresponding with sent data.
result = api_instance.search(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeepreferencesApi->search: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | Equals | [optional] |
employee_id | Integer | Equals | [optional] |
fields | String | Fields filter pattern | [optional] |
ResponseWrapperEmployeePreferences
- Content-Type: Not defined
- Accept: Not defined