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.