Convos::Plugin::Helpers - Default helpers for Convos
This Convos::Plugin contains default helpers for Convos.
$dialog = $c->backend->dialog(\%args);
Helper to retrieve a Convos::Core::Dialog object. Will use data from %args or fall back to stash. Example %args:
%args
{ # Key => Example value # Default value connection_id => "irc-localhost", # $c->stash("connection_id") dialog_id => "#superheroes", # $c->stash("connection_id") email => "superwoman@dc.com", # $c->session('email') }
$user = $c->backend->user($email); $user = $c->backend->user;
Used to return a Convos::User object representing the logged in user or a user with email $email.
$email
$c = $c->unauthorized;
Used to render an OpenAPI response with status code 401.
$self->register($app, \%config);
Called by Convos, when registering this plugin.
Convos.
To install Convos, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convos
CPAN shell
perl -MCPAN -e shell install Convos
For more information on module installation, please visit the detailed CPAN module installation guide.