#                                      Copyright 2025 WebPros International, LLC
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited.

package Cpanel::Xovi::User;

use cPstrict;

use Cpanel::AdminBin::Call ();

=head1 MODULE

C<Cpanel::Xovi::User>

=head1 DESCRIPTION

C<Cpanel::Xovi::User> is a class that provides methods to manage a xovi user account creation.

=head2 CONSTRUCTOR

=cut

=head1 METHODS

=head2 create_user()

Creates an user account in xovi

=head3 ARGUMENTS

none

=head3 RETURNS

apikey - string on success.

=cut

sub create_user ( $args = undef ) {

    my $api_key = Cpanel::AdminBin::Call::call( 'Cpanel', 'xovi', 'CREATE_USER', {} );

    my $output_data = { 'apiToken' => $api_key };

    return $output_data;
}

1;
