alice_invoice provides a simple interface for downloading invoices and corresponding digital signatures from German ISP Alice.
require 'rubygems' require 'alice_invoice' login = "0891234567" # your primary phone number password = "!tknitsneyelrednovalusru" # a cheesy password for "lounge" access al = AliceInvoice.new(:login => login, :password => password, :storage_path => 'downloads', :cache_delegate => AliceInvoice::Cache::Lazy.new(:debug => true) ) al.login! al.download_invoices_and_signatures!
AliceInvoice::Cache::Lazy is a simple pseudocache that prevents downloading of files more than one time according to the contents of the provided :storage_path. The usage of a cache_delegate is not required.
sudo gem install alice_invoice
Please verify that the usage of alice_invoice is permitted by the usage terms of your Alice-DSL contract/customer lounge. Neither permission nor satisfaction is guaranteed by the author of this program.
The author is not related to Alice, Alice-DSL and Telecom Italia in any way except beeing an unhappy customer.
(The MIT License)
Copyright © 2009 Roland Moriz
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.