Skip to content

Repository files navigation

Tripletexer - ruby client for tripletex.no API v2

https://github.com/graudeejs/tripletexer

Build StatusCircleCICode ClimateCoverage StatusGem 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 sessionclient.token.session.create('your_consumer_token','your_employee_token')client.invoice.search(Date.new(2017),Time.now.to_date).eachdo |invoice|
# do something with invoiceend# revoke tokenclient.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

About

tripletex.no APIv2 client library for ruby

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages