NAME

XTP - XTP Perl SDK

DESCRIPTION

XTP https://www.getxtp.com/ is a platform built on-top of the Extism https://extism.org/ (Extism) cross-language framework for building with WebAssembly. This distribution provides an API client, to invite guests and fetch Extism plugins so Perl programmers can easily and safely run multi-tenant code within their Perl application using WebAssembly.

SYNOPSIS

use XTP;
my $client = XTP::Client->new({
    token =>  $ENV{XTP_TOKEN},
    appId => 'app_01j9w5k56wf9ev69z1h158axjc',
    extism => {wasi => 1}
});
my $invite = $client->inviteGuest({
    guestKey => 'guestkey',
    deliveryMethod => 'link'
});
my $plugin = $client->getPlugin('on email', 'guestkey');
my $result = $plugin->call('onEmail', \%email);

EXAMPLES

See <https://github.com/dylibso/xtp-email-demo/blob/main/autoresponder.pl>

SUPPORT AND DOCUMENTATION

You can find documentation for this module with the perldoc command.

perldoc XTP

Additional documentation can be found on the XTP docs site https://docs.xtp.dylibso.com/

XTP support can be found on the support page https://docs.xtp.dylibso.com/docs/support/

LICENSE AND COPYRIGHT

This software is copyright (c) 2024 by Dylibso.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.