Finance-Bank-Postbank_de

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

  * Add missing prerequisite for JSON, Future
    This addresses RT #127022 , reported by Slaven Rezic

0.53 2018-09-02
  + Add missing prerequisite for Filter::signatures
    This addresses RT #127022 , reported by Slaven Rezic

0.52 2018-09-02
  [Distribution]
  + This is most likely a breaking change. I've tried to keep the old interface
    alive and so far, the test suite passes with what I think are mostly
    data changes and removal of old tests that reached too deep.
  + Merge the API branch, as the old website got switched off.
  + There is no compatibility shim yet to restore the functionality of the old
    module. The tests will currently fail, sorry.
  + All files are now stored and read as UTF-8 indiscriminately.
  + Use the new API, which could be less fragile than the scraping approach
    used before.

0.51 2018-07-17
  [Distribution]

lib/Finance/Bank/Postbank_de/APIv1.pm  view on Meta::CPAN

has logger => (
    is => 'rw',
    default => undef,
);

has ua => (
    is => 'ro',
    default => sub( $self ) {
        my $ua = WWW::Mechanize->new(
            autocheck  => 0,
            keep_alive => 1,
            cookie_jar => HTTP::CookieJar::LWP->new(),
        );

        if( $self->diagnostics ) {
            require LWP::ConsoleLogger::Easy;
            my $logger = LWP::ConsoleLogger::Easy::debug_ua( $ua );
            $logger->dump_content(0);
            $logger->dump_text(0);
            $self->logger($logger);
        };

lib/Finance/Bank/Postbank_de/APIv1.pm  view on Meta::CPAN

    );
};

sub configure_ua( $self, $config = $self->fetch_config ) {
    my $ua = $self->ua;

    $ua->add_header(
        'api-key' => $config->{'iob5-base'}->{apiKey},
        'device-signature' => $config->{'iob5-base'}->{apiKey},
        accept => ['application/hal+json', '*/*'],
        keep_alive => 1,
        #                            /                businessCategory =Private Organization/                                jurisdictionC                         =DE/                                jurisdictionST                                 =Hes...
        "If-SSL-Cert-Subject" => $self->certificate_subject->{ api_public_postbank_de },
    );
};

sub login_url( $self ) {
    my $config = $self->config;
    my $loginUrl = $config->{'iob5-base'}->{loginUrl};
    $loginUrl =~ s!%(\w+)%!$config->{'iob5-base'}->{$1}!ge;
    $loginUrl



( run in 2.397 seconds using v1.01-cache-2.11-cpan-75ffa21a3d4 )