Sha256: ddbe138dc3b6f7c4fd7ef6d19d53a521d1ebf894b0ca1401081b658ba831c741

Contents?: true

Size: 1.93 KB

Versions: 7

Compression:

Stored size: 1.93 KB

Contents

# TripletexRubyClient::VoucherApprovalListElementApi

All URIs are relative to *https://tripletex.no/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get**](VoucherApprovalListElementApi.md#get) | **GET** /voucherApprovalListElement/{id} | [BETA] Get by ID.


# **get**
> ResponseWrapperVoucherApprovalListElement get(id, opts)

[BETA] Get by ID.



### Example
```ruby
# 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::VoucherApprovalListElementApi.new

id = 56 # Integer | Element ID

opts = { 
  fields: 'fields_example' # String | Fields filter pattern
}

begin
  #[BETA] Get by ID.
  result = api_instance.get(id, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling VoucherApprovalListElementApi->get: #{e}"
end
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **Integer**| Element ID | 
 **fields** | **String**| Fields filter pattern | [optional] 

### Return type

[**ResponseWrapperVoucherApprovalListElement**](ResponseWrapperVoucherApprovalListElement.md)

### Authorization

[tokenAuthScheme](../README.md#tokenAuthScheme)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined



Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tripletex_ruby_client-1.0.12 docs/VoucherApprovalListElementApi.md
tripletex_ruby_client-1.0.11 docs/VoucherApprovalListElementApi.md
tripletex_ruby_client-1.0.9 docs/VoucherApprovalListElementApi.md
tripletex_ruby_client-1.0.8 docs/VoucherApprovalListElementApi.md
tripletex_ruby_client-1.0.4 docs/VoucherApprovalListElementApi.md
tripletex_ruby_client-1.0.3 docs/VoucherApprovalListElementApi.md
tripletex_ruby_client-1.0.1 docs/VoucherApprovalListElementApi.md