NAME

Mojolicious::Plugin::RussianPost - Mojolicious Plugin Russian Post

SYNOPSIS

  # Mojolicious
  $self->plugin('RussianPost'=>{login=>'you login', password=>'you login'});

  # Mojolicious::Lite
  plugin 'RussianPost'=>{login=>'you login', password=>'you login'};

  # in controller named params
  my $rp = $self->rp->tracking('66510689006089');
  say dumper $rp->hash;

DESCRIPTION

Provides quick and easy access to the software access to the mail service of Mail of Russia

METHODS

register

  # Mojolicious
  $self->plugin('RussianPost'=>{login=>'you login', password=>'you login'});
 
  # Mojolicious::Lite
  plugin 'RussianPost'=>{login=>'you login', password=>'you login'};

Called when registering the plugin.

HELPERS

tracking

  # In Controller:
  my $obj = $self->rp->tracking('66510689006089');

Returns object Mojolicious::Plugin::RussianPost.

METHODS

hash

  # In Controller:
  my $obj = $self->rp->tracking('66510689006089');
  say dumper $obj->hash

Returns array hash.

result

  # In Controller:
  my $obj = $self->rp->tracking('66510689006089');
  say dumper $obj->result;

Returns original output API.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicious.org.