NAME
WWW::TypePad::Domains - Domains API methods
METHODS
- get
-
my
$res
=
$tp
->domains->get(
$id
);
Get basic information about the selected domain.
Returns Domain which contains following properties.
- resolve_path
-
my
$res
=
$tp
->domains->resolve_path(
$id
);
Given a URI path, find the blog and asset, if any, that the path matches.
Returns hash reference which contains following properties.
- blog
-
(Blog) The blog that the given URL belongs to, if any.
- asset
-
(Asset) The asset that the given URL is for, if any.
- isFullMatch
-
(boolean) C<true> if the given path matched a blog or asset directly, or C<false> if this is only a prefix match. If using this endpoint to implement an alternative blog renderer, a client should return 404 if this flag is not set.