0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
tripletex.no APIv2 client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

>= 2.2.1, ~> 2.2
~> 0.10
~> 0.2
~> 4
~> 3.6
~> 0.50
~> 0.15.1
>= 3.0.3, ~> 3.0
>= 3.0.1, ~> 3.0
~> 0.9

Runtime

>= 0.10.0
>= 1.8.5
 Project Readme

Tripletexer - ruby client for tripletex.no API v2

https://github.com/graudeejs/tripletexer

Build Status CircleCI Code Climate Coverage Status Gem Version

Getting started

Add tripletexer to your Gemfile

gem 'tripletexer', '~> 0.2.1'

run bundle install

Using tripletexer

Tripletex.no API documentation can be found here: https://tripletex.no/v2-docs/

This gem tries to fallow patterns of tripletex.no documentation, however not completely. Feel free to checkout tripletexer on rubydoc

client = Tripletexer.new

# start new session
client.token.session.create('your_consumer_token', 'your_employee_token')

client.invoice.search(Date.new(2017), Time.now.to_date).each do |invoice|
  # do something with invoice
end

# revoke token
client.token.session.destroy

When tipletex.no API returns a list tripletexer gem returns an instance of enumerator, this way you never have to deal with pagination.

TODO

Write some tests