Julien Sobrier
and 1 contributors

NAME

Template::Plugin::Thumbalizr - A Thumbalizr (https://thumbalizr.com) plugin for Template::Toolkit. This allows you to easily embed live screenshots into your website.

SYNOPSIS

  [% USE thumbalizr = Thumbalizr('api_key', 'secret') %]
        <img src="[% thumbalizr.url('https://www.google.com/') %]" />

DESCRIPTION

Thumbalizr (http://www.thumbalizr.com/) is a web service to easily embed live screenshots of any URL in your website. Thumbalizr has full support for Flash, JavaScript, CSS, & HTML5.

The latest API version is detailed at https://www.thumbalizr.com/api/documentation. WebService::Thumbalizr.

The source code is available on github at https://github.com/juliensobrier/thumbalizr-template-toolkit.

METHODS

new()

  [% USE thumbalizr = Thumbalizr('api_key', 'secret') %]

Initialize the Thumbalizr plugin. You must pass your API secret (login to your Thumbalizr account to display your secret).

Arguments:

api_key

Required. Embed API key.

secret

Required. Thumbalizr secret.

url()

  <img src="[% thumbalizr.url('https://www.google.com/', size => 'page', bheight => 1280) %]" />

Display the URL of the Thumbalizr screenshot. You can use it as the src attribute of your img tag.

Arguments:

url

Required. URL of the website to create a screenshot of.

SEE ALSO

WebService::Thumbalizr

See https://thumbalizr.com/api/documentation for the API documentation.

Create a free account at https://thumbalizr.com/member to get your free API key.

Go to https://thumbalizr.com/member to find your API key and secret after you registered.

AUTHOR

Julien Sobrier, <julien@sobrier.net>

COPYRIGHT AND LICENSE

Copyright (C) 2019 by Julien Sobrier

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.