gitpan / akado-account Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for Akado-Account
Home Page: http://metacpan.org/release/Akado-Account
License: Other
Read-only release history for Akado-Account
Home Page: http://metacpan.org/release/Akado-Account
License: Other
NAME Akado::Account - get internet provider Akado account info SYNOPSIS Akado is the internet provider that works in Moscow, Russia. http://www.akado.ru/ Every Akado customer has access to the site https://office.akado.ru/ where he can see his account info. This module creates Perl object that gets account info from that site. Unfortunately Akdado account site has no API, so this module acts as a browser to get needed info. Every module method dies in case of error. METHODS new This a constuctor. It creates object. The constractor will not access the account site. All network interaction is made in the methods that return data. my $aa = Akado::Account->new({ login => $login, password => $password, }); get_balance It will return number. The number is the sum of money that is left on the user account. The currencty is RUB (Russian rouble). say $aa->get_balance(); # will print '749.82', or something like this If the object hasn't accessed the Akado account site https://office.akado.ru/ since the object was created, the method will access site, get data from it and store it in the object. The object will access Akado site only once, after saving data in the object all methods use that cached data. get_next_month_payment It will return number. The number is the sum of money that the user will have to pay for the next month. The currencty is RUB (Russian rouble). say $aa->get_next_month_payment(); If the object hasn't accessed the Akado account site https://office.akado.ru/ since the object was created, the method will access site, get data from it and store it in the object. The object will access Akado site only once, after saving data in the object all methods use that cached data. AUTHOR Ivan Bessarabov, `<[email protected]>' SOURCE CODE The source code for this module is hosted on GitHub https://github.com/bessarabov/Akado-Account BUGS Please report any bugs or feature requests in GitHub Issues https://github.com/bessarabov/Akado-Account/issues TODO For now the object can return only several numbers, but the Akado site has much more data in it. So it will be great if this module can get more details about user account. For now he module does not have tests. It was created interacting with the production system. This is not good. The test should be added that mocks Akado site and its data. LICENSE AND COPYRIGHT Copyright 2012 Ivan Bessarabov. This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.