Amazon::Site - A class to represent an Amazon site
use Amazon::Site; my $site = Amazon::Site->new( code => 'UK', country => 'United Kingdom', tldn => 'co.uk', currency => 'GBP', sort => 1, ); say $site->tldn; # co.uk say $site->domain; # amazon.co.uk say $site->asin_url('XXXXXXX'); # https://amazon.co.uk/dp/XXXXXXX
Creates a new Amazon::Site object.
The two-letter country code.
The country name.
The top-level domain name.
The currency code.
The sort order. Used by Amazon::Sites to sort the sites.
The optional Amazon Associate code for this site.
Returns the two-letter country code.
Returns the country name.
Returns the top-level domain name.
Return the whole domain name.
Returns the currency code.
Returns the sort order.
Returns the Amazon Associate code for this site.
Returns the URL for the ASIN on this site.
If you've defined an associate code for this site, it will be included in the URL.
Copyright 2024, Dave Cross. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of either:
the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
the Artistic License version 2.0.
To install Amazon::Sites, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Amazon::Sites
CPAN shell
perl -MCPAN -e shell install Amazon::Sites
For more information on module installation, please visit the detailed CPAN module installation guide.