NAME
Regru::API::User - REG.API v2 "user" category
VERSION
version 0.003
DESCRIPTION
REG.API user category... (to be described)
ATTRIBUTES
namespace
...
METHODS
nop
Does nothing.
my $response = $client->user->nop;
create
...
get_statistics
Returns statistics for current user.
Options:
- date_from
-
start date for period, unnecessary
- date_to
-
end date for period, unnecessary
my $response = $client->user->get_statistics;
say $response->get("costs_for_period") if $response->is_success;
get_balance
Returns balance for current user.
my $currency = 'UAH';
my $response = $client->user->get_balance(currency => $currency);
say "Balance: " . $response->get("prepay") . " ". $currency if $response->is_success;
Options:
- currency
-
currency for output sum, RUR by default.
refill_balance
...
SEE ALSO
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/regru/regru-api-perl/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHORS
Polina Shubina <shubina@reg.ru>
Anton Gerasimov <a.gerasimov@reg.ru>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by REG.RU LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.