Project

agaon

0.0
No commit activity in last 3 years
No release in over 3 years
Fiken API wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
>= 0
~> 5.0
~> 10.0
>= 0

Runtime

 Project Readme

Agaon

Ruby API wrapper for Fiken. See https://fiken.no/api/doc/ for information about the API.

Installation

Add this line to your application's Gemfile:

gem 'agaon'

And then execute:

$ bundle

Or install it yourself as:

$ gem install agaon

Usage

Authentication

fiken = Agaon::Client.new( username, password )

This will allow you to only list companies connected to your user account.

To access data in each company you need to specify a company for the Agaon client.

fiken = Agaon::Client.new( username, password, company_href )

Endpoints

Who Am I?:

fiken.who_am_i

Return the user based on credentials on the Agaon Client.

Current company:

fiken.current_company

Returns company based on set company_href on the Agaon Client.

Companies

List:

fiken.companies

Get:

fiken.get_company(company_href)

Accounts, Bank Accounts, Contacts, Products, Invoices, Sales

Using examples for the contacts endpoint.

List:

fiken.contacts

Get:

fiken.get_contact(contact_href)

Create:

fiken.contact(contact_attributes)

Update:

fiken.contact(contact_href,contact_attributes)

Create Invoice, Document Sending Service, Create General Journal Entry Service, Search

Using example for the create invoice endpoint.

Action:

fiken.create_invoice(invoice_attributes)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/espen/agaon.

License

The gem is available as open source under the terms of the MIT License.