Project

saasu

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

Development

~> 1.0.0
~> 1.6.4
>= 0
>= 0

Runtime

 Project Readme

Saasu

This gem provide a ruby wrapper to the Saasu api.

Installation

gem install saasu

Getting Started

Usage is currently limited to fetching invoices.

Firstly setup the library with your api_key and file_uid

Saasu::Base.api_key  = key
Saasu::Base.file_uid = uid

To fetch all invoices

invoices = Saasu::Invoice.all

By default all sales purchases are retrieved as this field is required.

You can pass in any conditions as a hash. The keys should be in snake case.

invoices = Saasu::Invoice.all(:transaction_type => "p", :paid_status => "Unpaid")

For a complete list of supported options see the Saasu API Reference

To fetch a single invoice by its uid

invoice = Saasu::Invoice.find(uid)

Copyright

Copyright (c) 2011 Kieran Johnson. See LICENSE for details.