NAME
Pcore::App::API
SYNOPSIS
DESCRIPTION
ATTRIBUTES
AUTHENTICATION METHODS
authentocate( $user_name, $token, $cb )
Performs user authentication and returns instance of Pcore::App::API::Auth.
$user_name
can be undefined.
authentocate_private( $private_token, $cb )
Performs private token authentication and returns instance of Pcore::App::API::Auth.
Private token structure is [ %token_type, $token_id, $token_hash ].
USER METHODS
create_user ( $user_name, $password, $enabled, $permissions, $cb )
Creates user and returns user id.
$permissions
- ArrayRef[ 'role1', 'role2', ... ]
get_users ( $cb )
Returns all users.