API-Mathpix
view release on metacpan or search on metacpan
});
my $response = $mathpix->process({
src => 'https://mathpix.com/examples/limit.jpg',
});
print $response->text;
# EXPORT
A list of functions that can be exported. You can delete this section
if you don't export anything, such as for a purely object-oriented module.
# SUBROUTINES/METHODS
## process
# AUTHOR
Eriam Schaffter, `<eriam at mediavirtuel.com>`
lib/API/Mathpix.pm view on Meta::CPAN
my $response = $mathpix->process({
src => 'https://mathpix.com/examples/limit.jpg',
});
print $response->text;
=head1 EXPORT
A list of functions that can be exported. You can delete this section
if you don't export anything, such as for a purely object-oriented module.
=head1 SUBROUTINES/METHODS
=cut
sub BUILD {
my ($self) = @_;
$self->_ua(
LWP::UserAgent->new(
timeout => 30,
)
);
$self->_bucket(
Algorithm::LeakyBucket->new(
ticks => 200,
seconds => 60
)
);
}
=head2 process
=cut
sub process {
( run in 1.007 second using v1.01-cache-2.11-cpan-39bf76dae61 )