Christopher J. Madsen > WebService-NFSN-0.08 > WebService::NFSN::Site

Download:
WebService-NFSN-0.08.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.05   Source  

NAME ^

WebService::NFSN::Site - Access NFSN site API

VERSION ^

This document describes version 0.05 of WebService::NFSN::Site, released September 28, 2008 as part of WebService-NFSN version 0.08.

SYNOPSIS ^

    use WebService::NFSN;

    my $nfsn = WebService::NFSN->new($USER, $API_KEY);
    my $site = $nfsn->site($SHORT_NAME);
    $site->addAlias(alias => 'www.example.com');

DESCRIPTION ^

WebService::NFSN::Site provides access to NearlyFreeSpeech.NET's site API. It is only useful to people who have websites hosted at NearlyFreeSpeech.NET.

INTERFACE ^

$site = $nfsn->site($SHORT_NAME)

This constructs a new Site object for the specified $SHORT_NAME. Equivalent to $site = WebService::NFSN::Site->new($nfsn, $SHORT_NAME).

Properties

None.

Methods

$site->addAlias(alias => $ALIAS)

This adds an alias (such as "www.example.com") to an existing web site. In addition to the site, you must have permission to access the domain containing the alias. If the domain is not referenced on our system, it will be added automatically.

If the domain exists and has DNS managed by NFSN, the necessary resource records will be created automatically.

$site->removeAlias(alias => $ALIAS)

Removes an alias from a site. $ALIAS must be an existing alias for the site.

SEE ALSO ^

WebService::NFSN