All URIs are relative to https://tripletex.no/v2
| Method | HTTP request | Description |
|---|---|---|
| account_post | POST /documentArchive/account/{id} | [BETA] Upload file to Account Document Archive. |
| customer_post | POST /documentArchive/customer/{id} | [BETA] Upload file to Customer Document Archive. |
| delete | DELETE /documentArchive/{id} | [BETA] Delete document archive. |
| employee_post | POST /documentArchive/employee/{id} | [BETA] Upload file to Employee Document Archive. |
| get_account | GET /documentArchive/account/{id} | [BETA] Find documents archived associated with account object type. |
| get_customer | GET /documentArchive/customer/{id} | [BETA] Find documents archived associated with customer object type. |
| get_employee | GET /documentArchive/employee/{id} | [BETA] Find documents archived associated with employee object type. |
| get_product | GET /documentArchive/product/{id} | [BETA] Find documents archived associated with product object type. |
| get_project | GET /documentArchive/project/{id} | [BETA] Find documents archived associated with project object type. |
| get_prospect | GET /documentArchive/prospect/{id} | [BETA] Find documents archived associated with prospect object type. |
| get_supplier | GET /documentArchive/supplier/{id} | [BETA] Find documents archived associated with supplier object type. |
| product_post | POST /documentArchive/product/{id} | [BETA] Upload file to Product Document Archive. |
| project_post | POST /documentArchive/project/{id} | [BETA] Upload file to Project Document Archive. |
| prospect_post | POST /documentArchive/prospect/{id} | [BETA] Upload file to Prospect Document Archive. |
| put | PUT /documentArchive/{id} | [BETA] Update document archive. |
| reception_post | POST /documentArchive/reception | [BETA] Upload a file to the document archive reception. Send as multipart form. |
| supplier_post | POST /documentArchive/supplier/{id} | [BETA] Upload file to Supplier Document Archive. |
ResponseWrapperDocumentArchive account_post(file, id)
[BETA] Upload file to Account Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Account Document Archive.
result = api_instance.account_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->account_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
ResponseWrapperDocumentArchive customer_post(file, id)
[BETA] Upload file to Customer Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Customer Document Archive.
result = api_instance.customer_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->customer_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
delete(id)
[BETA] Delete document archive.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
begin
#[BETA] Delete document archive.
api_instance.delete(id)
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->delete: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperDocumentArchive employee_post(file, id)
[BETA] Upload file to Employee Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Employee Document Archive.
result = api_instance.employee_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->employee_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
ListResponseDocumentArchive get_account(id, opts)
[BETA] Find documents archived associated with account object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with account object type.
result = api_instance.get_account(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_account: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseDocumentArchive get_customer(id, opts)
[BETA] Find documents archived associated with customer object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with customer object type.
result = api_instance.get_customer(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_customer: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseDocumentArchive get_employee(id, opts)
[BETA] Find documents archived associated with employee object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with employee object type.
result = api_instance.get_employee(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_employee: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseDocumentArchive get_product(id, opts)
[BETA] Find documents archived associated with product object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with product object type.
result = api_instance.get_product(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_product: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseDocumentArchive get_project(id, opts)
[BETA] Find documents archived associated with project object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with project object type.
result = api_instance.get_project(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_project: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseDocumentArchive get_prospect(id, opts)
[BETA] Find documents archived associated with prospect object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with prospect object type.
result = api_instance.get_prospect(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_prospect: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ListResponseDocumentArchive get_supplier(id, opts)
[BETA] Find documents archived associated with supplier object type.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
period_date_from: 'period_date_from_example', # String | From and including
period_date_to: 'period_date_to_example', # String | To and excluding
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find documents archived associated with supplier object type.
result = api_instance.get_supplier(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->get_supplier: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| period_date_from | String | From and including | [optional] |
| period_date_to | String | To and excluding | [optional] |
| from | Integer | From index | [optional] [default to 0] |
| count | Integer | Number of elements to return | [optional] [default to 1000] |
| sorting | String | Sorting pattern | [optional] |
| fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperDocumentArchive product_post(file, id)
[BETA] Upload file to Product Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Product Document Archive.
result = api_instance.product_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->product_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
ResponseWrapperDocumentArchive project_post(file, id)
[BETA] Upload file to Project Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Project Document Archive.
result = api_instance.project_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->project_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
ResponseWrapperDocumentArchive prospect_post(file, id)
[BETA] Upload file to Prospect Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Prospect Document Archive.
result = api_instance.prospect_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->prospect_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
ResponseWrapperDocumentArchive put(id, opts)
[BETA] Update document archive.
# 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::DocumentArchiveApi.new
id = 56 # Integer | Element ID
opts = {
body: TripletexRubyClient::DocumentArchive.new # DocumentArchive | Partial object describing what should be updated
}
begin
#[BETA] Update document archive.
result = api_instance.put(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->put: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | Integer | Element ID | |
| body | DocumentArchive | Partial object describing what should be updated | [optional] |
ResponseWrapperDocumentArchive
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ResponseWrapperDocumentArchive reception_post(file)
[BETA] Upload a file to the document archive reception. Send as multipart form.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
begin
#[BETA] Upload a file to the document archive reception. Send as multipart form.
result = api_instance.reception_post(file)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->reception_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined
ResponseWrapperDocumentArchive supplier_post(file, id)
[BETA] Upload file to Supplier Document Archive.
# 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::DocumentArchiveApi.new
file = File.new('/path/to/file.txt') # File | The file
id = 56 # Integer | Element ID
begin
#[BETA] Upload file to Supplier Document Archive.
result = api_instance.supplier_post(file, id)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling DocumentArchiveApi->supplier_post: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| file | File | The file | |
| id | Integer | Element ID |
ResponseWrapperDocumentArchive
- Content-Type: multipart/form-data
- Accept: Not defined