The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mslm - The official Perl Library for Mslm APIs.

VERSION

Version 1.0 - Initial release.

SYNOPSIS

Mslm - The official Perl Library for Mslm APIs. Mslm focuses on producing world-class business solutions. It's the bread-and-butter of our business to prioritize quality on everything we touch. Excellence is a core value that defines our culture from top to bottom.

  use Mslm;

  # Create a new instance
  my $mslm = Mslm->new($api_key, %opts);

  # Access Email Verification functionality
  my $email_verifier = $mslm->email_verify();

  # Access OTP functionality
  my $otp_handler = $mslm->otp();

DESCRIPTION

The official Perl SDK for Mslm APIs. Mslm focuses on producing world-class business solutions. It's the bread-and-butter of our business to prioritize quality on everything we touch. Excellence is a core value that defines our culture from top to bottom.

METHODS

new

Creates a new instance of Mslm.

Arguments

  • $api_key (string) - The API key required for authentication.

  • %opts (hash) - Optional parameters. You can pass in the following opts: base_url, user_agent, timeout, and http_client. These settings can also be done via the setter functions named: set_base_url, set_user_agent, set_api_key, set_http_client.

set_base_url

Sets the base URL for API requests.

Arguments

  • $base_url_str (string) - The base URL to be set for API requests.

set_http_client

Sets the HTTP client for making requests.

Arguments

  • $http_client (LWP::UserAgent) - The HTTP client to be set.

set_user_agent

Sets the user agent for API requests.

Arguments

  • $user_agent (string) - The user agent string to be set.

set_api_key

Sets the API key for authentication.

Arguments

  • $api_key (string) - The API key to be set.

email_verify

Returns an object for handling email verification using Mslm's EmailVerify functionality.

Example

  my $email_verifier = $mslm->email_verify->new('your_api_key');

otp

Returns an object for handling OTP (One-Time Password) functionality using Mslm's OTP service.

Example

  my $otp_handler = $mslm->otp->new('your_api_key');

SEE ALSO

Mention other useful documentation such as the documentation of related modules or operating system documentation (such as man pages in UNIX), or any relevant external documentation such as RFCs or standards.

If you have a mailing list set up for your module, mention it here.

If you have a web site set up for your module, mention it here.

AUTHOR

Mslm, <usama.liaqat@mslm.io>

COPYRIGHT AND LICENSE

MIT License

Copyright (c) 2022-now mslm

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.