NAME

Regru::API::User - package for methods related to user category.

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.