NAME

WebService::Viglink - Interface to the Viglink web API

METHODS

new()
$Viglink = WebService::Viglink->new({ key => $apikey })

See http://www.viglink.com/corp/api for the low level details and where to obtain an API key.

make_url()
$api_url = $Viglink->make_url({ out      => $click_destination,
                                cuid     => $anonymous_user_id,
                                txt      => $text_of_link,
                                loc      => $current_webpage,
                                title    => $current_page_title,
                                referrer => $referring_page, });

Returns a Viglink href. Dies on missing args. Encodes any urls passed to it.

SYNOPSIS

use WebService::Viglink;
$Viglink = WebService::Viglink->new({ key => $api_key });
$affiliate_url = $Viglink->make_url({ ... });

DESCRIPTION

Simple encapsulation of the Viglink API.

AUTHOR

"Fred Moyer", <fred@slwifi.com>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Silver Lining Networks

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