Sha256: 906fbb9cd4f0ee9afb0d383f65d1b031b87098b3448b2777314f7c4d4d8e7237

Contents?: true

Size: 1.7 KB

Versions: 7

Compression:

Stored size: 1.7 KB

Contents

# TripletexRubyClient::TokenconsumerApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_by_token**](TokenconsumerApi.md#get_by_token) | **GET** /token/consumer/byToken | Get consumer token by token string.


# **get_by_token**
> ResponseWrapperConsumerToken get_by_token(token, opts)

Get consumer token by token string.



### Example
```ruby
# load the gem
require 'tripletex_ruby_client'
# 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::TokenconsumerApi.new

token = 'token_example' # String | Element ID

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

begin
  #Get consumer token by token string.
  result = api_instance.get_by_token(token, opts)
  p result
rescue TripletexRubyClient::ApiError => e
  puts "Exception when calling TokenconsumerApi->get_by_token: #{e}"
end
```

### Parameters

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

### Return type

[**ResponseWrapperConsumerToken**](ResponseWrapperConsumerToken.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/TokenconsumerApi.md
tripletex_ruby_client-1.0.11 docs/TokenconsumerApi.md
tripletex_ruby_client-1.0.9 docs/TokenconsumerApi.md
tripletex_ruby_client-1.0.8 docs/TokenconsumerApi.md
tripletex_ruby_client-1.0.4 docs/TokenconsumerApi.md
tripletex_ruby_client-1.0.3 docs/TokenconsumerApi.md
tripletex_ruby_client-1.0.1 docs/TokenconsumerApi.md