Business-CPI-Gateway-Moip
view release on metacpan or search on metacpan
lib/Business/CPI/Gateway/Moip.pm view on Meta::CPAN
Thats how it can be done today... making login and parsing the welcome html screen (no good).
Not good because they dont have it on their api... and its not good to rely on markup to read
this sort of important values.
moipstatus.php, on their github acc: https://github.com/moiplabs/moip-php/blob/master/lib/MoipStatus.php
use HTTP::Tiny;
use MIME::Base64;
use Data::Printer;
use HTTP::Request::Common qw(POST);
use Mojo::DOM;
my $url_login = "https://www.moip.com.br/j_acegi_security_check";
my $login = 'XXXXXXXXXXX';
my $pass = "XXXXXXX";
my $url_transactions = 'https://www.moip.com.br/rest/reports/last-transactions';
my $form_login = [
j_password => $pass,
j_username => $login,
];
( run in 0.344 second using v1.01-cache-2.11-cpan-de7293f3b23 )